summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)AuthorFilesLines
2017-04-07trace: Switch trace representation to memory pool.Francisco Jerez6-12/+12
2017-04-07autotrim: Rework autotrim dependency analyzer to limit memory consumption ↵Francisco Jerez2-372/+1411
and improve accuracy.
2017-03-21cli: Write full path of where the Python scripts are expected to be.Jose Fonseca1-1/+3
Should help diagnose issues like https://github.com/apitrace/apitrace/issues/511
2017-03-21cli: Use APITRACE_PYTHON_EXECUTABLE.Jose Fonseca1-1/+1
2017-03-13retrace: support for dumping multiple snapshots (v3)windows-xpRob Clark1-1/+9
Usually if an app is using MRT, we want to dump (and diff) *all* the render targets to track down where things are going wrong. Also dumps depth and stencil buffers. When the --mrt (or -m) argument is specified, all render targets plus depth and/or stencil are dumped, with the suffix -mrtN/-z/-s. Otherwise the behavior is as before, only mrt0 is dumped with no suffix. Only implemented for GLDumper, since I don't know anything about D3D.
2016-09-07inject: Initial mhook integration.Jose Fonseca1-9/+21
Essentially fork injectee module into two variants: IAT and mhook.
2016-05-05highlight: Move into libs.Jose Fonseca1-0/+1
2016-04-19cli: Ensure libasan.so is preloaded when tracing.Jose Fonseca1-0/+12
2016-04-04compat: Implement std::make_unique.Jose Fonseca1-3/+3
2016-03-29cli: Do CRC check of the compressed Brotli file.Jose Fonseca1-0/+22
Just in case.
2016-03-29cli: Change default Brotli compression params.Jose Fonseca1-0/+13
2016-03-29cli: Allow to specify brotli quality.Jose Fonseca1-5/+13
2016-03-29cli: Support repacking into Brotli.Jose Fonseca2-18/+100
This is not meant as a replacement for Snappy, but rather a replacement for ZLib, to minimize storage of huge traces aimed at regression testing, for which no performance measurements are practical anyway.
2016-03-23common: Cleanup trace::File class hierarchy.Jose Fonseca2-0/+4
2016-03-05cli: clang-modernize.Jose Fonseca4-46/+45
2016-02-26compat,cli: Add std::to_string on Android to fix build.Jose Fonseca1-0/+2
2016-02-19cli: Add support to dump blobs to files.Jose Fonseca1-3/+58
Many people asked something like this. I finally felt the urge myself and implemented it. One can see the blobs with an ordinary hex editor.
2016-01-22cli: Add a leaks sub-command.Jose Fonseca4-0/+88
Merely invokes leaks.py
2015-11-07cli: Allow to repack traces with Zlib.Jose Fonseca1-6/+23
2015-11-07common: Split trace writing from reading.Jose Fonseca1-1/+2
2015-08-06cli: Rename trace_analyzer module.Jose Fonseca4-3/+4
To line up with the rest of trim-auto source code.
2015-08-06cli: Split automatic trimming into its own command.Jose Fonseca5-268/+450
Automatic trimming hasn't graduated its experimental status: it still has several limitations and bugs, and hasn't been maintained pretty much since it was merged. Keeping automatic and exact trimming together ends up confusing users, and also makes the exact trimming unnecessarily slow and complex (2 passes over the trace where 1 pass would suffice.) I also hope one day to rewrite auto-trimming (autotrim-v2 branch.)
2015-07-29cli: Accept ddraw and d3d6 as alternatives to d3d7.Jose Fonseca1-1/+3
Since these are all implemented by ddraw.dll
2015-07-06inject: Allow to control verbosity via a command line option.Jose Fonseca1-3/+6
2015-06-26Add missing includes.Harald Fernengel1-0/+1
2015-06-24cli/sed: Avoid strcpy.Jose Fonseca1-2/+3
2015-06-24cli/sed: Open file in text mode.Jose Fonseca1-1/+1
There might be situations where we want the opposite. But at least for now this enables to run unit tests on Windows.
2015-06-24sed: @file reads pattern or replacement from a file. Useful for shader ↵Arthur Huillet1-8/+47
replacement. Replacing shaders isn't easily done on the commandline, so add "@file()" to tell apitrace sed to read pattern or replacement from a file. This replacement is implemented on String-type nodes, so apitrace sed now effectively works on string elements in addition to enum elements. The pattern/replacement separator can be a slash or any other character, allowing use of slashes in the file path. Signed-off-by: Arthur Huillet <ahuillet@nvidia.com>
2015-06-20inject: Support attaching a debugger.Jose Fonseca1-0/+5
And use getopt option parsing while at it.
2015-05-20common,cli,wrappers,retrace,gui: Use #pragma once.Jose Fonseca5-15/+5
Smaller footprint, and simplifies refactoring.
2015-03-09cli,common: Use static_assert where appropriate.Jose Fonseca1-1/+1
2014-12-30cli: Silence unused copyWrapper function warning.José Fonseca1-0/+4
2014-12-30cli: Cleanup pager code.José Fonseca1-19/+28
And silence a gcc warning.
2014-12-17cli: Use mkstemp instead of mktemp.Jose Fonseca1-5/+5
2014-12-15cli: Fix freed pointer deref on trace --debug.José Fonseca1-1/+2
2014-12-02cli: Use LLDB on MacOSX when tracing inside debugger.José Fonseca1-7/+43
2014-10-02cmake: Package/install .PDB files too.José Fonseca1-0/+1
2014-09-26trace: Serialize wide-strings properly.José Fonseca3-0/+35
Wide strings are only used by DirectX APIs, mostly for descriptions, but it's still useful to be able to read them. I'm split on whether to bump the trace format version or not. OpenGL traces are unaffected.
2014-08-26cli: prefer detected python executable instead of harcoded oneLaurent Carlier4-6/+11
In ArchLinux, python means python3 v2: Don't change Windows behavior -- Jose.
2014-07-08cmake: Avoid target_compile_definitions.José Fonseca1-2/+2
So that it can be build with cmake 2.8.10.
2014-06-24cli/pickle: Pass argument names.José Fonseca1-0/+7
2014-06-24cli/pickle: Treat pointers specially.José Fonseca2-1/+11
2014-06-24cli/pickle: Pass structures as dictionaries.José Fonseca1-1/+1
2014-06-24cli/pickle: Pass across tuples/lists consistently.José Fonseca1-2/+2
2014-06-24cli/pickle: More efficient tuples.José Fonseca2-3/+23
2014-06-24cli/pickle: Pickle call flags as well.José Fonseca1-0/+2
2014-06-24cli: Exit early when script is not found.José Fonseca4-17/+1
2014-06-24cli/diff-state: Get usage from jsondiff.py script.José Fonseca1-47/+27
2014-06-18d2d1trace: Don't provide d2d1.dll/dwrite.dll stubs.José Fonseca1-0/+7
Just like done for DXGI.
2014-06-18inject: Handle Windows API Sets.Jose Fonseca1-7/+2
This is the proper fix for issue #122 and #172. Windows 8.x's gdi32.dll was getting LoadLibrary/GetProcAddress from API-MS-WIN-CORE-LIBRARYLOADER-L1-?-?.DLL instead of kernel32.dll, hence bypassing our hooks.