]>
git.notmuchmail.org Git - apitrace/log
José Fonseca [Fri, 12 Apr 2013 09:27:31 +0000 (10:27 +0100)]
gui: Fix includes.
stdio.h doesn't seem necessary. stdlib.h might be though, for exit().
Carl Worth [Thu, 9 Aug 2012 15:21:42 +0000 (08:21 -0700)]
qapitrace: Support executing glretrace on a remote target host.
This is supported with a new command-line argument:
qapitrace --remote-target <HOST> <trace-file>
See README.markdown for documentation on usage and current limitations
of this feature.
José Fonseca [Fri, 12 Apr 2013 09:08:53 +0000 (10:08 +0100)]
cmake: Update android.toolchain.cmake from upstream (issue #115).
From https://github.com/taka-no-me/android-cmake/commit/
62bcf2b40e8b8a943dd4923dfcf614e661af0678
José Fonseca [Thu, 11 Apr 2013 21:49:35 +0000 (22:49 +0100)]
Rename Android.markdown to Dalvik.markdown.
As README still contains Android information.
Minor tweaks.
Alexander Monakov [Fri, 5 Apr 2013 17:53:49 +0000 (21:53 +0400)]
Improve Android tracing instructions
Tracing of Java applications on Android is quite different from tracing native
executables, so move it to a separate file.
Add instructions on using wrapping support that appeared in Android 4.0, which
simplifies usage of apitrace on Android.
Add a reference to adjust-child-env tool that allows to inject tracing library
on Android without rebuilding and reflashing recovery image.
Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
José Fonseca [Thu, 11 Apr 2013 17:54:06 +0000 (18:54 +0100)]
gui: Handle calls stranded between frames gracefully (issue #117).
Still a bit hackish (those calls will disappear), but at least the gui
doesn't crash now.
José Fonseca [Wed, 10 Apr 2013 15:20:30 +0000 (16:20 +0100)]
cli: Fix script search for out of source build.
Only for debug builds. Release must be installed.
José Fonseca [Mon, 8 Apr 2013 18:13:51 +0000 (19:13 +0100)]
gltrace: Handle negative lengths in glShaderSource* (issue #116).
José Fonseca [Wed, 27 Mar 2013 11:10:37 +0000 (11:10 +0000)]
Add per-directory synopsis.
José Fonseca [Wed, 27 Mar 2013 11:09:46 +0000 (11:09 +0000)]
Add a high-level overview of apitrace source tree.
José Fonseca [Wed, 27 Mar 2013 10:16:03 +0000 (10:16 +0000)]
common: Add more comments.
Laurent Carlier [Tue, 19 Mar 2013 19:46:57 +0000 (20:46 +0100)]
cmake: Check for libproc library name
libprocps can be replaced with libprocps-ng, so check for the proper library name.
This fix building with ArchLinux.
Reviewed-by: Arthur Huillet <arthur.huillet@free.fr>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Tue, 12 Mar 2013 22:27:21 +0000 (22:27 +0000)]
common: Set flags for D3D11.1 calls too.
Jeff Muizelaar [Tue, 12 Mar 2013 20:31:17 +0000 (16:31 -0400)]
d3dretrace: Add state dumping support for ID3D11DeviceContext1
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Mon, 11 Mar 2013 23:35:22 +0000 (23:35 +0000)]
glretrace: Fix cpu timings when not measuring gpu times.
Jeff Muizelaar [Mon, 11 Mar 2013 19:56:30 +0000 (15:56 -0400)]
Add some missing DXGI and D3D11.1 api
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Mon, 11 Mar 2013 22:37:29 +0000 (22:37 +0000)]
dispatch: Compensate for broken GL headers in Visual Studio 2012
José Fonseca [Mon, 11 Mar 2013 22:37:59 +0000 (22:37 +0000)]
cmake: Fix D2D include path w/ Visual Studio 2012.
Rob Clark [Mon, 11 Mar 2013 17:21:25 +0000 (13:21 -0400)]
gui: Link against pthread.
/usr/bin/ld: CMakeFiles/qapitrace.dir/apitracecall.cpp.o: undefined
reference to symbol '__pthread_key_create@@GLIBC_2.2.5'
/usr/bin/ld: note: '__pthread_key_create@@GLIBC_2.2.5' is defined in DSO
/lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Wed, 6 Mar 2013 20:03:54 +0000 (20:03 +0000)]
glretrace: Fix several problems with the earlier commit.
Jerome Glisse [Mon, 18 Feb 2013 17:22:11 +0000 (12:22 -0500)]
retrace: Add single thread option.
Allow to replay trace using only one thread, helpful when debugging
driver.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Wed, 6 Mar 2013 15:12:45 +0000 (15:12 +0000)]
glretrace: Fix dumping of cube map FBO attachements.
José Fonseca [Wed, 6 Mar 2013 14:09:48 +0000 (14:09 +0000)]
directxtex: Fix MinGW64 build.
José Fonseca [Wed, 6 Mar 2013 12:12:04 +0000 (12:12 +0000)]
d3dretrace: Use DirectXTex for d3d10 state too.
José Fonseca [Wed, 6 Mar 2013 11:46:41 +0000 (11:46 +0000)]
Merge branch 'directxtex'
Shuang He [Mon, 18 Feb 2013 02:09:44 +0000 (10:09 +0800)]
Extend profiling tool to support Vsize and Rss memory usage profile per call
Add one new option -pmem for retrace tool to track Visze and Rss usage during every call
Signed-off-by: Shuang He <shuang.he@intel.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Fri, 22 Feb 2013 16:38:11 +0000 (16:38 +0000)]
Update news for new nomenclature.
Carl Worth [Mon, 11 Feb 2013 22:56:15 +0000 (14:56 -0800)]
cli: Add an alias mechanism and alias "retrace" to "replay"
This allows any existing scripts calling "apitrace retrace" to
continue to work.
Carl Worth [Mon, 11 Feb 2013 21:49:02 +0000 (13:49 -0800)]
cli: Rename "apitrace retrace" to "apitrace replay".
After some debate on the mailing list, the consensus favors the name
"replay" for this operation. Update the documentation in
README.markdown to match.
José Fonseca [Fri, 22 Feb 2013 15:00:26 +0000 (15:00 +0000)]
dxgitrace: Generalize the swapchain size for the entry functions too.
José Fonseca [Fri, 22 Feb 2013 10:47:31 +0000 (10:47 +0000)]
d3dretrace: Force DWM traces to run on a window.
Fullscreen is hard to debug.
José Fonseca [Fri, 22 Feb 2013 10:24:31 +0000 (10:24 +0000)]
Serialize swapchain dimensions.
José Fonseca [Fri, 22 Feb 2013 10:23:51 +0000 (10:23 +0000)]
trace: Unwrap all args before serializing them.
José Fonseca [Fri, 22 Feb 2013 10:08:46 +0000 (10:08 +0000)]
trace: Remove unused Trace::unwrapRet method.
José Fonseca [Fri, 22 Feb 2013 09:41:54 +0000 (09:41 +0000)]
inject: Always output warning messages to debug output.
José Fonseca [Fri, 22 Feb 2013 09:40:30 +0000 (09:40 +0000)]
inject: Add define to use environment var instead of shared memory.
José Fonseca [Tue, 19 Feb 2013 13:29:26 +0000 (13:29 +0000)]
d3dretrace: Cope with _MAP_FLAG_DO_NOT_WAIT flags.
If the map succeeded in the original trace, then we must wait.
José Fonseca [Tue, 19 Feb 2013 13:28:24 +0000 (13:28 +0000)]
d3dretrace: Replay IUnknown::AddRef/Release methods faithfully.
Several D3D APIs (especially recent ones) keep track of reference counts
and will ensure errors if reference counting is not properly done.
For example, IDXGISwapChain::ResizeBuffers will fail if there are
outstanding references to its buffers.
José Fonseca [Thu, 21 Feb 2013 13:08:13 +0000 (13:08 +0000)]
trace_parser: More comprehensive debug output.
It was useful to diagnose issue #110.
Carl Worth [Tue, 28 Aug 2012 18:45:52 +0000 (11:45 -0700)]
replay: Support applications mixing glCreateProgramObjectARB and glUseProgram
As is known to happen with OpenGL, there are many more than one ways
to do the same thing. In this case, one can create a program
(glCreateProgram) or a program object (glCreateProgramObjectARB) along
with many similar pairs of functions.
In fact, a single application might even mix these two approaches,
(for example, calling glCreateProgramObjectARB and then calling
glUseProgram rather than glUseProgramObjectARB).
Historically, glretrace could fail with such mixed usage. The calls
into the ObjectARB function would go through _handleARB_map while the
other calls would go through _program_map, so after mixed calls the
desired object would not be found in the referenced map.
Making mixed usage work requires merging both _program_map and
_shader_map together with _handleARB map. This is correct for any
OpenGL implementation which supports the GL_ARB_shader_objects
extension, since there is no way to implement this extension correctly
without having shaders and programs in the same namespace.
However, we carefully maintain separate _shader_map and _program_map
for an OpenGL implementation not supporting GL_ARB_shader_objects. In
this case, it's not possible for an application to mix usage (since
none of the ObjectARB functions are guaranteed to exist). And it's
also possible for the implementation to provide separate namespaces
for shaders and programs, so they each need their own map.
José Fonseca [Tue, 12 Feb 2013 16:19:23 +0000 (16:19 +0000)]
Get DWM traces working.
Sort-of -- shared resources still don't work correctly.
José Fonseca [Fri, 8 Feb 2013 13:47:40 +0000 (13:47 +0000)]
specs/dxva: Try to define DXVA2_PVP_SETKEY.
Carl Worth [Fri, 16 Nov 2012 20:41:52 +0000 (12:41 -0800)]
trim: Trim swapbuffers calls when --trim-spec=drawing
Previously, the SwapBuffers calls were only getting trimmed if
--trim-spec included "no-side-effects". It was counter-intuitive that
a trim-spec of "drawing" alone would leave all the SwapBuffers calls
in place. So catch them under this trim-spec as well.
Carl Worth [Thu, 15 Nov 2012 04:55:31 +0000 (20:55 -0800)]
trim: Add a new --trim-spec option for fine-grained trimming
This has two benefits:
1. In cases where the dependency analysis goes wrong, using the --trim-spec
option can help identify which portion of the code is misbehaving, (and
allows the user to still get some trim benefit by avoiding the broken
code).
2. The implementation of this change breaks the analysis code up into several
more fine-grained functions, so it should be easier to review and maintain.
José Fonseca [Wed, 6 Feb 2013 12:26:50 +0000 (12:26 +0000)]
d3dtrace: Fix DXVA2_DecodeExecuteParams::pCompressedBuffers spec.
José Fonseca [Wed, 6 Feb 2013 11:36:59 +0000 (11:36 +0000)]
d3dtrace: Recognize YV12 format.
José Fonseca [Tue, 5 Feb 2013 11:44:26 +0000 (11:44 +0000)]
Update Android instructions.
Not really based from personal experience, but rather on what others wrote,
namely
https://github.com/kanru/apitrace/commit/
5948e72a25b1d2df07299db0d49f91677827478b
José Fonseca [Fri, 1 Feb 2013 17:03:11 +0000 (17:03 +0000)]
glstate: Cleanup the read buffer selection code slightly.
We were calling glReadBuffer(draw_buffer) before reading the GL_READ_BUFFER.
Rob Clark [Tue, 29 Jan 2013 00:50:07 +0000 (18:50 -0600)]
image: make getDrawBufferImage() work for ES or !ARB_draw_buffers
Without this 'apitrace dump-images' was failing for me (GLES, freedreno
gallium driver) because attachment would be GL_NONE.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
José Fonseca [Thu, 31 Jan 2013 20:26:23 +0000 (20:26 +0000)]
d3dretrace: Recognize IDirect3DDevice9Ex::PresentEx as frame terminator.
Carl Worth [Mon, 28 Jan 2013 12:37:17 +0000 (23:37 +1100)]
trim: Fix short command-line option -a for "apitrace trim"
This was documented as being equivalent to --auto, but one piece of
the plumbing was not in place.
José Fonseca [Wed, 23 Jan 2013 16:15:40 +0000 (16:15 +0000)]
glretrace: Fix snapshots on GL 3.2 core contexts (issue #106).
glPush/PopClientAttrib() are not available in core contexts. Simply
save/restore the state via glGet and pack API.
José Fonseca [Wed, 23 Jan 2013 15:16:22 +0000 (15:16 +0000)]
glretrace: Ignore a few more CGL calls.
José Fonseca [Wed, 23 Jan 2013 15:00:47 +0000 (15:00 +0000)]
os: Cast pthread_create's arg parameter.
José Fonseca [Thu, 20 Dec 2012 16:29:01 +0000 (16:29 +0000)]
cli: Inject DLL on windows by default.
José Fonseca [Thu, 20 Dec 2012 16:28:29 +0000 (16:28 +0000)]
cli: Update description of windows trace apis.
José Fonseca [Thu, 20 Dec 2012 16:26:29 +0000 (16:26 +0000)]
gltrace: Prevent use of uninitialised variable.
José Fonseca [Thu, 20 Dec 2012 16:26:06 +0000 (16:26 +0000)]
gltrace: Recognize more ES parameters.
We now always use our bundled headers so no need to be conservative any
more.
José Fonseca [Thu, 20 Dec 2012 16:10:55 +0000 (16:10 +0000)]
gltrace: Support GL_(NUM_)PROGRAM_BINARY_FORMATS (issue #104).
José Fonseca [Thu, 20 Dec 2012 15:34:50 +0000 (15:34 +0000)]
gltrace/retrace: Full support for variable length parameters.
Such as GL_COMPRESSED_TEXTURE_FORMATS.
José Fonseca [Thu, 20 Dec 2012 15:29:09 +0000 (15:29 +0000)]
retrace: Split ScopedAllocator into its own header.
It will be useful outside of retrace.
José Fonseca [Tue, 18 Dec 2012 10:45:39 +0000 (10:45 +0000)]
Update downloads link.
José Fonseca [Wed, 12 Dec 2012 18:35:56 +0000 (18:35 +0000)]
cli: Fix MSVC build.
José Fonseca [Wed, 12 Dec 2012 09:18:32 +0000 (09:18 +0000)]
d3dretrace: presents may flip so set CALL_FLAG_SWAP_RENDERTARGET flag.
José Fonseca [Wed, 12 Dec 2012 07:38:42 +0000 (07:38 +0000)]
d3dretrace: Dump D3D8 images too.
José Fonseca [Tue, 11 Dec 2012 20:37:39 +0000 (20:37 +0000)]
scripts: Add some missing code.
José Fonseca [Tue, 11 Dec 2012 19:51:26 +0000 (19:51 +0000)]
scripts: New script to convert to PIX.
José Fonseca [Tue, 11 Dec 2012 19:02:48 +0000 (19:02 +0000)]
d3dretrace: Follow --driver option for d3d8/d3d9 too
José Fonseca [Tue, 11 Dec 2012 17:50:50 +0000 (17:50 +0000)]
d3d9state: Upack D3DFMT_R5G6B5 too.
Quite common.
José Fonseca [Tue, 11 Dec 2012 09:02:23 +0000 (09:02 +0000)]
scripts: Don't install bogus sample.py
José Fonseca [Tue, 11 Dec 2012 07:34:45 +0000 (07:34 +0000)]
scripts: Install all of them.
José Fonseca [Tue, 11 Dec 2012 07:22:16 +0000 (07:22 +0000)]
Install all thirdparty licenses.
José Fonseca [Tue, 11 Dec 2012 07:20:26 +0000 (07:20 +0000)]
Merge branch 'trim-auto'
Conflicts:
cli/CMakeLists.txt
José Fonseca [Mon, 10 Dec 2012 22:58:18 +0000 (22:58 +0000)]
Merge remote-tracking branch 'github/timestamp'
José Fonseca [Mon, 10 Dec 2012 17:11:36 +0000 (17:11 +0000)]
glretrace: Remove the gpu/cpu time syncing code.
No longer necessary now that we use the same clock (GL_TIMESTAMP) for
both GPU and CPU time measurements.
José Fonseca [Sun, 9 Dec 2012 15:46:59 +0000 (15:46 +0000)]
cmake: Move the binary/installs definitions to CLI.
As that's the only place they are used.
José Fonseca [Sun, 9 Dec 2012 13:22:30 +0000 (13:22 +0000)]
qapitrace: Determine binary dir in run-time.
José Fonseca [Sun, 9 Dec 2012 13:05:24 +0000 (13:05 +0000)]
qapitrace: Adjust PATH only once and for all.
José Fonseca [Sun, 9 Dec 2012 12:38:48 +0000 (12:38 +0000)]
qapitrace: Fix histogram tooltip for profiles with small number of calls.
Alexandr Akulich [Fri, 7 Dec 2012 11:22:49 +0000 (17:22 +0600)]
gui/tracedialog: Don't show warning when user cancel to browse.
And add three dots to browse button's label to indicate dialog.
Alexandr Akulich [Fri, 7 Dec 2012 10:59:52 +0000 (16:59 +0600)]
gui/mainwindow: Add functions that toggle actions enables and use it.
Added enabling/disabling of few more actions.
Cleanup .ui file (set actions to default state).
Alexandr Akulich [Fri, 7 Dec 2012 10:58:14 +0000 (16:58 +0600)]
gui: Fix crash on trigger actions without loaded trace-file.
gui/apitrace: findFrameStart(), findFrameEnd(): Do nothing, when passed frame is null-pointer.
Alexandr Akulich [Fri, 7 Dec 2012 10:12:03 +0000 (16:12 +0600)]
gui: Small style/usability fixes.
Add accelerator (F) to Edit->Find.
Add accelerator (N) and shortcut (Ctrl+N) to File->New.
Rename "File->New" to "File->New..." to indicate, that dialog will be showed.
Carl Worth [Thu, 15 Nov 2012 18:51:01 +0000 (10:51 -0800)]
glretrace: Use GL_TIMESTAMP (if available) for CPU profiling.
The prior scheme of trying to continuously re-synchronize separate CPU
and GPU counters is doomed to always be unreliable. Instead, simply prefer
to use the GL_TIMESTAMP values for both GPU and for CPU profiling.
v2: José Fonseca: use glGet(GL_TIMESTAMP)
José Fonseca [Fri, 7 Dec 2012 15:33:47 +0000 (15:33 +0000)]
d3d11state: Use DirectXTex for format conversion.
José Fonseca [Fri, 7 Dec 2012 15:33:21 +0000 (15:33 +0000)]
directxtex: Get it building on MinGW.
José Fonseca [Fri, 7 Dec 2012 11:53:23 +0000 (11:53 +0000)]
directxtex: Fix include filename case.
José Fonseca [Fri, 7 Dec 2012 11:37:16 +0000 (11:37 +0000)]
directxtex: Don't redefine NOMINMAX.
José Fonseca [Fri, 7 Dec 2012 11:37:00 +0000 (11:37 +0000)]
directxtex: Build with cmake.
José Fonseca [Fri, 7 Dec 2012 11:14:11 +0000 (11:14 +0000)]
thirdparty/directxtex: Import DirectXTex library.
Will be useful for converting DirectX image formats.
José Fonseca [Fri, 7 Dec 2012 09:26:01 +0000 (09:26 +0000)]
common: Recognize Create* as DirectX call.
José Fonseca [Fri, 7 Dec 2012 08:27:26 +0000 (08:27 +0000)]
image: Add forgotten CMakeLists.txt
doh..
José Fonseca [Fri, 7 Dec 2012 07:48:10 +0000 (07:48 +0000)]
Drop API_D3D10/11.
José Fonseca [Fri, 7 Dec 2012 07:43:09 +0000 (07:43 +0000)]
cli: Remove dead files.
José Fonseca [Fri, 7 Dec 2012 07:33:17 +0000 (07:33 +0000)]
cli: Move pickle.hpp in.
Only used by cli module.
José Fonseca [Fri, 7 Dec 2012 07:33:05 +0000 (07:33 +0000)]
image: Move image code into its own module.
José Fonseca [Fri, 7 Dec 2012 07:00:46 +0000 (07:00 +0000)]
cli: Merge trace_resource.cpp and trace_tools_trace.cpp in.
It's only used by CLI and it will not change.
José Fonseca [Thu, 6 Dec 2012 07:11:29 +0000 (07:11 +0000)]
tracediff: Fix python differ to not highlight when stdout is not a tty
José Fonseca [Sat, 1 Dec 2012 10:07:13 +0000 (10:07 +0000)]
specs: A few more tweaks to D3D specs.
José Fonseca [Thu, 6 Dec 2012 07:11:29 +0000 (07:11 +0000)]
tracediff: Fix python differ to not highlight when stdout is not a tty