Bartosz Taudul
a03c7580b9
Merge pull request #1038 from simonvanbernem/save-ui-scale
...
Added saving of user ui scale via global configuration.
2025-04-28 17:02:54 +02:00
Simon van Bernem
132a4ba320
Revert "The config is now always saved on exit."
...
This reverts commit 6b03d1dd9e80069fef12e9f5043b627bfea99f17.
2025-04-28 17:01:29 +02:00
Simon van Bernem
6b03d1dd9e
The config is now always saved on exit.
2025-04-28 15:37:04 +02:00
Simon van Bernem
7474127bbb
Fixed typo
2025-04-27 21:38:23 +02:00
Simon van Bernem
a277453acb
Added saving of user ui scale in the global configuration. Moved userScale into s_config. Prevented "Get started" and "Loading trace..." windows from having their position saved between restarts, because if you change scale and then restart, they might get pushed to the edge of the window, which is confusing.
2025-04-27 21:33:08 +02:00
Bartosz Taudul
cc0c53496d
Merge pull request #1037 from simonvanbernem/per-monitor-dpi
...
Adding per-monitor DPI awareness
2025-04-25 21:37:55 +02:00
Simon van Bernem
a150fdfc35
Adding per-monitor DPI awareness by using glfwGetWindowContentScale instead of glfwGetMonitorContentScale and ensuring that the window is also resized appropriately by using GLFW_SCALE_TO_MONITOR
2025-04-25 19:44:30 +02:00
Bartosz Taudul
753305a797
Merge pull request #1031 from shtanko-sv/csvexport-values
...
Add exporting user values into CSV
2025-04-17 12:46:18 +02:00
Sergey Shtanko
0039895398
Add exporting user values into CSV
2025-04-17 11:11:02 +01:00
Bartosz Taudul
1fc7c9f160
Merge pull request #1024 from siliceum/update-batch-addr2line
...
tracy-update: Batch addr2line calls per 1024 addresses and escape paths
2025-04-14 17:04:02 +02:00
Clément Grégoire
f02c6fe4d5
Batch addr2line calls per 1024 addresses and escape paths
...
addr2line starts failing when given too many addresses to resolve.
Batching per 1024 addresses allows not only to see progress but also fixes resolution for images with high number of addresses to resolve.
Escaping is also required when image paths have spaces for example.
2025-04-14 15:39:26 +02:00
Bartosz Taudul
0d1d28415c
Merge pull request #1022 from siliceum/TracyLine-Evaluate-to-a-constant
...
Change TracyLine to be evaluate as a constant even with Edit-and-Cont…
2025-04-14 15:00:52 +02:00
Bartosz Taudul
54d6dd9662
Merge pull request #1023 from slomp/master
...
More context about the MSVC "Edit and Continue" issue
2025-04-12 16:50:20 +02:00
Marcos Slomp
195d79fc67
More context about the MSVC "Edit and Continue" issue
2025-04-12 07:38:19 -07:00
Gabriel Bon
f41c4672cb
Change TracyLine to be evaluate as a constant even with Edit-and-Continue
2025-04-10 09:26:47 +02:00
Bartosz Taudul
e656d49f53
Merge pull request #1020 from GabTux/master
...
Bump PPQSort version to 1.0.5.
2025-04-08 00:24:38 +02:00
Gabriel Hevr
85a9d5e284
Bump PPQSort version to 1.0.5.
2025-04-07 21:27:57 +02:00
Bartosz Taudul
3f9c4736f3
Merge pull request #1018 from tealsnow/master
...
Update link to zig bindings to an up-to-date and maintained version
2025-04-02 18:50:42 +02:00
Ketan Reynolds
49d8a2c082
Update link to zig bindings to an up-to-date and maintained version
...
The original link was out of date and unmaintained
I've changed it to an up-to-date and maintained one
2025-04-02 18:32:15 +02:00
Bartosz Taudul
2d9169e3d1
Merge pull request #1015 from mcourteaux/fix-lockmark
...
Adjust LockMark() macro to allow member access expressions, like LockMark(object.mutex);
2025-03-28 16:21:09 +01:00
Martijn Courteaux
bb474a12c7
Adjust LockMark() macro to allow member access expressions, like LockMark(object.mutex);
2025-03-28 16:08:53 +01:00
Bartosz Taudul
684400b45c
Merge pull request #1012 from stalkopat/clipboard-user-text
...
Add clipboard button for user text in ZoneInfo
2025-03-25 22:31:31 +01:00
stalkopat
e5482580cd
add clipboard button for user text in ZoneInfo
2025-03-25 18:13:59 +00:00
Bartosz Taudul
9074461ffb
Merge pull request #1005 from jrng/gpu-zero-callstack
...
Handle callstack of zero in Vulkan and Direct3D 11
2025-03-10 22:23:21 +01:00
Julius Range-Lüdemann
eb47afe1f0
Handle callstack of zero in Vulkan and Direct3D 11
...
With TRACY_CALLSTACK set to 0 when not defined, these gpu functions get
called with depth=0. In other places this was alread fixed.
2025-03-10 21:38:59 +01:00
Bartosz Taudul
873c6ecac8
Merge pull request #1004 from bbb651/xdg-activation
...
wayland: Activate window with `XDG_ACTIVATION_TOKEN`.
2025-03-09 12:23:47 +01:00
bbb651
ae2e6d0a7b
wayland: Activate window with XDG_ACTIVATION_TOKEN
.
2025-03-09 00:45:51 +02:00
Bartosz Taudul
1530884256
Merge pull request #1003 from Lectem/cmake-require-python
...
Let CMake discover python3 and make it required
2025-03-08 17:31:35 +01:00
Clément Grégoire
7455e5890e
Let CMake discover python3 and make it required since it is effectively needed to build
...
This gives a better error message and helps finding the correct python executable since python3 may actually be only named python on windows for example.
2025-03-08 16:37:09 +01:00
Bartosz Taudul
2183962ef7
Merge pull request #995 from anthofoxo/lua-hook
...
Provide Lua hook function for automatic Lua instrumentation.
2025-03-01 11:43:06 +01:00
AnthoFoxo
bc7ec5b89b
Improve wording in tracy.tex for automatic lua instrumentation
2025-02-28 23:52:23 -05:00
AnthoFoxo
9b3c46dd5e
Document automatic Lua instrumentation in tracy.tex
2025-02-28 08:41:42 -05:00
AnthoFoxo
54dcbc87ad
implement lua hook function
2025-02-26 21:09:31 -05:00
FrK5E
b8c2e25c3d
Fix a build of OpelCLVectorAdd example on linux ( #989 )
...
* Add a <cmath> as to fix unknown symbol sqrt whist building on linux (gcc). Remove <algorithm> as a consequence of clangd suggestion.
* adjust according to the review comment
2025-02-26 15:37:49 +01:00
Bartosz Taudul
b04dfcd43d
Use ccache if available.
2025-02-21 23:27:15 +01:00
Bartosz Taudul
48efd98df7
Unmap icon buffer memory.
2025-02-20 00:14:24 +01:00
Bartosz Taudul
c5dc5f4455
Bump zstd to 1.5.7, use CPM to download.
2025-02-19 23:47:37 +01:00
Bartosz Taudul
8ad05c66ae
Merge pull request #987 from mtreglia-gpsw/meson/fixes
...
Change meson install settings to correctly copy directory hierarchy
2025-02-19 13:34:05 +01:00
Bartosz Taudul
6566d6a8d8
Merge pull request #988 from mtreglia-gpsw/tools/install
...
Add install target for binaries in capture and csvexport
2025-02-19 13:34:00 +01:00
Marco Treglia
ad61037925
Add install target for binaries in capture and csvexport
2025-02-19 09:41:32 +01:00
Marco Treglia
2d53818e55
Changed mesong.build
2025-02-19 09:36:55 +01:00
Marco Treglia
d966ecf9f7
add TracyKCore in meson.build
2025-02-19 09:36:50 +01:00
Bartosz Taudul
d71fc39577
Merge pull request #986 from Xnuman/master
...
Change cmake export settings to correctly copy directory hierarchy
2025-02-19 00:46:12 +01:00
Xnum
40d12b6a53
Changed CMakeLists.txt
2025-02-18 23:38:25 +01:00
Bartosz Taudul
4a5a21cdb0
Merge pull request #982 from brad-anderson/patch-1
...
Include <chrono> explicitly in TraceyView
2025-02-12 20:05:58 +01:00
Brad Anderson
50ff279aad
Include <chrono> explicitly in TraceyView
...
In Visual Studio 17.13 the STL team at Microsoft cleaned up internal includes of other public STL headers (most notably <chrono>) to increase build throughput for STL users, but now you need to include them yourself rather than rely on the indirect inclusion.
2025-02-12 11:40:27 -07:00
Bartosz Taudul
367ed69501
Use XDG toplevel icon protocol to set the icon.
2025-02-12 00:21:27 +01:00
Bartosz Taudul
8b3638e8e2
Merge pull request #981 from slomp/patch-1
...
quick-fix for TracyD3D11.hpp
2025-02-10 18:45:58 +01:00
Marcos Slomp
5c069f9d8d
quick-fix for TracyD3D11.hpp
...
Apparently, waiting for an enclosing query does not guarantee that the inner queries also become readily available... Need to wait for them too.
2025-02-10 09:13:33 -08:00
Bartosz Taudul
9b7d53a979
Add short images option to callstack / wait stacks window.
2025-02-07 17:34:19 +01:00
Bartosz Taudul
ad5615cda2
Short image names in sample entry stacks window.
2025-02-07 17:28:55 +01:00
Bartosz Taudul
b8a64190dc
Add external frames checkbox to sample entry stacks window.
2025-02-07 17:16:18 +01:00
Bartosz Taudul
3b48252bb3
Move "group by function name" checkbox to a more appropriate place.
2025-02-07 17:15:52 +01:00
Bartosz Taudul
526e41b5dc
Don't show image tooltip, if there's no shortening and it fits the space.
2025-02-07 02:43:32 +01:00
Bartosz Taudul
cfc67727a0
Add button to view entry stacks from the symbol view.
2025-02-07 02:39:00 +01:00
Bartosz Taudul
015a27bb4e
Cosmetics.
2025-02-07 02:29:08 +01:00
Bartosz Taudul
f1128f825d
Rename "sample entry call stacks" to "sample entry stacks".
2025-02-07 02:27:43 +01:00
Bartosz Taudul
c38764db3c
Add appropriate tooltips for image names.
2025-02-07 02:21:52 +01:00
Bartosz Taudul
408939862b
Add an option to display only the file part of image name.
2025-02-07 02:17:40 +01:00
Bartosz Taudul
3ac95e6902
Bump imgui to 1.91.8.
2025-02-03 19:54:39 +01:00
Bartosz Taudul
0c228533f2
Merge pull request #978 from phsilva/master
...
Fix python bindings build
2025-01-29 01:42:46 +01:00
Paulo Henrique Silva
55d7df3782
Fix python bindings build
2025-01-28 15:23:52 -08:00
Bartosz Taudul
16405715a6
Bump PPQSort to 1.0.4.
2025-01-27 18:59:22 +01:00
Bartosz Taudul
5479a42ef9
Merge pull request #975 from dezhiAmd/csvExportGpuZone
...
Export gpu zones to csv file
2025-01-23 20:05:58 +01:00
Liao
4662be3aac
make it easier to see the diff
...
Signed-off-by: Liao <dezhliao@amd.com>
2025-01-23 10:18:12 -08:00
Liao
e19a823c37
remove spaces due to autoformatting
...
Signed-off-by: Liao <dezhliao@amd.com>
2025-01-20 12:14:36 -08:00
Liao
2020ef6c6e
Add a flag -g to export gpu zones to csv file
...
Signed-off-by: Liao <dezhliao@amd.com>
2025-01-20 11:48:56 -08:00
Bartosz Taudul
f583d1c855
Merge pull request #973 from 0-wiz-0/master
...
Use correct header on NetBSD.
2025-01-20 14:13:17 +01:00
Thomas Klausner
7272f9cac1
Use correct header on NetBSD.
2025-01-20 14:10:34 +01:00
Bartosz Taudul
da60684b9f
Merge pull request #967 from foxtran/feature/lto
...
Add cross-project LTO
2025-01-14 11:24:13 +01:00
Igor S. Gerasimov
be3aa5ac21
Add info about TRACY_LTO
2025-01-11 19:56:02 +01:00
Igor S. Gerasimov
b87a935c58
Allow global setting of CMAKE_INTERPROCEDURAL_OPTIMIZATION
2025-01-11 19:35:39 +01:00
Igor S. Gerasimov
9d03627a17
Add info about LTO usage for Fortran; C++ projects can be linked as before
2025-01-11 19:07:31 +01:00
Igor S. Gerasimov
7c48baf132
Add Link-Time optimization option
2025-01-11 16:33:01 +01:00
Igor S. Gerasimov
2608c6bbc9
Use whitespaces only
2025-01-11 16:15:33 +01:00
Bartosz Taudul
e49c25f2f5
Update NEWS.
2025-01-09 13:48:46 +01:00
Bartosz Taudul
b68f63c6d5
Add Fortran to list of provided integrations.
2025-01-09 13:21:05 +01:00
Bartosz Taudul
27689bcf43
Merge pull request #962 from foxtran/feature/fortran-support
...
Add initial native Fortran support
2025-01-09 13:18:57 +01:00
Bartosz Taudul
277555af2a
Merge pull request #961 from foxtran/fix/c-int
...
Use `int32_t` type instead of `int`
2025-01-09 13:16:19 +01:00
Igor S. Gerasimov
802bdbbecc
Fix type(c_ptr) in bind(C)
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
a42ea071a0
Add support of Cray compilers
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
fd33d1c839
Add support of Oracle Sun 12.6
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
21c8d7615d
Add colors
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
092e91d058
Add documentation
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
f01973a78c
Reset srcloc variables
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
4273d34ca4
tracy_source_location_data must be public
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
fb9686fb28
Prettify code
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
9b14656c8a
Add null char
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
38e7024277
Add plot formats
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
7730ac595f
Add fibers support
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
82460b0316
Use simpler typename of context
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
caabfc6379
Implement plots
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
49cc094869
Implement tracy_appinfo
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
fbc40e8b9e
Implement frame related things
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
4d5cd252a4
Add messages
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
59116feb55
Implement memory operations
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
4fd6d5317b
Implement tracy_connected
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
07cd1d8ee1
Implement zone_set_properties
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
ead67c06d9
Add zone begin/end
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
1d627c86be
Implement tracy_alloc_srcloc
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
66a50a8c76
Add TRACY_MANUAL_LIFETIME routines
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
3488e08aa7
Add Tracy structures except lockable
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
d16986dfa7
Add tracy_set_thread_name
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
a30fff8b4c
CMake support of Fortran bindings
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
e981a5ba6f
Add initial module file
2025-01-05 23:21:12 +01:00
Igor S. Gerasimov
3e88544d1f
Update int type in Python API
2025-01-02 21:44:06 +01:00
Igor S. Gerasimov
7093eb0b08
Update int for ___tracy_after_try_lock_lockable_ctx
2025-01-02 14:33:09 +01:00
Igor S. Gerasimov
7e128f3bce
Update int for ___tracy_emit_plot_config
2025-01-02 14:32:04 +01:00
Igor S. Gerasimov
6e220fee91
Update int for ___tracy_emit_frame_image
2025-01-02 14:25:06 +01:00
Igor S. Gerasimov
94403bde4b
Update int for ___tracy_before_lock_lockable_ctx
2025-01-02 14:23:06 +01:00
Igor S. Gerasimov
cd8e2a5d8a
Update int for ___tracy_connected
2025-01-02 14:20:37 +01:00
Igor S. Gerasimov
a8f844b970
Use int32_t type for depth in client
2025-01-02 14:19:12 +01:00
Igor S. Gerasimov
78bca3f0e1
Use int32_t for callstack (depth)
2025-01-02 14:04:06 +01:00
Igor S. Gerasimov
4929ac6487
Use int32_t for secure flag
2025-01-02 13:45:47 +01:00
Igor S. Gerasimov
39d382b033
Use int32_t for active flag
2025-01-02 13:42:22 +01:00
Igor S. Gerasimov
8baa50b2f5
Update int for ___tracy_profiler_started
2025-01-02 13:28:39 +01:00
Igor S. Gerasimov
7f516e2fed
Update int type in structures
2025-01-02 13:21:44 +01:00
Bartosz Taudul
8b0b2343e1
Merge pull request #957 from foxtran/feature/merge-calls-callstack
...
Simplify API by decreasing a number of entry points
2025-01-02 12:08:39 +01:00
Igor S. Gerasimov
b9c7cd1738
Fix code formatting
2025-01-02 11:49:51 +01:00
Igor S. Gerasimov
31eeb843c7
Small reformat
2025-01-02 11:26:56 +01:00
Igor S. Gerasimov
d30a2d6854
Simplify ZoneBegin functions
2025-01-02 11:26:56 +01:00
Bartosz Taudul
38636648d3
Merge pull request #960 from JasonnnW3000/master
...
Update LICENSE, fix copyright license year
2025-01-01 12:55:33 +01:00
JasonnnW3000
23bfabc6c2
Update LICENSE, fix license year
...
Signed-off-by: JasonnnW3000 <sufssl04@gmail.com>
2025-01-01 05:50:07 -05:00
Bartosz Taudul
57f1a63b3f
Merge pull request #956 from foxtran/fix/incompatible-MANUAL_LIFETIME
...
Generate human-readable errors when TRACY_MANUAL_LIFETIME is set and TRACT_DELAYED_INIT is not
2024-12-27 12:32:51 +01:00
Igor S. Gerasimov
3f700c93a6
Do not unset TRACY_CALLSTACK
2024-12-27 11:47:02 +01:00
Igor S. Gerasimov
a2fce55aee
Rename has_stacktrace -> has_callstack
2024-12-27 11:43:00 +01:00
Igor S. Gerasimov
9aba23bbb0
Remove TRACY_HAS_STACKCALL from TracyC.h
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
96ba28e761
Use constexpr instead of macro in memory manager in C API
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
39137d809e
Accept zero-depth callstack
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
117ab107c1
Simplify macroses for stack collections
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
4591dfa208
Simplify tracy::Profiler defines
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
e9eecbb2c6
Replace #ifdef TRACT_HAS_CALLSTACK with constexpr call
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
cf912bbb19
Merge ScopedZone initializers
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
1c63239a78
Always collect callstack
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
e9664a1c87
Introduce has_stacktrace function
2024-12-27 11:29:41 +01:00
Igor S. Gerasimov
caf0047367
Catch disabled TRACY_DELAYED_INIT when TRACY_MANUAL_LIFETIME is enabled
2024-12-27 08:58:00 +01:00
Igor S. Gerasimov
5051db201e
Show error message if TRACY_MANUAL_LIFETIME is enabled without enabled TRACY_DELAYED_INIT
2024-12-27 08:51:50 +01:00
Bartosz Taudul
6452690e57
Merge pull request #948 from avilleret/avilleret/csvexport_plot
...
add very simple plot export
2024-12-23 13:41:02 +01:00
Antoine Villeret
aa28504c60
add very simple plot export
2024-12-23 13:12:51 +01:00
Bartosz Taudul
96e1cb17c6
Merge pull request #944 from foxtran/patch-2
...
Enable -fexperimental-library only for C++ frontend of AppleClang
2024-12-20 12:36:39 +01:00
foxtran
07d38d608e
Enable -fexperimental-library only for C++
2024-12-20 11:55:18 +01:00
foxtran
01a7f62650
Enable -fexperimental-library only for AppleClang
2024-12-20 11:39:49 +01:00
Bartosz Taudul
7fc3366086
Add support for keeping external tails in flame graph.
2024-12-16 16:48:51 +01:00
Bartosz Taudul
99d39e6eee
Separate call stack traversal from flame graph building.
2024-12-16 16:41:00 +01:00
Bartosz Taudul
9d839c52d1
Allow filtering out external frames in flame graph.
2024-12-16 16:21:31 +01:00
Bartosz Taudul
70fc28506f
Expose IsFrameExternal as View's method.
2024-12-16 16:21:31 +01:00
Bartosz Taudul
1e796064bc
Add external frames UI to flame graph.
2024-12-16 16:21:31 +01:00
Bartosz Taudul
bb02d0b0af
Add icon to external frames checkbox.
2024-12-16 14:21:05 +01:00
Bartosz Taudul
87c54f92cf
Merge pull request #941 from UnixY2K/patch-1
...
[Meson][Windows] detect MSVC usage
2024-12-12 21:00:04 +01:00
Jonathan Guzmán
b48ab72cf0
detect MSVC usage
...
previous check tested for compiler ID, fixed the detection to an specific MSVC macro and the current C++ version so it does not override an user specified version
2024-12-12 12:37:53 -06:00
Bartosz Taudul
45c4dc5124
Bump imgui to 1.91.6-docking.
2024-12-11 17:08:21 +01:00
Bartosz Taudul
f703cc33cf
Merge pull request #939 from eibach/feature_hexvalue
...
Display zone values also in hex
2024-12-10 11:41:22 +01:00
Dirk Eibach
8f25eaf54e
Display zone values also in hex
2024-12-10 11:07:48 +01:00
Bartosz Taudul
c214804aa1
Merge pull request #935 from JCash/missing-namespace
...
Added missing tracy:: to some macros
2024-12-01 17:02:15 +01:00
JCash
c5797e4e36
Added missing tracy::
2024-12-01 16:19:27 +01:00
Bartosz Taudul
a9e8f9a5f8
Merge pull request #931 from eibach/feature_abstime
...
Add absolute time info to Zone info view
2024-11-27 22:59:27 +01:00
Dirk Eibach
f0ee324399
Add absolute time info to Zone info view
2024-11-27 22:31:48 +01:00
Bartosz Taudul
759b4c3bfe
Merge pull request #927 from sacereda/systrace-leak
...
Leak, returned value from GetThreadDescription not freed
2024-11-19 14:50:56 +01:00
Sergio Acereda
b9ee0d3b4c
Leak, returned value from GetThreadDescription not freed
2024-11-19 14:24:50 +01:00
Bartosz Taudul
e756fa75cf
Fix UI.
2024-11-17 12:20:55 +01:00
Bartosz Taudul
e6ee311392
Merge pull request #926 from WernherVonData/percentiles-for-find-zone
...
Percentiles p75, p90 for FindZone view
2024-11-17 12:18:27 +01:00
wernhervondata
b9b808ca12
fixup! percentiles p75, p90 for FindZone view
2024-11-17 10:26:24 +01:00
wernhervondata
cc0f158c16
percentiles p75, p90 for FindZone view
2024-11-16 15:11:46 +01:00
Bartosz Taudul
5120ad8311
Merge pull request #925 from TroutZhang/patch-1
...
Fix crash on Android due to wrong TLS model
2024-11-16 11:58:05 +01:00
Trout Zhang
339a92a7b2
Fix crash on Android due to wrong TLS model
2024-11-15 18:22:35 +02:00
imkunet
0cac843ad7
Add scroll modifier options
2024-11-14 18:10:14 +01:00
Bartosz Taudul
3c0db7e3c3
Merge pull request #924 from fknorr/sys-power-fscanf-warning
...
Silence GCC fscanf warning in TracySysPower.cpp
2024-11-13 11:30:25 +01:00
Fabian Knorr
7ef690bd5a
Silence GCC fscanf warning in TracySysPower.cpp
...
fscanf is [[warn_unused_result]], which triggers -Wunused-result. In
this instance it is correct for maxRange to remain unchanged if reading
from sysfs should fail for some reason.
2024-11-13 10:15:05 +01:00
Bartosz Taudul
16ef91c238
Bump imgui to 1.91.5-docking.
2024-11-07 22:33:39 +01:00
Bartosz Taudul
ee06542f1f
Restrict mold linker to Linux.
2024-10-30 17:11:51 +01:00
Bartosz Taudul
caa61de540
Do not build fat macos capstone library.
2024-10-30 17:10:40 +01:00
Bartosz Taudul
55ea2a20e7
Set minimum size for folded flame graph items.
2024-10-27 19:59:48 +01:00
Bartosz Taudul
2097e3c836
Normalize flame graph sample frame names, to mach callstack list behavior.
2024-10-27 19:53:32 +01:00
Bartosz Taudul
84718101fe
Use proper name for inline frames in flame graph.
2024-10-27 19:44:40 +01:00
Bartosz Taudul
ecf3b30baf
Add minimum width for flame graph items to be drawn.
2024-10-27 12:53:52 +01:00
Bartosz Taudul
ceeea7712d
Use precalculated start times.
2024-10-27 12:00:34 +01:00
Bartosz Taudul
9d2f874b02
Calculate flame graph begin times.
2024-10-27 11:58:23 +01:00
Bartosz Taudul
92241fc0a4
Fix typo.
2024-10-27 11:30:50 +01:00
Bartosz Taudul
869d75f53e
Extract flame graph level drawing to a separate function.
2024-10-27 11:27:44 +01:00
Bartosz Taudul
a916050724
Add memory discard to C API.
2024-10-21 18:31:49 +02:00
Bartosz Taudul
872367f068
Process memory pool discard events.
2024-10-21 18:22:22 +02:00
Bartosz Taudul
cacd71c401
Add arena allocator test.
2024-10-21 18:22:22 +02:00
Bartosz Taudul
f4df9013bb
Add memory discard message.
...
This can be used to erase all allocations made within the named memory
pool. The usual use case would be for arena allocators, which allocate
by advancing a pointer and never have to free the memory. There is no
tracking of individual allocations and everything is freed frequently,
by reseting the pointer, for example once per frame.
Since this is used in special-purpose allocators, there is no support
for discarding the memory of the default memory pool.
2024-10-21 18:22:22 +02:00
Bartosz Taudul
3dc68bcb76
Update ImGui to 1.91.4-docking.
2024-10-18 22:58:04 +02:00
Bartosz Taudul
d0a7ee1692
Center elevated privileges warning message.
2024-10-16 00:32:11 +02:00
Bartosz Taudul
60f461d94d
Add debug build note to about window.
2024-10-16 00:28:24 +02:00
Bartosz Taudul
f7e26acfb9
Additional kernel frame check.
2024-10-16 00:22:06 +02:00
Bartosz Taudul
9baf5f403c
Make the check explicit.
2024-10-16 00:21:01 +02:00
Bartosz Taudul
44bb5d474b
Simplify condition.
2024-10-16 00:21:01 +02:00
Bartosz Taudul
c2b4e81493
Display omitted external frame counts.
2024-10-15 02:22:52 +02:00
Bartosz Taudul
27d7939cc1
Improve "no annotations" view.
2024-10-15 02:04:45 +02:00
Bartosz Taudul
1ab0b5abd2
Improve "no wait stacks" view.
2024-10-15 01:51:58 +02:00
Bartosz Taudul
8a7f540d7c
Fill emptiness in find zone window awaiting for query.
2024-10-15 01:29:08 +02:00
Bartosz Taudul
697ea8b3b3
Mark debug builds.
2024-10-14 23:39:54 +02:00
Bartosz Taudul
1bd56a93f0
Don't mix thread order and thread data vectors.
2024-10-13 00:04:10 +02:00
Bartosz Taudul
1bd84419c0
Extend plots to the end of the trace.
2024-10-09 23:55:50 +02:00
Bartosz Taudul
90c072b66c
Update manual.
2024-10-06 15:38:28 +02:00
Bartosz Taudul
096eec1b84
Improve build process documentation.
2024-10-06 15:24:25 +02:00
Bartosz Taudul
9839e4aea7
More unwanted architectures.
2024-10-05 13:04:21 +02:00
Bartosz Taudul
1499da51b8
Add label for local call stack context menu.
2024-10-04 23:49:06 +02:00
Bartosz Taudul
3e41052853
Add context menu to left-click on item in symbol statistics list.
...
The context menu contains two items:
1. "View symbol", which shows the symbol code / disassembly. This was
previously available by right-clicking on the source file name.
2. "Sample entry call stacks", which brings up the list window that
was previously available with left-click on the entry line.
This change intends to make the symbol view easier to discover.
2024-10-04 23:38:02 +02:00
Bartosz Taudul
384646b03b
Disable wrapping of message lines in zone info window.
...
This unifies the behavior with message list in messages window.
2024-10-04 22:47:25 +02:00
Bartosz Taudul
471ed0ef65
Calculate proper message list size when children messages are excluded.
2024-10-04 22:41:17 +02:00
Bartosz Taudul
8d418760c0
Statistics view also can have no entries to display.
2024-10-04 22:34:40 +02:00
Bartosz Taudul
9ab2f35c08
Fix going to a phantom line when there's no source file available.
2024-10-04 18:01:51 +02:00
Bartosz Taudul
a8c6c5f50e
Disable not needed arch support in capstone.
2024-10-04 17:31:28 +02:00
Bartosz Taudul
5454b3202d
Bump capstone to 6.0.0-Alpha1.
2024-10-04 17:19:18 +02:00
Bartosz Taudul
fd5ee53251
Update ImGui to 1.91.3-docking.
2024-10-04 17:04:47 +02:00
Bartosz Taudul
b46d8db565
Workaround CPM issues with patching non-cached checkouts.
2024-10-04 00:36:29 +02:00
Bartosz Taudul
4497201928
Merge pull request #899 from Jan200101/PR/header-merge
...
Install header files into one folder
2024-10-02 22:55:31 +02:00
Bartosz Taudul
e0c3efee6c
Merge pull request #898 from Jan200101/PR/arch-cmake-target
...
Export cmake config into library directory
2024-10-02 22:55:03 +02:00
Jan200101
f45dc88bf8
Install header files into one folder
...
all headers from one project are best kept in one place
2024-10-02 22:51:01 +02:00
Jan200101
4490f9cb41
Export cmake config into library directory
...
because the target contains architecture dependent information (for example library path) its best to store it in an architecture dependent path
2024-10-02 22:50:06 +02:00
Bartosz Taudul
13d9ed7e87
Merge pull request #889 from jkriegshauser/fix-long-string-crash
...
Safe copy to fix issue #888
2024-10-02 22:28:24 +02:00
Joshua Kriegshauser
66edfaec42
More PR feedback
2024-10-02 12:50:12 -07:00
Joshua Kriegshauser
e1554a13e0
PR feedback
2024-10-02 11:21:34 -07:00
Joshua Kriegshauser
9dfb1e98b9
Line and braces tweaks
2024-10-02 11:21:34 -07:00
Joshua Kriegshauser
97a6a3dde7
always override unhandled exception filter
2024-10-02 11:21:34 -07:00
Joshua Kriegshauser
cc860fe56a
Reduce template code
2024-10-02 11:21:34 -07:00
Joshua Kriegshauser
201dcb6a8a
Tweaks
2024-10-02 11:21:34 -07:00
Joshua Kriegshauser
5213c53bb0
Use SetUnhandledExceptionFilter instead of vectored exceptions
2024-10-02 11:21:34 -07:00
Joshua Kriegshauser
9378718231
Safe copy
2024-10-02 11:21:34 -07:00
Bartosz Taudul
fe6b79082f
Merge pull request #897 from Devaniti/master
...
Added Custom GPU Context Type
2024-10-02 19:50:20 +02:00
Dmytro Bulatov
34879d6dd3
Bumped protocol version
2024-10-03 02:48:50 +09:00
Dmytro Bulatov
defb91abc1
Added Custom GPU Context Type
2024-10-03 01:55:29 +09:00
Bartosz Taudul
e6eb9899bb
Merge pull request #896 from mcourteaux/master
...
Correct misleading comment.
2024-09-30 17:07:46 +02:00
Martijn Courteaux
28a229c594
Correct misleading comment.
2024-09-30 16:26:31 +02:00
Bartosz Taudul
9f4d7fa5ad
Draw kernel functions red in flame graph.
2024-09-29 00:31:01 +02:00
Bartosz Taudul
346d8a45c6
Cache flame graph.
2024-09-29 00:26:00 +02:00
Bartosz Taudul
02d60a3dde
Frames already have the correct symbol address.
2024-09-28 23:58:40 +02:00
Bartosz Taudul
d0b6869e9e
Sym must be valid.
2024-09-28 23:35:39 +02:00
Bartosz Taudul
20c4822c98
Parallelize building flame graph.
2024-09-28 17:34:16 +02:00
Bartosz Taudul
da1e92956f
Enable running time calculation for instrumented zones in flame graph.
2024-09-28 16:29:21 +02:00
Bartosz Taudul
21721dd814
Add zone running time UI to flame graph window.
2024-09-28 16:17:42 +02:00
Bartosz Taudul
98a064efa9
Allow inspection of symbol from flame graph.
2024-09-28 15:30:50 +02:00
Bartosz Taudul
5caeffa19a
Proper way to detect mouse click.
2024-09-28 15:30:41 +02:00
Bartosz Taudul
e8a9d228c5
Darken inline items in flame graph.
2024-09-28 15:10:04 +02:00
Bartosz Taudul
2ac51fb597
Yet another color darkening function.
2024-09-28 15:10:04 +02:00
Bartosz Taudul
7465b4ffaf
Add tooltip for sampled items in flame graph.
2024-09-28 15:10:04 +02:00
Bartosz Taudul
8819ea745d
Another stray DPI setting in emscripten.
2024-09-28 14:04:17 +02:00
Bartosz Taudul
2435a76caa
Don't set dpiScale if not doing anything with it.
2024-09-28 14:01:18 +02:00
Bartosz Taudul
9f682c6015
Do not perform DPI setup when DPI might be not yet known.
...
Reloading fonts is a fairly lenghty operation (~30-50 ms), so avoid doing
it twice in a row.
2024-09-28 13:55:24 +02:00
Bartosz Taudul
44ae59f363
Enforce DPI scale setup on first render frame.
...
Not all backends know their DPI before window is available.
2024-09-28 13:54:39 +02:00
Bartosz Taudul
04b921e200
Cosmetics.
2024-09-28 13:54:10 +02:00
Bartosz Taudul
290e546f47
Build everything with profiling flags.
2024-09-28 13:38:21 +02:00
Bartosz Taudul
0e6ba23800
Fix columns size in source view files list.
2024-09-28 02:27:45 +02:00
Bartosz Taudul
429de331d6
Show message in find zone window when no zones were collected.
2024-09-28 02:05:30 +02:00
Bartosz Taudul
796f09ef23
Better "no memory data" view in memory window.
2024-09-28 02:00:56 +02:00
Bartosz Taudul
219da446f4
Improve "no messages" view.
2024-09-28 01:56:40 +02:00
Bartosz Taudul
7cb82b9894
Better "load second trace" view in compare window.
2024-09-28 01:53:37 +02:00
Bartosz Taudul
293c76625c
Add centered button function.
2024-09-28 01:53:26 +02:00
Bartosz Taudul
05d00388ed
Better "please wait" view in compare window.
2024-09-28 01:45:08 +02:00
Bartosz Taudul
39ee307409
Improve "please wait" view in find zone window.
2024-09-28 01:42:33 +02:00
Bartosz Taudul
d734aaa357
Improve "no data" screens in statistics window.
2024-09-28 01:39:49 +02:00
Bartosz Taudul
a34b058701
Improve alignment of background tasks circle animation.
2024-09-28 01:30:18 +02:00
Bartosz Taudul
52e0cf38b7
Display message when there's no data for flame graph.
2024-09-28 01:24:59 +02:00
Bartosz Taudul
dfcc5ae37e
Draw time measure in flame graph.
2024-09-28 01:14:46 +02:00
Bartosz Taudul
8740ea710a
Symbol might be unavailable.
2024-09-28 01:09:49 +02:00
Bartosz Taudul
6721db8600
Proper way of enabling libdebuginfod.
2024-09-27 19:59:40 +02:00
Bartosz Taudul
157bf05c50
Setup mailmap.
2024-09-27 16:56:55 +02:00
Bartosz Taudul
2de14f4e38
Patching CPM checkouts is broken without a cache.
...
https://github.com/cpm-cmake/CPM.cmake/issues/577
2024-09-27 16:12:42 +02:00
Bartosz Taudul
616e7c2eec
Retrieve ImGui with CPM.
...
ImGui OpenGL loader is patched, and not regenerated, because the gl3w
script requires network connectivity to download the header files from
Khronos at build time.
2024-09-27 15:55:22 +02:00
Bartosz Taudul
1769c2f457
Add imgui opengl loader diff, for reference.
...
The repo url is https://github.com/dearimgui/gl3w_stripped .
2024-09-27 15:54:14 +02:00
Bartosz Taudul
0e47224578
Universally use add_compile_options().
2024-09-27 14:10:30 +02:00
Bartosz Taudul
be53a82e78
Another try at fixing macos build.
2024-09-26 16:22:47 +02:00
Bartosz Taudul
bc60621d61
Use svg favicon.
2024-09-26 16:21:16 +02:00
Bartosz Taudul
8f8871454c
Fix macos build, hopefully.
2024-09-26 16:02:47 +02:00
Bartosz Taudul
1c1faeff2d
Replace parallel STL with PPQSort.
...
PPQSort is supposedly quite fast: https://github.com/GabTux/PPQSort
More importantly, it does not depend on TBB fuckery, so there's no longer
a need to link with an external library that people may or may not have.
The NO_PARALLEL_STL option is out, as it was provided solely to deal with
TBB being not available. Sequential sorting is still used on emscripten.
2024-09-26 14:41:59 +02:00
Bartosz Taudul
d400183483
Replace stray std::sort() with pdqsort_branchless().
2024-09-26 14:36:56 +02:00
Bartosz Taudul
717605065a
Mark comparators const.
2024-09-26 14:04:20 +02:00
Bartosz Taudul
5b1f3f67c3
Do not include library dependencies in the default target.
...
We are only interested in outputting the executable program.
2024-09-26 13:04:47 +02:00
Bartosz Taudul
721cf57b28
Remove obsolete library build files.
2024-09-26 12:15:56 +02:00
Bartosz Taudul
9c5c082d83
Provide zstd compressed files.
2024-09-26 00:25:13 +02:00
Bartosz Taudul
684c34dc21
Handle focus in/out on emscripten to fix mouse button stickiness.
2024-09-25 00:36:55 +02:00
Bartosz Taudul
bbbe6ce894
Update NEWS.
2024-09-24 20:12:19 +02:00
Bartosz Taudul
fbd359099b
Document top inline option.
2024-09-24 19:57:21 +02:00
Bartosz Taudul
315864e434
Mark self function in inlines list if top inline is enabled.
2024-09-24 19:47:41 +02:00
Bartosz Taudul
b676406878
Assert on parent name being null.
2024-09-24 19:44:36 +02:00
Bartosz Taudul
aca0f3cad7
Workaround failing assert.
...
The aggregate inlines code branch can fail when the top inlines option
is enabled, on an assert. This was present in the code before, it's just
that enabling top inlines is equivalent to expanding all the collapsed
symbols, which is not something practical to do.
Workaround by adding a condition instead of the assert. Finding a repro
case would be better to figure out what's exactly happening there, but
we are where we are.
2024-09-24 19:42:35 +02:00
Bartosz Taudul
2d6bcff3a6
Add option to display top cost inlines in symbol statistics list.
2024-09-24 19:42:35 +02:00
Bartosz Taudul
ae2a7c60b8
Calculate inline symbols list earlier.
2024-09-24 19:42:34 +02:00
Bartosz Taudul
9b9a883d07
Fix crash introduced in 605cdcb5.
2024-09-24 17:15:43 +02:00
Bartosz Taudul
f6882e2a5d
Use a proper way to enable compiler diagnostics with color.
2024-09-23 23:11:08 +02:00
Bartosz Taudul
7792b95443
Workaround MSVC mutex fubar.
2024-09-23 23:10:11 +02:00
Bartosz Taudul
19960c0287
Fix invalid memory read when pointers are not 64-bit.
...
Fixes invalid read on emscripten.
2024-09-22 13:36:15 +02:00
Bartosz Taudul
07a561176c
Remove AnalyzeTemporaryDtors clang-tidy setting.
...
https://github.com/llvm/llvm-project/issues/62020
2024-09-22 13:11:39 +02:00
Bartosz Taudul
82a0476ad5
Revert "Copying compile_commands.json is no longer needed, apparently."
...
This reverts commit de2a9fd18ff48d5dad6603a0862d8c6960a6c915.
2024-09-22 13:08:10 +02:00
Bartosz Taudul
86270dac6d
Set unique ID for frame list invisible buttons.
2024-09-22 13:00:30 +02:00
Bartosz Taudul
8b9da2efba
Add support for setting mouse cursor on emscripten.
2024-09-20 23:30:21 +02:00
Bartosz Taudul
207605f93b
Ignore git unsafe directory.
2024-09-20 22:39:05 +02:00
Bartosz Taudul
650e1b9739
Pass github.sha as git rev.
2024-09-20 22:09:30 +02:00
Bartosz Taudul
c3cf13fc64
Allow passing custom git revision to CMake.
2024-09-20 22:08:03 +02:00
Bartosz Taudul
87285cfcaa
Add support for using other rev than HEAD in git-ref.py.
2024-09-20 22:04:25 +02:00
Bartosz Taudul
821f2f907b
Tracy compiles its own freetype.
2024-09-20 21:46:32 +02:00
Bartosz Taudul
a68ef3c27b
Emscripten deployment steps.
2024-09-20 21:40:10 +02:00
Bartosz Taudul
aa451b48bb
Add emscripten build job.
2024-09-20 21:28:32 +02:00
Bartosz Taudul
39497ab77b
Disable scroll-by-page.
2024-09-20 19:50:30 +02:00
Bartosz Taudul
a47a51453c
Update ImGui to 10fe2b67.
2024-09-20 19:48:55 +02:00
Bartosz Taudul
fc303d9594
Don't sort flame graph by default.
2024-09-20 01:29:47 +02:00
Bartosz Taudul
0b5b674e1f
Fix indentation.
2024-09-20 01:02:48 +02:00
Bartosz Taudul
e793f927fc
Add feels-good scaling factor to wheel scroll values.
2024-09-19 21:02:58 +02:00
Bartosz Taudul
4795011b12
Remove debug printf.
2024-09-19 20:58:05 +02:00
Bartosz Taudul
f971faab58
Fix horizontal wheel scroll direction.
2024-09-19 20:53:44 +02:00
Bartosz Taudul
07995f0222
Run two render worker threads on emscripten.
2024-09-19 20:44:42 +02:00
Bartosz Taudul
25899fef73
Disable ImGui debug tools in non-debug builds.
2024-09-19 20:13:37 +02:00
Bartosz Taudul
de2a9fd18f
Copying compile_commands.json is no longer needed, apparently.
2024-09-19 20:13:20 +02:00
Bartosz Taudul
1109e3ce2d
Add html5.h emscripten backend.
2024-09-19 19:56:52 +02:00
Bartosz Taudul
0b72fd8a97
Update ImGui to 1.91.2 + docking.
2024-09-19 18:04:44 +02:00
Bartosz Taudul
00f7beee43
No connections allowed on emscripten.
2024-09-18 19:30:54 +02:00
Bartosz Taudul
20905406da
Don't use obsolete ImGui functionality.
2024-09-18 19:13:26 +02:00
Bartosz Taudul
6ff9869120
Bump ImGui to 1.90.8 + docking.
2024-09-18 19:13:26 +02:00
Bartosz Taudul
0f0f2c6b9b
Compile everything on emscripten with the same set of flags.
2024-09-18 19:13:26 +02:00
Bartosz Taudul
3bb6f1bb68
Adjust link flags for emscripten.
...
Increase the thread pool to account for background jobs. Increase stack
size, as it was overflowing. Move the pthread flag out of config.cmake.
2024-09-18 19:13:26 +02:00
Bartosz Taudul
3bea3b7725
Disable resolv service on emscripten.
2024-09-18 19:13:25 +02:00
Bartosz Taudul
758080e579
Merge pull request #886 from mcourteaux/master
...
Fix inheriting color bug.
2024-09-14 18:35:56 +02:00
Martijn Courteaux
0f6002822c
Fix inheriting color bug.
2024-09-14 14:10:55 +02:00
Bartosz Taudul
44d1502474
Always keep cursor shape initialized.
2024-09-14 01:15:02 +02:00
Bartosz Taudul
5a67246426
Silence warnings.
2024-09-14 01:10:14 +02:00
Bartosz Taudul
0d17d5eaaa
Remove dead code.
2024-09-14 01:04:03 +02:00
Bartosz Taudul
f387929653
No capture is needed.
2024-09-14 01:03:22 +02:00
Bartosz Taudul
d8f4c8bc7e
Don't perform arithmetic on enum values.
2024-09-14 01:00:19 +02:00
Bartosz Taudul
8a6e525ea9
Get up-to-date wayland-protocols directly from freedesktop.
2024-09-13 22:30:19 +02:00
Bartosz Taudul
b359936c04
Zones can inherit custom colors from parents.
...
Co-authored-by: Martijn Courteaux <courteauxmartijn@gmail.com>
2024-09-13 22:14:22 +02:00
Bartosz Taudul
8724400884
Merge pull request #882 from slomp/slomp/metal-patch
...
Patching Apple/Metal back-end Debug issues
2024-09-13 12:15:47 +02:00
Marcos Slomp
7bb59b6784
fixing debugging & scoping issues
2024-09-12 17:24:00 -07:00
Bartosz Taudul
26bf9b60cd
Don't redirect output to debug console in VS Code.
2024-09-12 23:16:15 +02:00
Bartosz Taudul
55da9d1084
Merge pull request #879 from mcourteaux/master
...
Fix ThreadData-sorting bug.
2024-09-12 18:17:10 +02:00
Bartosz Taudul
d71754298c
Merge pull request #880 from Simple-Robotics/topic/profiler-install-target
...
[profiler] Add install target
2024-09-11 19:35:09 +02:00
Justin Carpentier
8fc0dcfd48
[profiler] Add install target
2024-09-11 19:11:35 +02:00
Martijn Courteaux
46ec677702
Fix thread-sorting bug.
2024-09-11 10:44:34 +02:00
Bartosz Taudul
b687831394
Add protocol version for 0.11.1.
2024-09-10 20:47:32 +02:00
Bartosz Taudul
5632021003
Add missing GPU context name for Metal.
2024-09-10 19:13:35 +02:00
Bartosz Taudul
1478e74963
Update GPU APIs list in README.
2024-09-10 19:09:25 +02:00
Bartosz Taudul
9a3a6ba3ef
Bump protocol due to Metal adding an enum entry.
2024-09-10 19:08:43 +02:00
Bartosz Taudul
e8ff26e173
Merge pull request #793 from slomp/slomp/metal
...
Metal (Apple) GPU back-end for Tracy
2024-09-10 19:08:04 +02:00
Marcos Slomp
c168ff6c3c
updating documentation
2024-09-09 17:26:33 -07:00
Marcos Slomp
bd061d1d1b
removing unsupported macro interfaces
2024-09-09 17:20:19 -07:00
Marcos Slomp
19f376a6c9
fixixng interface macros
2024-09-09 17:08:15 -07:00
Bartosz Taudul
49f0ca5339
Add missing function ptr prototypes.
2024-09-09 21:49:05 +02:00
Bartosz Taudul
d46eebf794
Trim address entry field.
...
Sometimes a stray whitespace may be inserted in the address field, for
example when copying and pasting from somewhere else.
2024-09-09 20:41:28 +02:00
Bartosz Taudul
5795bc5766
Include git reference in user agent.
2024-09-09 20:27:12 +02:00
Bartosz Taudul
323778e96f
Probe for Wine in HttpRequest.
2024-09-09 20:25:09 +02:00
Bartosz Taudul
48763ef836
Thread selection in flame graph.
2024-09-09 01:31:49 +02:00
Bartosz Taudul
504b9d215e
Sampling mode flame graph.
2024-09-08 23:07:15 +02:00
Bartosz Taudul
ce39032bc5
Update NEWS.
2024-09-08 21:19:47 +02:00
Bartosz Taudul
88f0f6680b
Implement Wayland clipboard paste.
2024-09-08 21:16:21 +02:00
Bartosz Taudul
25ff997548
Implement clipboard copy on Wayland.
2024-09-08 21:16:20 +02:00
Bartosz Taudul
59092bef72
Create data device for a seat.
2024-09-08 19:20:16 +02:00
Bartosz Taudul
bec8973265
Bind data device manager.
2024-09-08 18:29:02 +02:00
Bartosz Taudul
d4f6537b95
Cosmetics.
2024-09-08 18:28:56 +02:00
Bartosz Taudul
f1bfbb9821
Allow easy retrieval of git ref from the about dialog.
2024-09-08 17:47:46 +02:00
Bartosz Taudul
45b9aff761
Display counts of selectable items, if some are unselected.
2024-09-08 17:44:42 +02:00
Bartosz Taudul
8b8ff9363d
Cache last source location entry.
...
227 ms -> 138 ms
2024-09-08 17:01:50 +02:00
Bartosz Taudul
0c0e4f554f
Do a linear search instead of using a map.
...
513 ms -> 227 ms for a trace with 66 unique source locations and 179 million
zones.
2024-09-08 16:10:39 +02:00
Bartosz Taudul
d67598f0fe
Hide advanced options in trace save dialog.
...
The default settings are good enough.
2024-09-08 15:54:42 +02:00
Bartosz Taudul
0d8b2b6252
Adapt frame graph tooltip to look more like zone tooltip.
2024-09-08 15:41:44 +02:00
Bartosz Taudul
97cf0bd11f
Bump freetype to 2.13.3.
2024-09-08 15:33:36 +02:00
Bartosz Taudul
c783a48bae
Always include CMake binary dir in include path.
2024-09-08 14:52:57 +02:00
Bartosz Taudul
1950040461
Print git ref in the about dialog.
2024-09-08 14:23:05 +02:00
Bartosz Taudul
5934f5da9a
Generate git revision to a header file.
2024-09-08 14:18:52 +02:00
Bartosz Taudul
959f0de7e5
Open find zone from flame graph.
2024-09-08 13:48:22 +02:00
Bartosz Taudul
6080b8742a
Fix memory leak.
2024-09-08 13:39:40 +02:00
Bartosz Taudul
4afc0960fb
Add flame graph tooltip.
2024-09-08 13:20:37 +02:00
Bartosz Taudul
d8849af800
Drawing the flame graph.
2024-09-08 13:11:24 +02:00
Bartosz Taudul
e4ec798762
Basic flame graph window layout.
2024-09-08 12:33:11 +02:00
Bartosz Taudul
5b75954c5b
Flame graph builder.
2024-09-08 12:33:11 +02:00
Bartosz Taudul
692fcc225f
Add flame graph window.
2024-09-08 12:33:09 +02:00
Bartosz Taudul
11777e8136
Check if core_id and die_id exist.
2024-09-07 23:53:57 +02:00
Bartosz Taudul
ea4de3be36
Detect and report if running under Wine.
2024-09-07 22:09:00 +02:00
Bartosz Taudul
64f2008cc1
Disable transparency on collapsed windows title bars.
2024-09-07 18:03:38 +02:00
Bartosz Taudul
e393ade59d
Shorten menu bar button names.
2024-09-07 18:00:59 +02:00
Marcos Slomp
0ffa0be4fd
addressing code review comments
2024-09-03 11:15:39 -07:00
Bartosz Taudul
8e3d250654
Check for errors from GetLogicalProcessorInformationEx().
2024-08-31 11:36:59 +02:00
Marcos Slomp
fe51f02a25
cleanup and comments
2024-08-26 08:15:47 -07:00
Marcos Slomp
aa85824455
comments about the decisions and behavior of the Metal back-end
2024-08-26 08:15:47 -07:00
Marcos Slomp
799360dfb8
Collect pending timestamps during shutdown
2024-08-26 08:15:47 -07:00
Marcos Slomp
ea65b145c6
adding wiretap for debugging purposes
2024-08-26 08:15:47 -07:00
Marcos Slomp
06b23cc293
more cleanup
2024-08-26 08:15:47 -07:00
Marcos Slomp
5ec7565852
cleanup
2024-08-26 08:15:47 -07:00
Marcos Slomp
638fa1f06c
blarg3
2024-08-26 08:15:47 -07:00
Marcos Slomp
cef49c2269
blarg again...
2024-08-26 08:15:47 -07:00
Marcos Slomp
5f09d454be
blargh
2024-08-26 08:15:47 -07:00
Marcos Slomp
91ca0f2f89
improved panic macro (supports print args)
2024-08-26 08:15:47 -07:00
Marcos Slomp
04cf494d9c
bugfixes
2024-08-26 08:15:47 -07:00
Marcos Slomp
b11e66594d
debugging
2024-08-26 08:15:47 -07:00
Marcos Slomp
ad2c2efacd
fixing collect wrap-around
2024-08-26 08:15:47 -07:00
Marcos Slomp
a9538799da
more debugging
2024-08-26 08:15:47 -07:00
Marcos Slomp
c374440379
adding blit pass and render pass interfaces
2024-08-26 08:15:47 -07:00
Marcos Slomp
c6cc424991
collecting/resolving timestamps in pairs
2024-08-26 08:15:47 -07:00
Marcos Slomp
6d04913b4a
stale comments
2024-08-26 08:15:47 -07:00
Marcos Slomp
3d69c485be
fixing timestamp mapping range
2024-08-26 08:15:47 -07:00
Marcos Slomp
94407dbd1f
giving up on calibration, for now
2024-08-26 08:15:47 -07:00
Marcos Slomp
fd1e60e2fd
fixing cpu timestamp baseline
2024-08-26 08:15:47 -07:00
Marcos Slomp
4b695cc3dd
debugging timestamps...
2024-08-26 08:15:47 -07:00
Marcos Slomp
47180dbf7f
basing metal zone scopes on MTLComputePassDescriptor
2024-08-26 08:15:47 -07:00
Marcos Slomp
1dfc926eb8
Metal back-end WIP
2024-08-26 08:15:47 -07:00
Bartosz Taudul
e26c34346b
libbacktrace: support FDPIC (1dd5c40)
2024-08-24 18:15:52 +02:00
Bartosz Taudul
0d0e56dca3
libbacktrace: avoid infinite recursion (febbb9b)
2024-08-24 18:02:05 +02:00
Bartosz Taudul
12c8592325
libbacktrace: fix UBSAN issues (5aa9254)
2024-08-24 18:01:10 +02:00
Bartosz Taudul
ef21f5867e
libbacktrace: correctly gather Mach-O symbol table (3fda5a8)
2024-08-24 17:57:43 +02:00
Bartosz Taudul
ba79deddf6
libbacktrace: it's OK if zstd decompressor sees no backward bits (4ead348)
2024-08-24 17:55:41 +02:00
Bartosz Taudul
8f3b312b7c
Get CPU die information on windows.
2024-08-24 17:47:00 +02:00
Bartosz Taudul
f7b810a3d1
Mark hyperthread jumps.
2024-08-24 16:52:04 +02:00
Bartosz Taudul
be92ae787c
Add tooltips for thread jumps.
2024-08-24 16:50:02 +02:00
Bartosz Taudul
50bb383667
Display CPU topology data in zone wait regions list.
2024-08-24 16:47:55 +02:00
Bartosz Taudul
844bc1e416
Display die jumps in wait regions list.
2024-08-24 16:37:04 +02:00
Bartosz Taudul
46e979e185
Display die information on CPU data graph.
2024-08-24 16:36:29 +02:00
Bartosz Taudul
2716311f51
Store die number in CpuThreadTopology.
2024-08-24 16:36:04 +02:00
Bartosz Taudul
357b557684
Add die to CPU topology data structures.
...
Drawing dies on the topology chart is a minimal effort for the time being.
An improved version will be added later on.
2024-08-22 20:26:11 +02:00
Bartosz Taudul
e947aeb72d
Read CPU die information on Linux.
2024-08-22 20:26:09 +02:00
Bartosz Taudul
5d542dc09f
Release 0.11.1.
2024-08-22 20:07:25 +02:00
Bartosz Taudul
8893c2bc0f
Update NEWS.
2024-08-22 19:54:53 +02:00
Bartosz Taudul
353545a1e9
Add die to topology data.
2024-08-22 00:58:01 +02:00
Bartosz Taudul
fb617fe998
Zero-initialize CPU topology data structure.
2024-08-22 00:54:12 +02:00
Bartosz Taudul
dc4aa7a126
Merge pull request #866 from Minres/master
...
adds target export to allow use in projects using exports
2024-08-21 23:09:07 +02:00
Eyck Jentzsch
c8dbace72e
adds transient zone with name and color
2024-08-21 22:55:02 +02:00
Eyck Jentzsch
f5bc9a9ae8
adds target export to allow use in projects using exports
2024-08-21 22:46:15 +02:00
Bartosz Taudul
b6eb08befe
Use algorithmic and vectorizable BC1 index fixup.
2024-08-21 22:23:16 +02:00
Bartosz Taudul
5c1cc80897
Bump capstone to 5.0.3.
2024-08-21 19:22:58 +02:00
Bartosz Taudul
0c6803e5c6
Merge pull request #859 from brakhane/lua-fix
...
Lua: ensure source location is not longer than 255 characters
2024-08-10 14:49:12 +02:00
Dennis Brakhane
81d7e9d765
only use first 255 characters of source location
...
When a Lua script was loaded through loadstring, dbg.source is the whole
source code; this not only causes a lot of unnecessary data to be sent,
it can even crash Tracy if the source string is larger than 64 KB.
Therefore, use the short version which is never more than 255 characters.
2024-08-10 14:47:04 +02:00
Bartosz Taudul
a51f0d0657
Merge pull request #858 from PatrickMoffett/master
...
Remove constexpr from GetSamplingInterval
2024-08-09 11:51:52 +02:00
Patrick Moffett
b2ee226fd7
remove constexpr from GetSamplingInterval
2024-08-08 22:22:52 -07:00
Bartosz Taudul
ee65a45bef
Vararg functions can't be inlined.
2024-08-08 19:55:32 +02:00
Bartosz Taudul
b18796c1c0
Add text formatting function to test.
2024-08-08 19:52:47 +02:00
Bartosz Taudul
30cbc77e23
Update CPM to 0.40.2.
2024-08-08 19:42:15 +02:00
Bartosz Taudul
60042d1944
Print context switch event data.
2024-08-06 20:37:51 +02:00
Bartosz Taudul
f7730659f8
Update manual.
2024-08-04 00:15:46 +02:00
Bartosz Taudul
835ba9fddf
Pass fiber group hint to NewThread().
2024-08-04 00:10:45 +02:00
Bartosz Taudul
37bfde5106
Add fiber enter API with group hint.
2024-08-04 00:08:18 +02:00
Bartosz Taudul
46852a7066
Update NEWS.
2024-08-03 20:40:59 +02:00
Bartosz Taudul
ecb05f787e
Document thread group hints.
2024-08-03 20:33:43 +02:00
Bartosz Taudul
0b74b14f88
Save thread group hint.
2024-08-03 20:23:26 +02:00
Bartosz Taudul
a1064a3d26
Observe thread grouping hint when a new thread appears.
2024-08-03 20:18:40 +02:00
Bartosz Taudul
1390c8c9e3
Take group hint into account when sorting threads.
2024-08-03 20:11:55 +02:00
Bartosz Taudul
dbf6274bff
Remove threads that had group hint changed from thread order list.
2024-08-03 20:11:35 +02:00
Bartosz Taudul
bdacfe7c37
Add a list of pending thread hints.
2024-08-03 20:10:36 +02:00
Bartosz Taudul
28a9750f8a
Process thread group hints.
2024-08-03 20:10:36 +02:00
Bartosz Taudul
9a9f1c2ab9
Set plot thread group hint to -1 in the test application.
2024-08-03 19:41:44 +02:00
Bartosz Taudul
8cea63cbca
Send thread group hint message.
2024-08-03 19:40:49 +02:00
Bartosz Taudul
beb42a3d29
Change group hint from unsigned to signed.
2024-08-03 19:40:11 +02:00
Bartosz Taudul
70a468e160
Protocol version 66 was used by 0.11.0.
2024-08-03 19:36:56 +02:00
Bartosz Taudul
5e224101c4
Allow direct access to ThreadNameData.
2024-08-03 19:33:19 +02:00
Bartosz Taudul
3658c0c90f
Add thread group hint to ThreadNameData.
2024-08-03 19:15:01 +02:00
Bartosz Taudul
fb18a81d79
Add support for reading TRACY_SAMPLING_HZ from an env variable.
2024-07-30 18:42:05 +02:00
Bartosz Taudul
ffb98a9724
Merge pull request #848 from tksuoran/msys2_clang64_link_fix
...
Fix for #847
2024-07-26 12:36:10 +02:00
Timo Suoranta
0aa025c0d9
Fix for #847
2024-07-26 11:24:20 +03:00
Bartosz Taudul
684cee59ab
Merge pull request #841 from aluaces/pr-find-libunwind
...
Find libunwind if requested so we can link to it.
2024-07-23 13:13:18 +02:00
Alberto Luaces
d9a182b450
Find libunwind if requested so we can link to it.
2024-07-23 12:15:36 +02:00
Bartosz Taudul
751545ebbd
Merge pull request #839 from Arpafaucon/cmake-add-verbose
...
Expose `TRACY_VERBOSE` in cmake for debug
2024-07-21 17:39:02 +02:00
Grégoire Roussel
c9063fbdbe
Expose TRACY_VERBOSE in cmake for debug
2024-07-21 17:37:57 +02:00
Grégoire Roussel
20d67a1bc8
tentative clang-format
2024-07-19 18:17:22 +02:00
Bartosz Taudul
f81e089260
Merge pull request #836 from Techatrix/fix-windows-clang
...
fix CpuId when compiling with clang on windows
2024-07-19 11:03:05 +02:00
Techatrix
90adf00dc1
fix CpuId when compiling with clang on windows
2024-07-19 01:47:46 +02:00
Bartosz Taudul
93b4ea2ace
Merge pull request #826 from Arpafaucon/merge-import-utilities
...
Suggestion: Merge import-xxx folders
2024-07-18 21:59:46 +02:00
Bartosz Taudul
5098fc2a70
No mold on emscripten.
2024-07-17 22:54:18 +02:00
Bartosz Taudul
68357bd9fb
Merge pull request #834 from Aldarrion/fix-achievement-init-order-crash
...
Fix achievement mgr crashing on uninitialized data
2024-07-17 22:14:47 +02:00
Pavel Šmejkal
893754638c
Fix achievement mgr crashing on uninitialized data
...
Both the achievement manager and the achievement data were globals in
separate compilation units. Order of initialization is not defined in
that case which sometimes caused the mgr to load uninitialized data and
crash when an achievement should have been achieved but was not found.
2024-07-17 21:57:16 +02:00
Bartosz Taudul
5634c1520e
Merge pull request #833 from Arpafaucon/trigger-failures-in-test
...
[test] Trigger failures via USR1/USR2
2024-07-17 19:57:31 +02:00
Grégoire Roussel
7a74d38198
(review) use signal.h
2024-07-17 18:19:33 +02:00
Bartosz Taudul
a636950eb5
Fix wrong printf.
2024-07-17 17:55:19 +02:00
Grégoire Roussel
82fd4075f9
[test] Trigger failures via USR1/USR2
...
USR1: abort the program
USR2: send buggy free event, to trigger an instrumentation failure
2024-07-17 17:30:52 +02:00
Bartosz Taudul
c9e57901ed
Merge pull request #832 from Chekov2k/manual
...
Add missing make line to python instructions
2024-07-17 12:59:29 +02:00
Arnim Balzer
34d40a5ecf
Add missing make line to python instructions
2024-07-17 11:55:14 +01:00
Bartosz Taudul
22a0898a54
Merge pull request #831 from Chekov2k/llvm
...
Set CXX standard for older compilers
2024-07-17 12:27:17 +02:00
Arnim Balzer
a8704b4a07
Set CXX standard for older compilers
2024-07-17 11:06:20 +01:00
Bartosz Taudul
c0f93b1c9c
Merge pull request #830 from Chekov2k/python_libs
...
Link against Python libraries for compatibility with pybind11 >= v2.13
2024-07-17 10:55:49 +02:00
Arnim Balzer
3274fd4c5e
Link against Python libraries for compatibility with pybind11 >= v2.13
2024-07-17 07:18:07 +01:00
Bartosz Taudul
075395620a
Release 0.11.0.
2024-07-16 18:38:15 +02:00
Grégoire Roussel
9a88b8ff4b
Merge import-* folders
2024-07-12 22:56:09 +02:00
Bartosz Taudul
521e371c60
Ignore CMake build directories.
2024-07-12 17:13:16 +02:00
Bartosz Taudul
1458a6ab23
Don't assert on a workarounded bad case.
2024-07-11 20:45:14 +02:00
Bartosz Taudul
ec455c8ee6
Add frame images achievement.
2024-07-08 19:46:01 +02:00
Bartosz Taudul
69c50cb6cb
Add frame instrumentation achievement.
2024-07-08 19:30:27 +02:00
Bartosz Taudul
e4cda51bf6
Unlock new top-level achievements in already unlocked categories.
2024-07-08 19:26:27 +02:00
Bartosz Taudul
1a7eefc6af
Add find zones achievement.
2024-07-08 19:11:58 +02:00
Bartosz Taudul
6f17cf1869
Use double quotes in achievements texts.
2024-07-08 18:52:20 +02:00
Bartosz Taudul
5b7b4a6889
Update NEWS.
2024-07-08 18:47:08 +02:00
Bartosz Taudul
c383e7ae25
Add EnsureReadable() implementation for Windows.
2024-07-08 18:42:17 +02:00
Bartosz Taudul
6d1deb5640
Merge pull request #824 from Arpafaucon/cmake-config-test
...
[IDE] migrate `test` folder to CMake configuration
2024-07-03 20:35:26 +02:00
Grégoire Roussel
bad4a4eda0
debuginfod enabled by default
2024-07-03 14:10:40 +02:00
Grégoire Roussel
9cf61d6597
[build-system] Migrate test/ directory to CMakeLists
...
- remove MakeFile, replaced with equivalent CMakeLists.txt
- add advanced option TRACY_DEMANGLE in client for CI testing
2024-07-03 14:05:49 +02:00
Bartosz Taudul
9688152505
Add dynamic colors, force colors, shorten name to global options.
2024-06-30 20:13:11 +02:00
Bartosz Taudul
f8023ba698
Setup config before loading user data state that may want to overwrite it.
2024-06-30 20:12:08 +02:00
Bartosz Taudul
3c34d9d096
Remove redundancy.
2024-06-30 20:11:50 +02:00
Bartosz Taudul
938ab3b8ea
Move config setup to a separate function.
2024-06-30 20:11:25 +02:00
Bartosz Taudul
4a933d0174
Merge pull request #821 from eltociear/patch-1
...
libbacktrace: update elf.cpp
2024-06-30 19:23:31 +02:00
Ikko Eltociear Ashimine
dfbf0652f2
libbacktrace: update elf.cpp
...
previouly -> previously
2024-07-01 02:20:56 +09:00
Bartosz Taudul
d4a4b62396
Merge pull request #817 from M4T1A5/fix/worker_add_source_loc
...
Fix worker AddSourceLocationPayload source file string length calculation
2024-06-19 19:02:43 +02:00
Matias Kangasjärvelä
4bbe973e3a
Fix source location payload source file string length calculation
2024-06-19 19:47:56 +03:00
Bartosz Taudul
be40c1e38e
Use strlen instead of pointer walking in the rest of places.
2024-06-16 18:20:16 +02:00
Bartosz Taudul
9f0f3a7218
Save achievements data after each completion.
2024-06-16 12:53:40 +02:00
Bartosz Taudul
50f5345ea5
Add a help marker for the target FPS setting.
2024-06-16 12:52:17 +02:00
Bartosz Taudul
959ab53529
Add global settings achievement.
2024-06-16 12:45:11 +02:00
Bartosz Taudul
915a138150
Add 100 million zones achievement.
2024-06-16 12:39:26 +02:00
Bartosz Taudul
c5c0fceda4
Add instrumentation statistics achievement.
2024-06-14 18:25:50 +02:00
Bartosz Taudul
f04d844515
Use strlen to calculate end of string in ShortenZoneName().
2024-06-12 23:54:25 +02:00
Bartosz Taudul
3589b46fab
Don't try to shorten zone names starting with '['.
2024-06-12 23:33:45 +02:00
Bartosz Taudul
2edd23f5a0
More verbose achievement names.
2024-06-10 22:53:37 +02:00
Bartosz Taudul
72cf230228
Add sampling achievement check.
2024-06-10 22:52:03 +02:00
Bartosz Taudul
3cb7fd8a5e
More efficient way to check if there are zones.
2024-06-10 22:51:53 +02:00
Bartosz Taudul
65576a294e
Add sampling achievements category.
2024-06-10 22:44:20 +02:00
Bartosz Taudul
739b6260d6
Update NEWS.
2024-06-08 13:46:16 +02:00
Bartosz Taudul
fc08f09b94
Switch the achievement category to show the selected achievement.
2024-06-08 13:44:23 +02:00
Bartosz Taudul
51ee66323b
Add category getter for an achievement item.
2024-06-08 13:44:11 +02:00
Bartosz Taudul
b38ac8bfef
Hook up instrumentation intro achievement.
2024-06-08 13:31:23 +02:00
Bartosz Taudul
7dbb3c592f
Fine-tune achievements window size.
2024-06-08 13:20:09 +02:00
Bartosz Taudul
03e9c89dd8
Finish instrumentation intro achievement description.
2024-06-08 13:20:09 +02:00
Bartosz Taudul
e09379bd16
Add source code printer helper.
2024-06-08 13:10:31 +02:00
Bartosz Taudul
ef1c8e8512
Allow parsing arbitrary source code fragments.
2024-06-08 13:10:30 +02:00
Bartosz Taudul
16bc01551e
Mark categories that need attention.
2024-06-08 12:45:19 +02:00
Bartosz Taudul
a6b9369430
Allow checking if achievement category needs attention.
2024-06-08 12:45:01 +02:00
Bartosz Taudul
7401a72ccf
Process unlock list, unlock achievement categories.
2024-06-08 12:35:46 +02:00
Bartosz Taudul
fde874eedf
Introduce unlocks list, hook things up.
...
Unlocks should only be used for achievements that are not already in the
items lists.
2024-06-08 12:34:02 +02:00
Bartosz Taudul
9d7222eb4a
Add unfinished instrumentation achievement and category.
2024-06-08 12:33:37 +02:00
Bartosz Taudul
6cc772e71e
Unlock any eligible new achievements that may have been added.
2024-06-08 11:55:55 +02:00
Bartosz Taudul
1247f365d0
Improve some achievement descriptions.
2024-06-08 11:55:46 +02:00
Bartosz Taudul
a8e427fc7f
Locked achievements can't be done.
2024-06-08 11:44:30 +02:00
Bartosz Taudul
d9fe3ed9a6
Add CMake option to not use parallel STL.
2024-06-08 00:20:12 +02:00
Bartosz Taudul
a3b63bb468
Save / load state of achievements.
2024-06-07 23:53:27 +02:00
Bartosz Taudul
3f2d28407b
Animate achievements star button when attention is needed.
2024-06-07 23:53:27 +02:00
Bartosz Taudul
ba154e02db
Allow checking if achievements need attention.
2024-06-07 23:53:27 +02:00
Bartosz Taudul
139dc44a00
Hook up save / load trace achievements.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
d474f21576
Add a check for being connected to "connect to client" achievement.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
efdd28f7bb
Add achievement for connecting to a client.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
6aa9401b95
Add achievement wrapper function to TracyView.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
aff60a6a36
Mark the initial achievement as achieved on startup.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
cddab58b0d
Add achievements processing logic.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
d2e995478e
Add initial achievements data.
2024-06-07 23:53:26 +02:00
Bartosz Taudul
b5fda4f456
Add achievement data structure definitions.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
02ad97ff3f
Disable achievements UI on emscripten.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
2e2e6257d7
Show/hide achievements list window.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
bf0226fb64
Update screen only when achievements notification is animating.
...
The NeedsUpdate() method will be useful in future.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
3886111e70
Add achievements notification.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
8051ceaa43
Add a basic achievements manager.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
f6f8fb3d27
Set dark background.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
2cea5706d5
Add initial achievements popup.
2024-06-07 23:53:25 +02:00
Bartosz Taudul
5e211fb581
Merge pull request #812 from mcourteaux/master
...
Two minor fixes.
2024-06-07 13:32:49 +02:00
Martijn Courteaux
5d52427f4a
Two minor fixes.
2024-06-07 11:36:47 +02:00
Bartosz Taudul
a17c218351
Merge pull request #809 from Ravbug/master
...
TracyClient Windows for ARM support
2024-06-05 11:16:20 +02:00
Ravbug
5454f7564c
Windows for ARM support
2024-06-04 17:21:24 -07:00
Bartosz Taudul
8d67c79431
Add self-profiling option.
2024-06-04 02:22:35 +02:00
Bartosz Taudul
abf12f79c5
Set the default save config also in tracy-update.
2024-06-02 17:29:21 +02:00
Bartosz Taudul
0a187a65f6
Update manual.
2024-06-02 17:05:00 +02:00
Bartosz Taudul
870959e93f
Update NEWS.
2024-06-02 16:09:42 +02:00
Bartosz Taudul
3a186887ed
Added compression streams to save trace UI.
2024-06-02 15:52:37 +02:00
Bartosz Taudul
455738a266
Default to zstd level 3 with 4 streams in tracy-capture.
2024-06-02 15:35:07 +02:00
Bartosz Taudul
277ec25a8d
Spin when waiting for decompressed data instead of using lock + cv.
2024-06-02 15:06:16 +02:00
Bartosz Taudul
ce240ddfc1
Loading multi-stream data.
2024-06-02 14:32:33 +02:00
Bartosz Taudul
bb1e717026
Update magic string to look for in tracy files.
2024-06-02 14:32:33 +02:00
Bartosz Taudul
048ff8213a
Support loading single-stream new format traces.
2024-06-02 14:32:32 +02:00
Bartosz Taudul
eb1cbb454a
Move common file buffer sizes to a separate header.
2024-06-02 14:32:32 +02:00
Bartosz Taudul
095df5f416
Expose streams in tracy-update.
2024-06-02 14:32:32 +02:00
Bartosz Taudul
3bf4a674bc
Use multiple compression streams when writing trace files.
2024-06-02 14:32:32 +02:00
Bartosz Taudul
9c3a4e5762
Separate compression from writing data to file.
2024-05-31 20:29:57 +02:00
Bartosz Taudul
9dea830f98
Move file compression enum out of FileWrite.
2024-05-31 19:24:32 +02:00
Bartosz Taudul
07c6e12dbf
Measure load and save time separately in tracy-update.
2024-05-31 17:43:13 +02:00
Bartosz Taudul
0d5bd53be3
Update imgui to 1.90.7-docking.
2024-05-31 17:31:26 +02:00
Bartosz Taudul
982d6ddcdc
Update zstd to 1.5.6.
2024-05-31 17:31:21 +02:00
Bartosz Taudul
4db02dd041
Merge pull request #806 from slomp/slomp/d3d11-on-demand-fix
...
fix TracyD3D11 "on demand"
2024-05-31 16:18:36 +02:00
Marcos Slomp
eba17d0fd8
fix TracyD3D11 "on demand"
2024-05-31 07:11:10 -07:00
Bartosz Taudul
026a34a0fc
Merge pull request #804 from AWoloszyn/fix-gpu-src-assert
...
Fix for assert in GetGpuSourceLocationZonesCntReal
2024-05-30 20:56:27 +02:00
Andrew Woloszyn
0c7cbd1d03
Fix for assert in GetGpuSourceLocationZonesCntReal
...
When TRACY_NO_STATISTICS is defined, the assert in
GetGpuSourceLocationZonesCntReal will always get hit
as nothing is ever inserted in gpuSourceLocationZonesCnt
unless reading from a file.
Match the behavior with GetGpuSourceLocationZonesReal
to add the source location if it is missing.
2024-05-30 14:26:20 -04:00
Bartosz Taudul
15145aa74c
Fix Gitea actions.
2024-05-30 14:41:22 +02:00
Bartosz Taudul
207e065ffe
Protect against empty program name.
2024-05-30 13:59:30 +02:00
Bartosz Taudul
608ff35c8c
Merge pull request #801 from kubouch/patch-1
...
Fix wrong parameter in TracyCLContextName
2024-05-29 17:43:58 +02:00
Jakub Žádník
da9b9f8e79
Fix wrong parameter in TracyCLContextName
...
The macro accepted a `context` parameter, but its expansion used `ctx`.
`context` is renamed to `ctx` in `TracyCLContext` for consistency.
2024-05-29 16:22:21 +03:00
Bartosz Taudul
cbea6d7852
Fix 32-bit builds.
2024-05-28 20:51:16 +02:00
Bartosz Taudul
aae58fbc3a
Update NEWS.
2024-05-26 20:49:43 +02:00
Bartosz Taudul
1ff73edd20
Add linux kernel symbol code retrieval.
2024-05-26 20:49:43 +02:00
Bartosz Taudul
f8524f8bcd
Merge pull request #799 from heyallnorahere/fix-vulkan-timestamps
...
Fix vkCmdWriteTimestamp overwrite issues
2024-05-25 22:57:43 +02:00
heyallnorahere
7fa2c6cfd2
add availability flag to vkGetQueryPoolResults (vulkan profiler)
2024-05-25 20:02:57 +00:00
Bartosz Taudul
82aecbdb31
Calculate size of kernel code sections.
2024-05-25 17:18:41 +02:00
Bartosz Taudul
64aad9e751
Load all kernel symbols, mark non-code sections with null name.
2024-05-25 17:18:41 +02:00
Bartosz Taudul
d5064aa8ea
Try to prevent reallocs when building kernel symbols table.
...
% wc -l /proc/kallsyms
419362 /proc/kallsyms
2024-05-25 17:18:41 +02:00
Bartosz Taudul
56b4424399
Be consistent with how statistics shows inline counts.
2024-05-25 13:03:32 +02:00
Bartosz Taudul
0333b9f591
Hide "propagate inlines" checkbox if there are no inlined functions.
2024-05-25 12:54:12 +02:00
Bartosz Taudul
071d440955
Show number of inlined functions in a symbol.
2024-05-25 12:51:17 +02:00
Bartosz Taudul
f0d3eb1dfe
Right-align image name + base address in symbol view.
2024-05-25 12:38:28 +02:00
Bartosz Taudul
17b4e83ed0
Update NEWS.
2024-05-25 12:17:04 +02:00
Bartosz Taudul
55b29ff20b
Cleanup.
2024-05-25 00:16:29 +02:00
Bartosz Taudul
6e14d1ff45
Add summary printer for robin hood.
2024-05-25 00:03:23 +02:00
Bartosz Taudul
535a2c8504
Add pretty-printer for ZoneEvent.
2024-05-24 23:45:16 +02:00
Bartosz Taudul
d3da7dcecd
Fix out-of-bounds access on non-continuous frames.
2024-05-24 22:52:46 +02:00
Bartosz Taudul
005d092903
Don't set debug flags in non-debug builds (to shut up the compiler).
2024-05-24 01:16:06 +02:00
Bartosz Taudul
c5e64a182c
Do not "eliminate unused debug types". It's broken.
2024-05-24 01:07:02 +02:00
Bartosz Taudul
b405370af9
Add lldb pretty printers for ShortPtr, Vector, Int24, Int48.
2024-05-23 23:32:10 +02:00
Bartosz Taudul
afe5c8dfbe
Don't try to create FrameData in ProcessFrameMarkEnd().
2024-05-23 19:48:33 +02:00
Bartosz Taudul
216a4b7663
Support Create() not creating an item.
2024-05-23 19:47:40 +02:00
Bartosz Taudul
cf23441116
Cosmetics.
2024-05-21 20:18:54 +02:00
Bartosz Taudul
60ae46a373
Merge pull request #796 from mcourteaux/master
...
Fix savings calculation.
2024-05-21 20:14:42 +02:00
Martijn Courteaux
bd00c6a4ee
Improve time comparing display with better colors.
2024-05-21 19:47:19 +02:00
Martijn Courteaux
abdbaed737
Simplify time comparing display.
2024-05-21 19:32:43 +02:00
Martijn Courteaux
86717de6e1
Improve time comparing display.
2024-05-21 19:24:04 +02:00
Martijn Courteaux
ec7fc9ffb6
Cleanup
2024-05-21 19:08:54 +02:00
Martijn Courteaux
717e545158
Improve time comparing display.
2024-05-21 19:08:16 +02:00
Martijn Courteaux
f704c57f98
Clearer and more detailed comparison in terms of slow down or speed up of times when comparing traces.
2024-05-21 17:10:48 +02:00
Martijn Courteaux
73f09de29d
Fix savings calculation.
2024-05-21 15:25:23 +02:00
Bartosz Taudul
8983e14e18
Merge pull request #794 from M4T1A5/cmake-multiprocess-compilation
...
Server CMake: Enable multi-processor compilation in Visual Studio projects
2024-05-18 14:24:37 +02:00
Matias Kangasjärvelä
63da2886d1
Enable multi-processor compilation in Visual Studio projects
2024-05-18 15:01:43 +03:00
Bartosz Taudul
813f4243db
Restrict using mold linker to clang.
2024-05-12 19:44:58 +02:00
Bartosz Taudul
1a971d867d
Fix dtl.
2024-05-12 19:23:18 +02:00
Bartosz Taudul
4b14d961f0
Add LLDB summary for Vector.
2024-05-12 19:23:18 +02:00
Bartosz Taudul
11eee619fb
Merge pull request #786 from mcourteaux/plot-height
...
Support adjusting plot height.
2024-05-08 11:57:54 +02:00
Martijn Courteaux
b879f5b519
Save plot height view data.
2024-05-08 10:43:14 +02:00
Martijn Courteaux
da8c2340b3
Support adjusting plot height.
2024-05-07 13:33:57 +02:00
Bartosz Taudul
dcb383701a
Update manual.
2024-05-06 20:19:46 +02:00
Bartosz Taudul
f4d27a4ea4
Update NEWS.
2024-05-06 20:18:41 +02:00
Bartosz Taudul
839cf6ef91
Add thread sorting.
2024-05-06 20:18:13 +02:00
Bartosz Taudul
d6b059f0cc
Download up-to-date glfw and freetype.
2024-05-06 00:07:56 +02:00
Bartosz Taudul
e8c3cb1909
Update manual.
2024-05-05 21:39:18 +02:00
Bartosz Taudul
4f1c4c98ac
Update NEWS.
2024-05-05 21:23:41 +02:00
Bartosz Taudul
5730884678
Print memory limit in capture utility, if appropriate.
2024-05-05 21:21:19 +02:00
Bartosz Taudul
c31bf6f7f8
Add blue ANSI color macro.
2024-05-05 21:21:19 +02:00
Bartosz Taudul
ee56e1fcd5
Allow setting memory limit in capture utility.
2024-05-05 21:21:19 +02:00
Bartosz Taudul
6748d11a2f
Fix capture utility.
2024-05-05 21:12:50 +02:00
Bartosz Taudul
68473381b9
Indicate that memory limit was hit with notification triangle color.
2024-05-05 21:07:50 +02:00
Bartosz Taudul
89f1fb4825
Terminate connection when memory limit is exceeded.
2024-05-05 21:04:26 +02:00
Bartosz Taudul
b64389ba15
Display memory limit in notification area.
2024-05-05 20:59:25 +02:00
Bartosz Taudul
5f0cac546b
Pass memory limit to worker.
2024-05-05 20:50:03 +02:00
Bartosz Taudul
2663ce1a4a
Add warning about memory limit.
2024-05-05 20:33:35 +02:00
Bartosz Taudul
56c52b8d8f
Add memory limit global settings.
2024-05-04 16:53:40 +02:00
Bartosz Taudul
66a32de0f7
Move physical memory size getter to a separate source file.
2024-05-04 16:53:40 +02:00
Bartosz Taudul
fee5982abd
Make InlineStackData non-static.
2024-05-04 14:42:40 +02:00
Bartosz Taudul
377e41fe61
Make memUsage an atomic.
2024-05-04 14:28:55 +02:00
Bartosz Taudul
6199b2f883
Try to make the top bar labels fit in their space.
2024-05-04 14:07:14 +02:00
Bartosz Taudul
4420f5863f
Workaround CMake + ninja lack of compiler output color.
2024-05-04 13:30:53 +02:00
Bartosz Taudul
6a6caae2ea
Save shorten name setting for each trace.
2024-05-04 13:22:30 +02:00
Bartosz Taudul
4a7f6e0cc1
Use enum names in radio button list.
2024-05-04 12:55:55 +02:00
Bartosz Taudul
061b5c77ce
Make trace options save file user-readable.
...
More importantly, it allows for backwards-compatibility when something
is added or removed, instead of just ignoring what was set before when
a binary version bump occurs.
2024-05-04 12:46:16 +02:00
Bartosz Taudul
328ecc339c
Update NEWS.
2024-05-04 11:45:20 +02:00
Bartosz Taudul
c45683506c
Merge pull request #783 from tiago-rodrigues/trodrigues/image_cache_deadlock_fix
...
Instead of calling dladdr inside the dl_iterate_phdr callback, do it outside to avoid deadlocks with other loader code
2024-05-04 11:33:54 +02:00
trodrigues
4bf9a8cecc
Instead of calling dladdr inside the dl_iterate_phdr callback, do it outside to avoid deadlocks with other loader code
2024-05-03 16:05:59 -05:00
Bartosz Taudul
a1a7e63d93
Disable assembly in zstd.
2024-04-30 13:44:07 +02:00
Bartosz Taudul
b357d08da3
Add VS Code documentation.
2024-04-30 13:21:14 +02:00
Bartosz Taudul
0a94a7e3ba
CMake build type should be set in the documentation.
2024-04-30 13:21:13 +02:00
Bartosz Taudul
d1300c491c
Fix CMake + MSVC.
2024-04-18 00:08:36 +02:00
Bartosz Taudul
596c498e1f
Fix CMake build type selection.
2024-04-17 18:17:58 +02:00
Bartosz Taudul
44be569f4a
Merge pull request #774 from Chekov2k/source_validation
...
Allow source file modification time to be newer then trace capture time
2024-04-16 11:44:27 +02:00
Arnim Balzer
805cc6385a
Allow source file modification time to be newer then trace capture time via checkbox
...
Useful on a Mac if sources are controlled via git
2024-04-16 09:52:45 +01:00
Bartosz Taudul
411b218896
Merge pull request #772 from Lectem/server-cmake-fix
...
Server cmake fix : No need for ASM detection
2024-04-14 22:00:03 +02:00
Lectem
2530dceac4
CMake: Selecte executable project as startup project for VS
2024-04-14 18:13:51 +02:00
Lectem
a577a86b5c
CMake: ASM should be listed last in project() so that it can use the C/C++ compiler executable as assembler
...
From the project() CMake documentation:
> If enabling ASM, list it last so that CMake can check whether compilers for other languages like C work for assembly too.
2024-04-14 18:13:17 +02:00
Bartosz Taudul
b5b985d1d0
Emit warning, not a message.
2024-04-01 12:57:24 +02:00
Bartosz Taudul
651c6c5350
Fix assert when propagate inlines was enabled.
2024-03-31 18:44:01 +02:00
Bartosz Taudul
30f1b901a9
Conditional framerate limiting on GLFW.
2024-03-29 21:59:16 +01:00
Bartosz Taudul
e85457815e
Conditional framerate limiting on Wayland.
2024-03-29 21:56:54 +01:00
Bartosz Taudul
c21170cc01
Add config option for reduced render rate.
2024-03-29 21:54:31 +01:00
Bartosz Taudul
547325f270
Reduce framerate on Wayland when profiler window has no focus.
2024-03-29 21:46:24 +01:00
Bartosz Taudul
767f7e4fd4
Track keyboard focus on Wayland.
2024-03-29 21:38:20 +01:00
Bartosz Taudul
2f8fe4180d
Fix variable name.
2024-03-29 20:00:21 +01:00
Bartosz Taudul
565656b021
Merge pull request #762 from mcourteaux/master
...
Fix Ctrl-Shift-Alt-R bug
2024-03-28 18:26:28 +01:00
Martijn Courteaux
aa66d0c286
Fix Ctrl-Shift-Alt-R bug
2024-03-28 18:07:27 +01:00
Bartosz Taudul
30d656070d
Merge pull request #760 from Chekov2k/fix_python_clean
...
Do not use directories as by products when file are still present
2024-03-26 21:58:29 +01:00
Arnim Balzer
7a779ba03c
Do not use directories as by products when file are still present
...
Unfortunately cmake does not support generator expressions in add_custom_command byproducts so can't remove all files
2024-03-26 20:55:04 +00:00
Bartosz Taudul
e77224975d
Update last time when callstack or hw samples arrive.
2024-03-26 20:48:52 +01:00
Bartosz Taudul
e071b9043f
Set busy cursor when the application is busy.
2024-03-24 17:40:30 +01:00
Bartosz Taudul
5b2cce0a02
Push IsBusy() callback to Backend.
2024-03-24 17:39:55 +01:00
Bartosz Taudul
9f9cd04761
Add function to determine if the program is busy.
2024-03-24 17:38:45 +01:00
Bartosz Taudul
630effe8fa
Add support for different mouse cursors on Wayland.
2024-03-24 01:54:21 +01:00
Bartosz Taudul
87dcfbd84b
Set mouse cursor with the cursor shape protocol.
2024-03-24 01:36:03 +01:00
Bartosz Taudul
3805727ee5
Generate cursor shape protocol.
2024-03-24 01:22:57 +01:00
Bartosz Taudul
6349d1ef0b
Support fractional scaling.
...
Mouse cursor is broken, but the whole Wayland design of providing mouse
cursors as surfaces by the application is broken.
2024-03-24 01:17:40 +01:00
Bartosz Taudul
cdfad41d68
Refresh screen after scale change.
2024-03-24 00:04:46 +01:00
Bartosz Taudul
bf86eba59c
Rescale scale to have 120 as a unit.
2024-03-24 00:02:13 +01:00
Bartosz Taudul
16554ed2ed
Handle wayland window resizes the right way.
2024-03-23 23:57:08 +01:00
Bartosz Taudul
aa4878bb8e
Bind viewporter.
2024-03-23 22:27:49 +01:00
Bartosz Taudul
475b022ed8
Generate viewporter protocol.
2024-03-23 22:27:49 +01:00
Bartosz Taudul
0e458447ff
Don't keep opening terminal on launch.
2024-03-23 22:27:49 +01:00
Bartosz Taudul
2bfa540656
Bind fractional scale manager.
2024-03-23 22:27:48 +01:00
Bartosz Taudul
3342254a0e
Generate fractional-scale protocol.
2024-03-23 22:27:46 +01:00
Bartosz Taudul
e10fc58bf5
Merge pull request #759 from Chekov2k/segfault
...
Fix segfault in Python bindings for TRACE_ENABLE=OFF case
2024-03-23 19:17:21 +01:00
Arnim Balzer
93be1d9343
Fix segfault in Python bindings for TRACE_ENABLE=OFF case
2024-03-23 17:51:16 +00:00
Bartosz Taudul
55be66cdf8
Update NEWS.
2024-03-23 13:56:25 +01:00
Bartosz Taudul
4c1b06034b
Display program run time percentage in lines selection summary.
2024-03-23 13:54:39 +01:00
Bartosz Taudul
ef9f2d247d
Add display of per-line sample time as a program run time percentage.
2024-03-23 13:50:00 +01:00
Bartosz Taudul
adbee2f820
Update NEWS.
2024-03-23 12:15:47 +01:00
Bartosz Taudul
828e52f5c4
Merge pull request #754 from Chekov2k/python
...
Added basic Python Support
2024-03-23 11:57:02 +01:00
Arnim Balzer
505afc8f77
Document other CMake options and fix tex errors
2024-03-23 06:45:12 +00:00
Arnim Balzer
059f1487af
Option to disable use of external pybind11
2024-03-23 06:45:12 +00:00
Arnim Balzer
d65d96191a
Added basic Python Support
...
Supported:
- FrameMarks
- ScopedZones
- Memory allocations
- Plots
- ThreadNames
- Messages
- AppConfig
Not supported:
- GPU
2024-03-23 06:45:12 +00:00
Bartosz Taudul
e38d9fa7ce
Use mold linker if available.
2024-03-23 02:08:36 +01:00
Bartosz Taudul
8a411a72b8
Merge pull request #757 from JBurnWork/noCallstackUpdates
...
Updates to address compilation with TRACY_NO_CALLSTACK
2024-03-23 01:26:42 +01:00
Bartosz Taudul
3d70a61436
Update manual.
2024-03-23 00:48:43 +01:00
Bartosz Taudul
9e6be031c1
Don't install capstone on CI.
2024-03-23 00:36:52 +01:00
Bartosz Taudul
afceec59aa
Enable AVX2 code generation on MSVC.
2024-03-22 22:07:43 +01:00
Jeff Burnett
18352366f7
Still use named mem pool if no callstacks
...
Forward MemAllocCallstackNamed() and MemFreeCallstackNamed() to
MemAllocNamed() and MemFreeNamed if callstack capture is off.
2024-03-22 09:50:05 -05:00
Jeff Burnett
278330af5b
Fix build warnings for TRACY_NO_CALLSTACK
...
Fix build warnings about undefined TRACY_HAS_CALLSTACK and an unused
argument for Callstack() when TRACY_NO_CALLSTACK is defined.
2024-03-22 09:50:05 -05:00
Bartosz Taudul
aac38a7deb
Update CI.
...
Co-authored-by: Tom Atkinson <tja.atkinson@gmail.com>
2024-03-22 13:49:08 +01:00
Bartosz Taudul
8b8cd7d28b
Add -pthread to emscripten compile and link commands.
2024-03-21 23:04:41 +01:00
Bartosz Taudul
434d73c7bd
Emscripten support.
...
Doesn't work due to i64 vs i32 type mismatch in glGetIntegerv, which
seems like some general compatibility bullshit, not something related
to CMake.
2024-03-21 23:04:41 +01:00
Bartosz Taudul
8ee866e840
Update git ignores.
2024-03-21 23:04:40 +01:00
Bartosz Taudul
fec5e6bb9c
UNIX variable is true on Apple.
2024-03-21 23:04:40 +01:00
Bartosz Taudul
a2fdd3638c
Change CMake build dir to "build".
2024-03-21 23:04:40 +01:00
Bartosz Taudul
7f8a2e2c9a
Remove old build files.
2024-03-21 23:04:40 +01:00
Bartosz Taudul
1df45c00c0
Generate private-code with wayland-scanner.
2024-03-21 23:04:40 +01:00
Bartosz Taudul
bde0c63006
Generate Wayland protocol sources.
2024-03-21 23:04:40 +01:00
Bartosz Taudul
71bde8d11a
Add wayland-scanner CMake module.
...
https://github.com/qt/qtbase/blob/dev/cmake/3rdparty/extra-cmake-modules/find-modules/FindWaylandScanner.cmake
https://github.com/qt/qtbase/blob/dev/cmake/3rdparty/extra-cmake-modules/modules/ECMFindModuleHelpers.cmake
3dba889fef06c8760edab41159b98aaa4150b9b5
2024-03-21 23:04:40 +01:00
Bartosz Taudul
4c6f6332b0
Copy compile_commands.json to workspace root.
2024-03-21 23:04:40 +01:00
Bartosz Taudul
1a3131178d
Link update with dbghelp.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
148eac2c24
Link with getopt.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
06244c0def
Provide sane default config for VS Code CMake extension.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
f523521831
Fix copypasta.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
25898a9c7a
Enable LTO.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
4bfd6f42bc
Add CMake build files for the rest of the utilites.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
46718851da
Extract some common definitions.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
375f4526df
Set TRACY_VERSION_STRING directly in version.cmake.
2024-03-21 23:04:39 +01:00
Bartosz Taudul
776b08f2e0
Split core server files from the UI.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
cc4ed68271
Extract common set of server files to a separate cmake build file.
...
Co-authored-by: Tom Atkinson <tja.atkinson@gmail.com>
2024-03-21 23:04:38 +01:00
Bartosz Taudul
35246b4191
Remove vcpkg.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
269c75103e
Windows build fixes.
...
- Include manifest.
- Add icon.
- Set subsystem to Windows.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
2c4abf5f9f
Link with winsock on Windows.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
58115b35c5
Fix non-wayland build.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
970250fc85
Another stupid macro needed for MSVC to not crap the pants.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
1bada6a6fd
Set NOMINMAX on win32.
2024-03-21 23:04:38 +01:00
Bartosz Taudul
699d93c7ae
Provide a list of recommended VS Code extensions.
2024-03-21 23:04:37 +01:00
Bartosz Taudul
ee81795f26
Move discovery of external dependencies to cmake/vendor.cmake.
...
Co-authored-by: Tom Atkinson <tja.atkinson@gmail.com>
2024-03-21 23:04:37 +01:00
Bartosz Taudul
a5f256ca2d
Add CMake Package Manager.
...
Co-authored-by: Tom Atkinson <tja.atkinson@gmail.com>
2024-03-21 23:04:37 +01:00
Bartosz Taudul
061b990875
Move version.cmake to cmake/ subdirectory.
...
Co-authored-by: Tom Atkinson <tja.atkinson@gmail.com>
2024-03-21 23:04:37 +01:00
Bartosz Taudul
1c43f6efa7
Move profiler to top of CMake projects list.
...
Will it make it the default in the extension?
2024-03-21 23:04:37 +01:00
Bartosz Taudul
96d44cc847
Add VS Code CMake configuration.
2024-03-21 23:04:37 +01:00
Bartosz Taudul
b73a0ff54e
Replace build and launch config by CMake integration.
2024-03-21 23:04:37 +01:00
Bartosz Taudul
c9b4248d35
Add basic CMakeLists.txt for the profiler GUI.
2024-03-21 23:04:36 +01:00
Bartosz Taudul
0081f1bda0
Remove Microsoft's C++ extension configuration.
...
Use clangd instead.
2024-03-21 23:04:36 +01:00
Bartosz Taudul
9ca27bf7cc
Enable including version.cmake from any directory.
2024-03-21 23:04:36 +01:00
Bartosz Taudul
ac031e64d6
Merge pull request #755 from Chekov2k/color
...
Add support to set color when creating a ScopedZone
2024-03-20 22:19:38 +01:00
Arnim Balzer
c5a68c2d8e
Remove default values that are not supported in C
2024-03-20 20:01:18 +00:00
Arnim Balzer
8df02e0bff
Add support to set color when creating a ScopedZone
2024-03-18 08:56:06 +00:00
Bartosz Taudul
83305115c2
Fix variable name.
2024-03-17 11:34:25 +01:00
Bartosz Taudul
578759384d
Make sure first DPI setup is run.
2024-03-16 01:16:25 +01:00
Bartosz Taudul
c673056dd4
Prevent window resizes on DPI change.
2024-03-16 01:13:09 +01:00
Bartosz Taudul
4fbef01729
Trigger redraw when DPI changes.
...
Previously the wayland surface was not updated, because there were no
surface commits performed due to power saving routines.
2024-03-16 00:57:55 +01:00
Bartosz Taudul
8ebe62ed85
Fix welcome window resizes.
2024-03-15 20:25:00 +01:00
Bartosz Taudul
55f9341aec
Scale ImGui windows when DPI changes.
...
Code is directly lifted from ImGui, with certain known caveats.
2024-03-15 20:19:32 +01:00
Bartosz Taudul
f5f82a2bd5
Don't show inline options for instrumentation statistics.
2024-03-13 23:39:16 +01:00
Bartosz Taudul
dec5b851af
Update NEWS.
2024-03-13 20:49:25 +01:00
Bartosz Taudul
37e3c60433
Update manual.
2024-03-13 20:40:54 +01:00
Bartosz Taudul
390b3d9c50
Redo inline options UI.
2024-03-13 20:04:38 +01:00
Bartosz Taudul
6c34e02dc2
Ability to display inline function cost percentages relative to base symbol.
2024-03-13 19:50:21 +01:00
Bartosz Taudul
6235343286
Disable sample parents when inline aggregation is enabled.
2024-03-13 19:15:00 +01:00
Bartosz Taudul
e155702e0a
Display count of aggregate inline functions.
2024-03-13 19:15:00 +01:00
Bartosz Taudul
3af5c7b331
Implement inline function aggregation.
2024-03-13 19:14:59 +01:00
Bartosz Taudul
f04cdb7782
Add aggregate inlines UI.
2024-03-13 19:14:59 +01:00
Bartosz Taudul
f264d0736a
Add grouping icon.
2024-03-13 19:14:59 +01:00
Bartosz Taudul
18f2631e6e
Remove AUTHORS file.
2024-03-13 19:14:59 +01:00
Bartosz Taudul
14206b5b4f
Merge pull request #750 from benvanik/benvanik-source-copy
...
Adding a copy button to the source view.
2024-03-13 18:13:11 +01:00
Ben Vanik
605cdcb5d5
Adding a copy button to the source view.
2024-03-13 09:35:16 -07:00
Bartosz Taudul
f1998292a4
Update git ignore list.
2024-03-13 00:52:10 +01:00
Bartosz Taudul
f5459c4d2c
Bump json.hpp to 3.11.3.
2024-03-13 00:45:43 +01:00
Bartosz Taudul
00e24e2b8c
pdqsort: Fixed overflow and simplified block partition logic. (2dc2bbd)
2024-03-13 00:42:59 +01:00
Bartosz Taudul
3b9e7a1838
Update stb_image to 2.29.
2024-03-13 00:34:19 +01:00
Bartosz Taudul
2df972d586
libbacktrace: don't assume compressed section is aligned (7ead8c1)
2024-03-13 00:29:01 +01:00
Bartosz Taudul
49478ec3b3
libbacktrace: skip all LZMA block header padding bytes (28824f2)
2024-03-13 00:24:13 +01:00
Bartosz Taudul
1f90cd473b
libbacktrace: use real .opd for debuginfo on ppc64 v1 ABI (592e9c8)
2024-03-13 00:23:08 +01:00
Bartosz Taudul
a9feb75bdf
libbacktrace: read symbol table of debuginfo file (36cfdc1)
2024-03-13 00:20:14 +01:00
Bartosz Taudul
a4eecd508d
libbacktrace: call GetModuleFileNameA on Windows (25889d2)
2024-03-13 00:18:14 +01:00
Bartosz Taudul
11bf33c32c
libbacktrace: look for _pgmptr on Windows (c1c86fa2)
2024-03-13 00:15:10 +01:00
Bartosz Taudul
4e349dd283
Merge pull request #746 from Mulej/master
...
Expose lock API to TracyC.h
2024-03-12 21:55:16 +01:00
Bartosz Taudul
f39a2fd3ee
Merge pull request #748 from benvanik/benvanik-reconnect-hotkey
...
Adding ctrl-r as a hotkey for reconnecting from the main profiler view.
2024-03-12 21:52:40 +01:00
Matej Mulej
db6128afe2
Grammar.
2024-03-12 20:59:52 +01:00
Matej Mulej
218d90fb3f
Add documentation for the C lock API.
2024-03-12 20:56:56 +01:00
Matej Mulej
14438be242
Cleanup and define nice C macros for lock API.
2024-03-12 20:56:00 +01:00
Ben Vanik
4fa5d23fa4
Adding ctrl-shift-alt-r hotkey for reconnecting.
...
This is effectively the same as clicking on the connection status
button, clicking discard, and then clicking reconnect.
2024-03-12 12:48:23 -07:00
Bartosz Taudul
d29421727c
Merge pull request #747 from benvanik/benvanik-copy-statistics
...
Adding a copy to CSV button to the statistics view.
2024-03-12 15:29:00 +01:00
Ben Vanik
51c99ba3c2
Adding a copy to CSV button to the statistics view.
...
This copies the visible rows of either the instrumentation or GPU
statistics view to a CSV string matching a subset of the csvexport
format.
2024-03-11 20:39:21 -07:00
Matej Mulej
2e7081e52a
Expose lock API to TracyC.h
2024-03-11 21:06:11 +01:00
Matej Mulej
92511c9742
Add non-C++ lock API
2024-03-11 21:01:25 +01:00
Bartosz Taudul
1ddecd4b99
Merge pull request #745 from apache-hb/master
...
Fix build and configure warnings when compiling with clang-cl
2024-03-11 20:18:47 +01:00
Elliot
a26f076a0e
fix build warnings when compiling with clang-cl
2024-03-11 14:44:44 -04:00
Bartosz Taudul
082c13ac8e
Put m_qpcToNs in a _WIN32 ifdef.
2024-03-09 23:25:49 +01:00
Bartosz Taudul
c0789c20cb
Add CppCon 2023 video.
2024-03-07 17:49:39 +01:00
Bartosz Taudul
7d813ec2c1
Merge pull request #733 from Razakhel/fix-clang-pedantic-windows
...
Added preprocessor checks for Clang on Windows
2024-03-05 18:07:03 +01:00
Bartosz Taudul
9ccc754143
Fix macos,
2024-03-02 00:30:50 +01:00
Bartosz Taudul
746b6c6246
Don't ignore user scale when DPI scale changes.
2024-03-02 00:21:08 +01:00
Bartosz Taudul
b329eb1fcc
Change way of updating fonts in View.
...
This makes the whole process more easy to follow. It also fixes a crash
bug that was occuring when Wayland output scale changed.
2024-03-01 23:43:53 +01:00
Bartosz Taudul
bdfcc5b814
Add missing ImGui renderer shutdown to the Wayland backend.
2024-03-01 22:11:30 +01:00
Bartosz Taudul
ec549c4831
Update ImGui to 1.90.4 + docking.
2024-03-01 22:09:08 +01:00
Bartosz Taudul
ea0471f9d0
Fix wl_surface v6 listener.
2024-02-28 13:30:59 +01:00
Grégoire Roussel
0295ef2b3c
[doc] Minor documentation updates ( #737 )
...
Co-authored-by: Grégoire Roussel <gregoire.roussel@wandercraft.eu>
2024-02-28 02:14:35 +01:00
Bartosz Taudul
0ca5e25c13
Update NEWS.
2024-02-27 22:14:04 +01:00
Bartosz Taudul
03c98a8d4c
Show external frames by default.
2024-02-27 22:12:27 +01:00
Bartosz Taudul
77f8ec0b2f
Implement hiding external stack frames.
2024-02-27 02:04:30 +01:00
Bartosz Taudul
a1aa87df87
Add ellipsis to standard font.
2024-02-27 02:04:29 +01:00
Bartosz Taudul
4226f7888e
Manually allocate and free s_di_known.
...
Otherwise destructor will be called when main() returns while symbol
retrieval may still want to actively use the vector.
2024-02-26 23:03:37 +01:00
Bartosz Taudul
133d52a6dd
Make external name retrieval high priority.
2024-02-25 15:13:29 +01:00
Bartosz Taudul
408ef4c06e
Update NEWS.
2024-02-25 13:57:51 +01:00
Bartosz Taudul
c514a5caca
Implement sorting instrumentation statistics by location.
2024-02-25 13:52:37 +01:00
Bartosz Taudul
b6562f1784
Merge pull request #715 from YaLTeR/fix-wayland-scale
...
Fix and update Wayland scale handling
2024-02-24 11:45:35 +01:00
Razakhel
cef21ef035
Added preprocessor checks for Clang on Windows
...
- MSVC-specific code is used in some places and compiled only if _MSC_VER is set; however, Clang under Windows also defines this, which reports errors on this non-standard code if the -pedantic-errors compiler flag is set
2024-02-21 22:54:44 +01:00
Bartosz Taudul
a2dd51ae4c
Merge pull request #727 from idbrii/fix-warn-conversion
...
Fix warning: Cast thread id to uint32_t
2024-02-17 02:22:04 +01:00
David Briscoe
7d8432bbec
Cast thread id to uint32_t
...
Fix MSVC Warning C4244: 'argument': conversion from 'uint64_t' to
'uint32_t', possible loss of data
We only store 32 bit thread ids in ThreadNameData.
Trying to follow existing style instead of static_cast.
2024-02-16 16:29:36 -08:00
Bartosz Taudul
5ce238e9b4
Merge pull request #724 from idbrii/fix-mem-callstacktree-active
...
Memory: correctly filter active allocations in call stack tree
2024-02-15 20:12:22 +01:00
David Briscoe
255e3d2829
Correctly filter allocations in memory call tree
...
Fix #723 : Memory: active allocations are incorrectly displayed in call stack tree
The range we were looking for was wrong (should be Active instead of
Inactive), but I also reworked to make the comparison clearer.
Test
Using the repro app from the bug:
1. Click "Free + Allocate" once
1. Call stack tree shows 2 entries under "Active allocations", 1 active
allocation, 0 inactive allocations in the call stack tree.
1. Click "Free + Allocate" several times
1. Call stack tree shows 1 KB of active allocations and many KB of
inactive.
2024-02-15 10:38:48 -08:00
Bartosz Taudul
3c4b06dff5
Merge pull request #722 from waywardmonkeys/ci-update-actions
...
ci: Update to current versions of actions.
2024-02-12 12:31:05 +01:00
Bruce Mitchener
793d1d08c8
ci: Update to current versions of actions.
...
This should remove the warnings within the GitHub Actions UI about
using the deprecated Node 12 and 16 versions.
2024-02-12 16:50:36 +07:00
Bartosz Taudul
3c313e9e73
Update manual.
2024-02-11 18:07:18 +01:00
Bartosz Taudul
7f04c66ef1
Bump meson version requirement to 1.1.
2024-02-11 17:32:42 +01:00
Bartosz Taudul
8731f3bc73
Drop shared_libs meson option.
2024-02-11 17:26:48 +01:00
Bartosz Taudul
783bc7c939
Drop tracy_ prefix from meson options.
2024-02-11 17:20:43 +01:00
Bartosz Taudul
0762d4bbd1
Rename meson_options.txt -> meson.options.
2024-02-11 17:16:58 +01:00
Bartosz Taudul
5f661bf767
Update NEWS.
2024-02-11 16:33:58 +01:00
Bartosz Taudul
bf76f57716
Add formatted variants for ZoneText and ZoneName.
2024-02-11 16:24:37 +01:00
Bartosz Taudul
c03884d20c
Add TracyNoop macro.
2024-02-09 14:51:25 +01:00
Bartosz Taudul
5e4eae5c2e
Avoid creation of a temporary object.
2024-02-09 01:27:33 +01:00
Bartosz Taudul
5037742ab0
Fix file access race condition.
2024-02-07 17:14:31 +01:00
Bartosz Taudul
312713b83c
Free allocated memory in case of read failure.
2024-02-07 17:14:04 +01:00
Bartosz Taudul
d46ffb4e9f
Add verbose and debuginfod to meson options.
2024-02-05 02:12:31 +01:00
Bartosz Taudul
5461427493
Print error message when opening a trace from command line fails.
2024-02-03 16:25:01 +01:00
Bartosz Taudul
1354205db8
Merge pull request #716 from gedalia/gpasternak/crash_handler_fix
...
This change makes the crash handler only install when tracy is connected.
2024-01-24 21:12:17 +01:00
Gedalia Pasternak
4ebbd15894
add win32 fix.
2024-01-24 11:27:08 -05:00
Gedalia Pasternak
9515a824fd
This change makes the crash handler only install when tracy is connected.
...
This avoids the issue that an end user has their own crash handler which
gets ignored when tracy is on even if there is nothing to capture the crash.
2024-01-24 09:25:57 -05:00
Ivan Molodetskikh
fcdc96748e
wayland: Use preferred_buffer_scale when available
...
On wl_compositor >= 6 we bind v6 and use preferred_buffer_scale.
Otherwise we bind 4 and do as before.
No other changes are needed for the version bump as Tracy doesn't use
wl_surface_attach() with nonzero coordinates.
2024-01-24 12:43:42 +04:00
Ivan Molodetskikh
16434f116c
Add a way for Backend to signal scale changes
...
On Wayland the scale now changes to the correct value as the Tracy
window is moved across monitors.
If the scale is overridden from environment, it does not change, just
like before.
2024-01-24 12:34:23 +04:00
Ivan Molodetskikh
bf3bd28bfa
wayland: Keep track of entered outputs for scale
...
Wayland kindly informs us which outputs the surface is on, to be used
for scale computation (at least on wl_compositor < 6). On mixed DPI
setups this fixes Tracy potentially using a higher scale than the output
it's displayed on.
However, as is, this commit results in Tracy always using scale 1,
because at the point of backend creation (which is when the scale is
queried) the surface is not yet displayed on any outputs, so a scale of
1 is assumed.
2024-01-24 12:19:52 +04:00
Bartosz Taudul
c4863d4324
Bump ImGui to 1.90.1.
2024-01-11 13:21:19 +01:00
Bartosz Taudul
a9288cd759
Merge pull request #710 from c-cube/bound-checks-import-fuchsia
...
import fuchsia: check bounds to handle truncated traces
2024-01-08 22:16:25 +01:00
Simon Cruanes
dff6ea5821
import fuchsia: check bounds to handle truncated traces
...
the last record might be partially written so it's important to
check bounds and dump the last record if that happens.
2024-01-08 16:02:17 -05:00
Bartosz Taudul
747a3cdea2
Merge pull request #708 from phsilva/fix-typo
...
Fix typo on Chapter 1 opening sentence.
2024-01-02 23:09:32 +01:00
Paulo Henrique Silva
ef55ad6c8d
Fix typo
...
Typo introduced on revision a13b04669.
2024-01-02 18:19:21 -03:00
Bartosz Taudul
0fd1840523
Update NEWS.
2024-01-02 20:09:25 +01:00
Bartosz Taudul
fc8fc80900
Drop support for pre-0.9.0 traces.
2024-01-02 20:08:41 +01:00
Bartosz Taudul
90c7a43e8a
Less verbose CPU data table header labels.
2024-01-02 20:08:18 +01:00
Bartosz Taudul
2ac0173c91
Update manual.
2024-01-02 17:18:31 +01:00
Bartosz Taudul
f74ade31f4
Update NEWS.
2024-01-02 17:04:02 +01:00
Bartosz Taudul
680174685b
Pass function names to ViewSource() calls.
2024-01-02 17:04:01 +01:00
Bartosz Taudul
4757d101fc
Optional ctrl key mod check when running view source with function name.
2024-01-02 17:04:01 +01:00
Bartosz Taudul
9a5fb0bb51
Implement search for symbol matching function name when opening source view.
2024-01-02 16:15:12 +01:00
Bartosz Taudul
cf412bfb2e
Change microarchitecture fallback to ZEN4.
2024-01-02 14:56:00 +01:00
Bartosz Taudul
38dc0d83d7
Bump copyright year.
2024-01-01 13:54:12 +01:00
Bartosz Taudul
426c8cef39
Merge pull request #706 from c-cube/fix-import-fuchsia-string-ref
...
fix import-fuchsia: handle string references properly
2024-01-01 13:53:40 +01:00
Simon Cruanes
bafc86326a
check for the presence of the initialization record
2023-12-31 22:52:13 -05:00
Simon Cruanes
d2bdcc2e2c
fix import-fuchsia: handle string references properly
2023-12-31 22:43:10 -05:00
Bartosz Taudul
dfe126a7f3
TracyPrint.cpp is a dependency of TracyWorker.cpp now.
2023-12-31 14:29:32 +01:00
Bartosz Taudul
762582357b
Check if source location counts are in order when loading traces.
2023-12-31 14:16:50 +01:00
Bartosz Taudul
b262cb2428
Handle load failure exceptions.
2023-12-31 14:16:06 +01:00
Bartosz Taudul
5062bef69a
Add trace load failure exception.
2023-12-31 13:55:06 +01:00
Bartosz Taudul
d64307be91
Move bad version popup out of file selector ifdef check.
2023-12-31 13:54:04 +01:00
Bartosz Taudul
586c6bf166
Hook up source location overflow failures.
...
Note: not tested. Expect some off-by-one bugs. Control flow may fail. Oh no.
2023-12-31 13:06:51 +01:00
Bartosz Taudul
54ee77026f
Add source location overflow failures.
2023-12-31 12:58:56 +01:00
Bartosz Taudul
cb7ce1c3aa
Merge pull request #704 from c-cube/wip-import-fuchsia
...
wip: import-fuchsia tool to import fuchsia traces
2023-12-29 16:07:50 +01:00
Simon Cruanes
737759bc43
manual: remove use of \href
2023-12-29 09:33:07 -05:00
Simon Cruanes
b558f65004
handle loc
in import-fuchsia
2023-12-28 18:08:08 -05:00
Simon Cruanes
c6efbf6cb7
add some documentation for import-fuchsia (and import-chrome) to manual
2023-12-28 18:03:16 -05:00
Simon Cruanes
7769f23c76
add CI for import-fuchsia
2023-12-28 17:47:21 -05:00
Simon Cruanes
c4b644ecf8
fix
2023-12-27 23:31:17 -05:00
Simon Cruanes
a275f1a2e0
remove dead code
2023-12-27 17:14:17 -05:00
Simon Cruanes
90b2c986ee
decode thread names
2023-12-27 17:13:46 -05:00
Simon Cruanes
7f40e6cda9
handle counter, begin/end duration events, and fix decoding of double arguments
2023-12-27 16:57:25 -05:00
Simon Cruanes
5ecd3a5e83
fix printing of arguments
2023-12-27 12:30:24 -05:00
Simon Cruanes
bf75b9fab0
bugfix
2023-12-27 01:39:06 -05:00
Simon Cruanes
77d091bdc8
wip: import-fuchsia tool to import fuchsia traces
...
See:
https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format
2023-12-27 01:18:41 -05:00
Robert Osfield
d62428c482
Moved methods into public scope and add GetQueryPool() method to enable use of the VkCtx directly rather than just from VkCtxScope ( #695 )
2023-12-23 00:54:18 +01:00
Bartosz Taudul
1557a9ac52
Restore emscripten 32-bit vertex buffer indices.
2023-12-21 22:12:55 +01:00
Bartosz Taudul
90c5ad04e7
Update NEWS.
2023-12-21 15:12:24 +01:00
Bartosz Taudul
28636b076b
Add missing colon.
2023-12-21 14:38:06 +01:00
Bartosz Taudul
e7b9bffbbd
Rename TRACE_CLIENT_LIBUNWIND_BACKTRACE to TRACY_LIBUNWIND_BACKTRACE.
2023-12-21 14:07:44 +01:00
Bartosz Taudul
04aa19a3f3
Update manual.
2023-12-21 13:47:10 +01:00
Bartosz Taudul
58c630473a
Use thread icon for thread label in statistics.
2023-12-21 13:26:43 +01:00
Bartosz Taudul
e44db26492
Display number of groups in find zones window.
2023-12-20 17:31:00 +01:00
Bartosz Taudul
ef9b079ecc
Mark invalidGid constexpr.
2023-12-20 17:26:29 +01:00
Bartosz Taudul
56fa051bea
Display number of threads each source location is present in.
2023-12-20 17:19:26 +01:00
Bartosz Taudul
8187519775
Add threads count to SrcLocZonesSlim.
2023-12-20 17:19:26 +01:00
Bartosz Taudul
d01113150d
Calculate per-thread source location counts.
2023-12-20 16:42:37 +01:00
Bartosz Taudul
e9911ab127
Fix includes.
2023-12-20 13:16:51 +01:00
Bartosz Taudul
0f794ed3b4
Cosmetics.
2023-12-20 13:15:42 +01:00
Bartosz Taudul
c39b7af4b3
Proper spelling of dbghelp.
2023-12-20 13:14:06 +01:00
Bartosz Taudul
cc3cbfe6f2
No need for indirection of ImageEntry vector.
2023-12-12 19:27:53 +01:00
Bartosz Taudul
5decb91cd0
Don't clear image cache on refresh.
2023-12-12 19:23:27 +01:00
Bartosz Taudul
7fc7935359
Cosmetics.
2023-12-12 19:09:41 +01:00
Bartosz Taudul
073e04e967
Remove redundant include.
2023-12-12 19:04:43 +01:00
Bartosz Taudul
71628f4b1c
Merge pull request #682 from amschnorr/add-tracy-client-address-flag
...
Add tracy client address complile flag
2023-12-12 13:47:30 +01:00
Bartosz Taudul
ea53a9220b
Merge pull request #683 from YaLTeR/add-missing-to-meson
...
Add new options to meson
2023-12-12 12:52:33 +01:00
Ivan Molodetskikh
4e23b1125a
meson: Add tracy_libbacktrace_elf_dynload_support option
2023-12-12 08:06:31 +04:00
Ivan Molodetskikh
b110b10b35
meson: Add tracy_symbol_offline_resolve option
2023-12-12 08:06:08 +04:00
Ivan Molodetskikh
2b0be68b4a
meson: Add libunwind option
...
The CMake name was a bit weird, so I changed it to the standard format
for meson.
2023-12-12 08:05:38 +04:00
Ivan Molodetskikh
c0e4652edf
meson: Add tracy_public_deps list
...
Currently functionally identical to before. Will be used in a subsequent
commit for libunwind, which appears in a public header.
2023-12-12 08:04:41 +04:00
Alex
6cb0fa0901
-doc revise
2023-12-11 19:24:04 -08:00
Alex
9921b74e6d
-documentation
...
-erro message
2023-12-11 16:21:19 -08:00
Alex
1e6f877777
-add tracy client address flag
2023-12-11 15:16:41 -08:00
Bartosz Taudul
9bc014b183
Merge pull request #674 from tiago-rodrigues/trodrigues/offline_symbol_resolve_and_imagecache2
...
Add image cache to avoid calling dladdr() and add libbacktrace elf image list refresh
2023-12-11 20:31:14 +01:00
trodrigues
ab1ec3f01c
make sure we always copy the image name in ImageCache
2023-12-09 19:12:53 -06:00
trodrigues
15f1b6b0b4
make a copy of dli_fname after calling dladdr. Call ImageCache destructor.
2023-12-09 09:40:07 -06:00
trodrigues
8503f32b36
fix typos and compilation warnings
2023-12-09 09:37:14 -06:00
trodrigues
e80e1d2484
fix line endings
2023-12-06 12:29:26 -06:00
Tiago Rodrigues
8dfc5fe41f
re-apply diff
2023-12-06 12:39:52 -05:00
Tiago Rodrigues
38559172bb
checkout elf.cpp as it looks like line ending were screwed up
2023-12-06 12:37:53 -05:00
Tiago Rodrigues
24b6c649d3
fix typo
2023-12-06 12:32:37 -05:00
trodrigues
b835d73590
Add support for libbacktrace to detect new elfs have been dynamically loaded after backtrace_initialize() has been called, and consider them for symbol resolution
2023-12-05 20:09:11 -06:00
trodrigues
55f53b9979
remove option to enable image cache, use it for TRACY_HAS_CALLSTACK == 3 to obtain image path and addreses instead of dladdr()
2023-12-05 20:01:12 -06:00
trodrigues
a618b6e6f8
simplify return from tracy::FastVector iterator
2023-12-03 08:36:54 -06:00
Tiago Rodrigues
a9d039e081
move under the tracy namespace, remove commented out code
2023-12-03 09:23:03 -05:00
Tiago Rodrigues
132419dba3
Add image cache to avoid calling dladdr() when doing offline symbol resolution. This cache can also be used in the runtime symbol resolution case to detect we should recreate "backtrace_state" when new images have been loaded
2023-11-29 13:23:58 -05:00
Bartosz Taudul
af73dba73e
Merge pull request #665 from tiago-rodrigues/trodrigues/offline_symbol_resolve
...
Add support for offline callstack symbol resolving
2023-11-27 16:53:22 +01:00
Tiago Rodrigues
2509a4b962
update documentation to reflect that symbol statistics are broken when using offline symbol resolving
2023-11-27 10:22:12 -05:00
Bartosz Taudul
87f3d20a9e
Merge pull request #673 from AMS21/patch-1
...
Fix typo `enfore` -> `enforce`
2023-11-26 12:52:33 +01:00
AMS21
d2325e49e7
Fix typo enfore
-> enforce
2023-11-26 11:51:05 +00:00
Bartosz Taudul
bed5f9b16e
Make the manual two-sided.
2023-11-25 15:58:25 +01:00
Tiago Rodrigues
69b9707bc5
update github workflows to remore tracy-edit
2023-11-25 09:19:13 -05:00
Tiago Rodrigues
de6e7d2fc3
move the symbol resolving functionality to the update application instead of creating a new one
2023-11-24 20:48:39 -05:00
Tiago Rodrigues
a1ca8dd06a
fixes according to review comments
2023-11-24 16:32:45 -05:00
Tiago Rodrigues
e5e84424f6
update cmake option description
2023-11-24 16:24:45 -05:00
Grégoire Roussel
116e82de9e
[doc] Add small section for docker on Ubuntu ( #668 )
2023-11-20 18:58:01 +01:00
Ivan Molodetskikh
ad39a01de1
Don't error on frame end without start ( #666 )
...
With on-demand profiling we're very likely to connect in the middle of a
discontinuous frame and thus receive a frame end without any preceding
frame start. So don't error out in this case.
2023-11-19 19:09:58 +01:00
trodrigues
6c0bb0a56a
add mising cstdint include that was saucing compilation failure in the linux github workflow (but not locally, likely due to diff compiler)
2023-11-19 06:50:56 -08:00
trodrigues
e04e595eec
update linux github workflow after rebase
2023-11-19 06:36:42 -08:00
trodrigues
301c9fb720
revert #ifdef of a lot of code by TRACY_SYMBOL_OFFLINE_RESOLVE, it now only force enables the offline symbol resolving codepath.
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
79618c5a1a
Add support for using defining TRACY_SYMBOL_OFFLINE_RESOLVE to enable only the offline symbol resolving codepath
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
b3f68801bb
fix linux compilation
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
5c0513931a
- Fix formatting
...
- delete CreateResolver/DestroySymbolResolver
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
687d681764
Instead of adding new method, make StoreString public
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
c302b509fe
fix formatting
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
3fdd1e1863
fix typo
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
0491cad49a
Add support for symbol path replacement using regex in tracy-edit
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
fe0e5f3358
Add some basic documentation for offline symbols
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
94e7da11ec
use pkg-config to get libcapstone config
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
a887d558f1
enable addr2line symbol resolver in all platforms except windows
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
5c3e303f6f
add tracy-edit debug compilation workflow
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
a24fec91bd
try to add tracy-edit to github workflows
2023-11-19 06:32:17 -08:00
Tiago Rodrigues
f4f75eac64
Add support for offline symbol resolving by setting the "TRACY_SYMBOL_OFFLINE_RESOLVE=1" env var
...
- Add a tool "tracy-edit" that allows loading a tracy capture, patching symbols and recompress the result
- Add offline symbol resolvers for linux (using addr2line) and windows (using dbghelper)
2023-11-19 06:32:16 -08:00
Bartosz Taudul
906f73cab3
Switch CI to build on archlinux image.
2023-11-19 14:24:44 +01:00
Bartosz Taudul
7c6e093213
Merge pull request #656 from apache-hb/master
...
respect mesons default_library option
2023-11-18 15:29:08 +01:00
Elliot
9ccf02a4c8
use bool deprecation flag rather than string
2023-11-17 15:42:57 -05:00
Elliot
67b454286f
fix deprecation tag in option and reverse warning check
2023-11-15 13:02:05 -05:00
Bartosz Taudul
cf1e91b853
Bump ImGui to 1.90 + docking.
2023-11-15 18:47:54 +01:00
Bartosz Taudul
aa5cc655a9
Merge pull request #661 from moritz-h/imgui-include
...
Prefer internal imgui
2023-11-15 15:43:24 +01:00
Moritz Heinemann
69b82903cd
Prefer internal imgui
2023-11-15 14:41:45 +01:00
Bartosz Taudul
c79f6128bc
Merge pull request #660 from sistr22/patch-android-compilation
...
Fix compilation on 32 bit android
2023-11-15 12:35:44 +01:00
Damien Mabin
37f886dba4
Fix compilation on 32 bit android
2023-11-15 13:28:37 +02:00
Elliot
a3774039f6
warn when tracy_shared_libs and default_library mismatch
2023-11-13 15:56:17 -05:00
Elliot
9342df020d
mark the tracy_shared_libs as deprecated
2023-11-13 15:56:06 -05:00
Bartosz Taudul
2f2f9939db
Merge pull request #657 from tiago-rodrigues/trodrigues/tracy_libunwind
...
Add support for using using libunwind
2023-11-13 20:19:06 +01:00
Tiago Rodrigues
c373647dae
fix coding style
2023-11-13 13:43:03 -05:00
Tiago Rodrigues
5f60ac7ad2
update docs
2023-11-13 13:42:30 -05:00
Tiago Rodrigues
0339ed3c9c
Merge branch 'trodrigues/tracy_libunwind' of https://github.com/tiago-rodrigues/tracy into trodrigues/tracy_libunwind
2023-11-13 12:58:21 -05:00
Tiago Rodrigues
e4b5395ae8
Update documentation with new compile time and env variables added.
2023-11-13 12:57:34 -05:00
Elliot
b95fb270cb
Update meson.build
...
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2023-11-11 23:17:20 -05:00
trodrigues
2988d0a136
rename libunwind option and add it to cmake
2023-11-10 16:17:39 -06:00
Tiago Rodrigues
95cb3e1f5a
Add "TRACY_NO_SYS_TRACE" env var to allow force disabling system trace even if the underlying system supports it
2023-11-10 17:02:47 -05:00
Tiago Rodrigues
790d28911d
Add env var "TRACY_NO_DBHELP_INIT_LOAD" to allow disabling dbghelp loading of DeviceDriver and ProcessModules at startup
2023-11-10 17:02:03 -05:00
Tiago Rodrigues
4c94b3eff7
Add support to use libunwind for backtrace capturing on linux platforms (which is ~ 4x faster than execinfo)
2023-11-10 17:00:39 -05:00
Elliot
96411e5d10
specify more accurate min version
2023-11-09 13:56:21 -05:00
Elliot
46ba3bf1c9
use mesons default_library flag
2023-11-09 13:50:34 -05:00
Bartosz Taudul
348be05605
Add zmmword as known asm size directive.
2023-11-08 02:01:37 +01:00
Bartosz Taudul
95be71e974
Merge pull request #654 from tmayoff/patch-1
...
Update meson_options.txt to allow overriding of tracy_enable
2023-11-02 15:38:20 +01:00
Tyler
d0a4abeef5
Update meson_options.txt
...
This allows superprojects to override the tracy_enable option
2023-11-02 10:17:28 -04:00
Bartosz Taudul
0b21b2f3b4
Merge pull request #649 from michaeldleslie/support_qnx
...
Add basic QNX support
2023-10-30 23:44:58 +01:00
Michael Leslie
d7d062b20b
revert change to BSDs GPU zones fields
2023-10-30 14:15:35 -07:00
Michael Leslie
dcf088562b
update main doc to mention QNX support and include in feature support matrix
2023-10-30 09:50:49 -07:00
Bartosz Taudul
8202502a2f
Merge pull request #652 from YaLTeR/is-started
...
Add TracyIsStarted
2023-10-25 13:02:56 +02:00
Ivan Molodetskikh
852a1a5f14
Add TracyIsStarted
...
When using TRACY_MANUAL_LIFETIME, calling most Tracy functions
before starting the profiler results in an assertion. Notably, even
TracyIsConnected is affected. There is, however, no function to check if
the profiler had already started. This commit adds such a function.
2023-10-25 14:56:29 +04:00
Michael Leslie
8263bfb829
clean up indentation
2023-10-24 17:44:46 -07:00
Michael Leslie
daba5ae1d8
add qnx support for instrumentation profiling only
2023-10-24 17:40:13 -07:00
Bartosz Taudul
18054b4f34
Merge pull request #647 from YaLTeR/meson-missing-incl
...
meson: Add missing TracySysPower include
2023-10-24 11:16:58 +02:00
Ivan Molodetskikh
c2fb6f62fb
meson: Add missing TracySysPower include
2023-10-24 08:27:12 +04:00
Bartosz Taudul
4c8944b174
Merge pull request #644 from YaLTeR/gpu-time-sync
...
Add GpuTimeSync event
2023-10-23 19:18:38 +02:00
Bartosz Taudul
721a39a9ea
Describe drawbacks of GPU resynchronization
2023-10-23 15:56:21 +02:00
Ivan Molodetskikh
f99d1a2b61
Mention ___tracy_emit_gpu_time_sync in the manual
2023-10-23 08:02:52 +04:00
Ivan Molodetskikh
41fc293043
Add GpuTimeSync event
...
Allows to resynchronise GPU and CPU timestamps during profiling.
2023-10-22 10:16:41 +04:00
Bartosz Taudul
3601576b3f
Add some more ogryzek device identifiers.
2023-10-20 01:32:05 +02:00
Bartosz Taudul
5994629ccd
Document AMD GPUs power saving issues.
2023-10-19 23:27:19 +02:00
Bartosz Taudul
6819c28bcb
Merge pull request #642 from YaLTeR/c-api-gpu-fixes
...
Defer GPU context creation from the C API
2023-10-19 14:22:38 +02:00
Ivan Molodetskikh
52caae3a51
Defer GPU contexts from the C API
...
Same as how the C++ API does it. Otherwise with on demand mode the
profiler never receives the GPU context info.
2023-10-19 15:33:06 +04:00
Bartosz Taudul
7f5cfdfa10
Merge pull request #641 from YaLTeR/meson-improvements
...
Meson improvements
2023-10-19 12:47:42 +02:00
Ivan Molodetskikh
ed486bf3c7
CI: Add basic meson build test
2023-10-19 14:26:17 +04:00
Ivan Molodetskikh
7a2ce93998
meson: Generate pkgconfig file
...
Lets multiple projects use the same Tracy library.
2023-10-19 13:31:39 +04:00
Ivan Molodetskikh
170a07c46b
meson: Fix header install dir
2023-10-19 13:28:29 +04:00
Ivan Molodetskikh
e93cf6d08a
meson: Propagate defines to dependents
...
This way they don't have to set them manually.
2023-10-19 13:26:32 +04:00
Ivan Molodetskikh
6796c6fd91
meson: Remove tracy_dep_dynamic
...
Seems unused.
2023-10-19 13:26:32 +04:00
Ivan Molodetskikh
8ae29c0329
meson: Remove duplicate include
2023-10-19 13:26:32 +04:00
Bartosz Taudul
aae4d25f7b
Merge pull request #639 from martty/patch-1
...
Correct load method for Vk instance extension symbol
2023-10-18 13:08:41 +02:00
Marcell Kiss
69ba216245
correct load method Vk instance extension symbol
2023-10-17 23:23:13 +01:00
Bartosz Taudul
5c15866771
Merge pull request #638 from neheb/patch-1
...
fix compilation for Ubuntu MinGW
2023-10-17 11:31:43 +02:00
Rosen Penev
470b0934a6
fix compilation for Ubuntu MinGW
...
version had to be set to 7 minimum.
2023-10-16 19:41:20 -07:00
Bartosz Taudul
37aff70dfa
Release 0.10.0.
2023-10-16 20:59:38 +02:00
Bartosz Taudul
93537dff33
Merge pull request #636 from ids1024/xdg-decoration
...
wayland: Fix use of xdg-decoration protocol
2023-10-09 23:56:42 +02:00
Bartosz Taudul
757362f782
Merge pull request #603 from slomp/slomp/d3d11-refactor
...
refactoring of the D3D11 back-end
2023-10-09 23:56:20 +02:00
Ian Douglas Scott
8fe6c39bb5
wayland: Fix use of xdg-decoration protocol
...
`zxdg_toplevel_decoration_v1` isn't a global, so the code handling it as
one wasn't doing anything. Instead,
`zxdg_decoration_manager_v1_get_toplevel_decoration` returns it.
This fixes the behavior for compositors that support server-side
decoration, but do not default to it until explicitly requested by the
client.
2023-10-09 14:32:42 -07:00
Bartosz Taudul
009cc92320
Update ImGui to 1.89.9 + docking.
2023-10-09 23:30:57 +02:00
Bartosz Taudul
a762cc0013
Update nfd to 1.1.0.
2023-10-09 23:14:55 +02:00
Bartosz Taudul
03fdb3402d
Update xxhash to 0.8.2.
2023-10-09 23:11:30 +02:00
Bartosz Taudul
e2fec4f27f
Update getopt_port to 6ad8cc105.
2023-10-09 22:38:04 +02:00
Bartosz Taudul
52721a6bf0
Add Zen4 EPYC CpuId.
2023-10-09 22:34:44 +02:00
Bartosz Taudul
0080eaac42
Merge pull request #635 from slomp/slomp/apple-delayed-init-fix
...
eliminate "already defined" warning when passing TRACY_DELAYED_INIT to the compiler on Apple clients
2023-10-09 22:26:04 +02:00
Marcos Slomp
ded5b81fa4
eliminate "already defined" warning when passing TRACY_DELAYED_INIT to the compiler on Apple clients
2023-10-09 13:24:54 -07:00
Bartosz Taudul
434a27b85d
Fix linking on win32.
2023-10-08 20:36:16 +02:00
Bartosz Taudul
e77ce12093
Update NEWS.
2023-10-07 01:42:35 +02:00
Bartosz Taudul
2c18097bf9
Symbol history walking.
2023-10-07 01:28:10 +02:00
Bartosz Taudul
2a6a082c93
Maintain a history of viewed symbols.
2023-10-07 01:12:16 +02:00
Bartosz Taudul
5e31910510
Merge pull request #633 from YaLTeR/fix-meson-nopsleds
...
Fix meson nopsleds option
2023-10-06 11:07:14 +02:00
Ivan Molodetskikh
91671ab21a
Fix meson nopsleds option
...
It was missing from meson_options.txt breaking the build, and had an
outdated name.
2023-10-06 10:56:35 +04:00
Bartosz Taudul
da1bc2b60e
Merge pull request #597 from Keno/kf/noplrdtsc
...
Use patchable rdtsc sequence to avoid slowdowns under rr
2023-09-24 21:55:11 +02:00
Bartosz Taudul
855fd299ea
Merge pull request #600 from slomp/slomp/d3d12-refactor
...
Refactoring of the D3D12 back-end
2023-09-24 21:51:58 +02:00
Bartosz Taudul
60a3a85069
Merge pull request #624 from slomp/slomp/udp-broadcast-fix
...
Fixes around UDP broadcast
2023-09-21 20:29:32 +02:00
Marcos Slomp
83b52d9a20
fix socket reuse logic in UdpListen::Listen()
2023-09-20 21:47:44 -07:00
Keno Fischer
5417227e83
Use patchable rdtsc sequence to avoid slowdowns under rr
...
We (Julia) ship both support for using tracy to trace julia applications,
as well as using `rr` (https://github.com/rr-debugger/rr ) for record-replay debugging.
After our most recent rebuild of tracy, users have been reporting signfificant performance
slowdowns when `rr` recording a session that happens to also load the tracy library
(even if tracing is not enabled). Upon further examination, the recompile happened
to trigger a protective heuristic that disabled rr's patching of tracy's use of
`rdtsc` because an earlier part of the same function happened to look like a
conditional branch into the patch region. See https://github.com/rr-debugger/rr/pull/3580
for details. To avoid this issue occurring again in future rebuilds of tracy,
adjust tracy's `rdtsc` sequence to be `nopl; rdtsc`, which (as of of the
linked PR) is a sequence that is guaranteed to bypass this heuristic
and not incur the additional overhead when run under rr.
This functionality is kept behind a compile-time flag `TRACY_PATCHABLE_NOPSLEDS`
in order to avoid polluting the instruction cache unnecessarily.
2023-09-20 20:21:40 -04:00
Marcos Slomp
996987b966
scoping
2023-09-11 12:59:48 -07:00
Marcos Slomp
7b2acd2c6d
improved error reporting
2023-09-11 12:53:42 -07:00
Marcos Slomp
42b088d085
Collect pending timestamps upon context destruction
2023-09-11 12:46:03 -07:00
Marcos Slomp
2e3ae95882
reworking TracyD3D12 macros
2023-09-11 12:28:07 -07:00
Marcos Slomp
f9d36060df
reworking clock calibration
2023-09-11 12:08:15 -07:00
Marcos Slomp
6454b0bd65
removing windows/com header bloat
2023-09-11 12:07:42 -07:00
Marcos Slomp
cf38d6a102
reworking context id initialization
2023-09-11 11:56:52 -07:00
Bartosz Taudul
0341819fbd
Merge pull request #620 from gan74/master
...
Fixed Vulkan context running out of queries after 64k
2023-09-11 20:56:19 +02:00
Marcos Slomp
4f42a75df2
compressing redundant code
2023-09-11 11:53:33 -07:00
gan74
b979a3d26f
Fixed Vulkan context running out of queries after 64k
2023-09-11 20:51:42 +02:00
Bartosz Taudul
1ed4b71afc
Merge pull request #619 from gan74/master
...
Fixed Vulkan query id generation not being thread safe
2023-09-11 15:41:41 +02:00
gan74
2153973abe
Fixed Vulkan query id generation not being thread safe
2023-09-11 15:12:58 +02:00
Bartosz Taudul
73da891805
Remove std:: qualifier from size_t.
2023-09-11 11:33:40 +02:00
Bartosz Taudul
08a36e8dfd
Merge pull request #609 from xhebox/master
...
adapt libbacktrace to musl
2023-09-10 13:31:48 +02:00
xhe
4e771b2da0
adapt libbacktrace to musl
...
Signed-off-by: xhe <xw897002528@gmail.com>
2023-09-10 19:26:38 +08:00
Bartosz Taudul
e23aa01d51
Merge pull request #612 from slomp/slomp/d3d12-tabs-to-spaces
...
D3D12 back-end: converting tabs to spaces
2023-09-09 23:29:12 +02:00
xyz1001
30fb2b5f89
Fix two bugs ( #615 )
...
* Fix wrong check for wcstombs return value
* Fix memory leak when call GetThreadDescription
2023-09-08 14:02:55 +02:00
Bartosz Taudul
95e4e01b10
Merge pull request #617 from VirtualGeo/warning_fix
...
Remove warning (unused parameters)
2023-09-07 11:27:26 +02:00
Vincent Loppin
98de2ed1c4
Remove warning (unused parameters)
2023-09-07 10:06:42 +02:00
Marcos Slomp
393ea938c9
converting tabs to spaces
2023-09-06 08:47:57 -07:00
Bartosz Taudul
4e83aa3818
Merge pull request #611 from Geod24/tracy_demangle_fix
...
Fix and test TRACY_DEMANGLE for TracyClient
2023-09-06 10:51:44 +02:00
Mathias Lang
c6d9741136
Fix and test TRACY_DEMANGLE for TracyClient
...
The configuration wasn't tested and stopped compiling.
This fixes it and adds a test to ensure it doesn't break again.
2023-09-06 01:28:58 +02:00
Marcos Slomp
fc33fc010b
typo
2023-08-31 13:09:34 -07:00
Marcos Slomp
2bdf0ee75d
more power-efficient busy-wait
2023-08-30 09:09:46 -07:00
Marcos Slomp
bac06853fe
reworking the TracyD3D11 macros
2023-08-30 09:02:01 -07:00
Marcos Slomp
dcd34397bd
refactoring of the D3D11 back-end
2023-08-28 14:15:06 -07:00
Bartosz Taudul
f15de19fda
Merge pull request #601 from fabioarnold/master
...
Fix macOS DPI scaling
2023-08-23 13:24:47 +02:00
Fabio Arnold
ed54848536
Fix macOS DPI scaling
2023-08-23 12:24:22 +02:00
Bartosz Taudul
1491e5d708
Merge pull request #595 from bjornblissing/master
...
Wrap std::numeric_limits<T>::max() in parenthesis
2023-08-17 14:58:30 +02:00
Björn Blissing
e1b1fd72dc
Wrap std::numeric_limits<T>::max() in parenthesis
...
The windows.h header file defines the macro max. If the max macro is include
it will lead to name collisions with the std::numeric_limits<T>::max() function.
One solution is to define NOMINMAX before the inclusion of windows.h.
However, that might be a demanding task for a large codebase. Defining the
NOMINMAX as global define may also break previous code.
Another to solution to the problem is to wrap the numeric_limits function in
parenthesis to instruct the compiler to treat it as a function and not a macro.
This commit wraps the std::numeric_limits<T>::max() calls in the public
interfacing header files, with parenthesis.
2023-08-17 10:03:52 +02:00
Bartosz Taudul
84eff4b05d
Merge pull request #594 from menduz/master-1
...
Fix mac compile for latest macos SDK
2023-08-16 11:14:46 +02:00
menduz
e05545b04a
Fix mac compile for latest macos SDK
...
Following 3feb2473a2
, `mach_vm.h` seems to have been deleted
2023-08-15 21:00:46 -03:00
Bartosz Taudul
c689e9e0aa
Adjust language to no longer specify "all cores".
2023-08-05 12:08:29 +02:00
Bartosz Taudul
296f30a9c5
Reduce number of worker threads used for render tasks.
...
Number of cores -> number of worker threads:
1 -> 0
2 -> 0
3 -> 0
4 -> 1
5 -> 1
6 -> 2
7 -> 2
8 -> 3
9 -> 3
10 -> 4
11 -> 4
12 -> 5
13 -> 5
14 -> 6
15 -> 6
16 -> 7
17 -> 7
18 -> 8
19 -> 8
20 -> 9
21 -> 9
22 -> 10
23 -> 10
24 -> 11
25 -> 11
26 -> 12
27 -> 12
28 -> 13
29 -> 13
30 -> 14
31 -> 14
32 -> 15
2023-08-05 12:01:36 +02:00
Bartosz Taudul
47b724a903
Merge pull request #590 from clibequilibrium/patch-1
...
Added binding links to the README.md
2023-07-31 16:39:33 +02:00
Alexander
8110cb20cc
Added binding links to the README.md
2023-07-31 09:47:04 -04:00
Bartosz Taudul
1eafeea1a9
Merge pull request #588 from dmirys/fix-tracy-no-callstack
...
Fix compilation for the case of using TRACY_NO_CALLSTACK
2023-07-31 12:21:55 +02:00
Ястребков Дмитрий Ирикович
de45af63cc
Fix compilation for the case of using TRACY_NO_CALLSTACK
2023-07-31 11:40:12 +07:00
Bartosz Taudul
0e26b9e53f
Merge pull request #583 from jjcasmar/master
...
Export thread id data in CSV
2023-07-19 14:21:35 +02:00
Juan Jose Casafranca
3d723299b0
Export thread id data
2023-07-19 14:01:27 +02:00
Bartosz Taudul
18f37ec52f
Merge pull request #581 from Christian-Prather/feature/cmake-versioning
...
Added cmake versioning and removed hardcoded share dir path
2023-07-17 19:02:24 +02:00
Christian Prather
a49af31188
Added cmake versioning and removed hardcoded share dir path
2023-07-17 10:55:46 -06:00
Bartosz Taudul
6c6ec00251
Handle failures when loading connection history.
2023-06-29 23:59:54 +02:00
Bartosz Taudul
57bd63dab6
Show trace description/filename on titlebar.
2023-06-29 23:53:37 +02:00
Bartosz Taudul
0cb6d8588b
Merge pull request #578 from theblackunknown/machizaud/fix-missing-headers
...
Couple of fixes
2023-06-23 15:02:22 +02:00
Andréa MACHIZAUD
cb30c4eb3e
Fix missing TracyClient headers
2023-06-23 14:57:48 +02:00
Andréa MACHIZAUD
47843918f4
Fix missing entries in tracy/TracyVulkan.hpp
2023-06-23 14:56:53 +02:00
Bartosz Taudul
dcc7c24132
Merge pull request #576 from Light7734/patch-1
...
fix: add missing #endif in 'TracyVulkan.hpp'
2023-06-22 11:34:00 +02:00
Light7734
b9eb5f6bef
fix: add missing #endif in 'TracyVulkan.hpp'
2023-06-22 09:31:33 +00:00
Bartosz Taudul
cf0e6b610b
Update NEWS.
2023-06-10 13:37:01 +02:00
robertblaketaylor
1b65a87c32
Support use of dynamic vulkan symbols ( #570 )
2023-06-09 12:48:30 +02:00
Bartosz Taudul
2b191e157e
Fix early exit not initializing values used later on.
2023-06-06 17:46:49 +02:00
Bartosz Taudul
c57b8994f6
Reduce required version of wl_seat protocol to 5.
...
The latest wl_seat protocol version is 9, but the last addition was made
to it in version 5. Wayland is stupid.
2023-05-25 18:48:45 +02:00
Bartosz Taudul
2759f96c0e
Add headers required on FreeBSD.
2023-05-23 23:48:48 +02:00
Bartosz Taudul
c00d8c6211
FreeBSD has 64-bit stat with no need for stat64.
2023-05-23 23:41:39 +02:00
Bartosz Taudul
4e1b198380
FreeBSD has alloca in stdlib.h.
2023-05-23 23:38:34 +02:00
Bartosz Taudul
eca841dfe3
Properly call make from within makefiles.
2023-05-23 22:42:53 +02:00
Bartosz Taudul
6b587e61de
Ignore obj files.
2023-05-22 21:09:38 +02:00
Bartosz Taudul
7299b49dab
Merge pull request #563 from spnda/fix_missing_vulkan_macro
...
Fix: Missing TracyVkContextHostCalibrated overload with Tracy disabled
2023-05-21 21:50:13 +02:00
sean
ca61a1350a
Fix: Missing TracyVkContextHostCalibrated overload with Tracy disabled
2023-05-21 21:47:25 +02:00
Bartosz Taudul
f3d3108d5f
Merge pull request #562 from fran6co/missing_dep
...
fix missing dependendency on install
2023-05-18 12:11:01 +02:00
Francisco Facioni
baf0e69a13
fix missing dependendency on install
2023-05-18 09:39:10 +01:00
Bartosz Taudul
c31bda6e8c
Merge pull request #561 from KristofferC/kc/divide_zero_csvexport
...
prevent divding by zero `csvexport` when number of zones is 1
2023-05-17 14:44:54 +02:00
KristofferC
1fc33b9389
prevent divding by zero when number of zones is 1 in csvexport
2023-05-17 14:21:10 +02:00
Bartosz Taudul
c79154c87b
Extract processing client broadcast messages to a separate function.
2023-05-07 16:11:42 +02:00
Bartosz Taudul
b072dbcdc6
Fix TaskDispatch on wasm.
2023-05-07 16:11:18 +02:00
Bartosz Taudul
64daca9f79
Disable LTO on wasm.
...
wasm-ld: error: /home/wolf/.emscripten_cache/sysroot/lib/wasm32-emscripten/lto/libc-mt.a(ntohs.o): attempt to add bitcode file after LTO.
wasm-ld: error: /home/wolf/.emscripten_cache/sysroot/lib/wasm32-emscripten/lto/libc-mt.a(htonl.o): attempt to add bitcode file after LTO.
2023-05-07 16:10:59 +02:00
Bartosz Taudul
72cfa3e0d1
Fix copy pasta.
2023-05-04 15:16:46 +02:00
Bartosz Taudul
c75f01c90e
Merge pull request #557 from KristofferC/kc/filter_user
...
allow filtering zones in Zone finder based on the user text
2023-05-02 17:46:27 +02:00
Kristoffer
3285c8c960
formatting
2023-05-02 11:25:42 +02:00
Bartosz Taudul
bd2f903c08
Add persistent target FPS option.
2023-05-01 19:09:27 +02:00
Bartosz Taudul
3150a48561
Update NEWS.
2023-05-01 15:50:20 +02:00
Bartosz Taudul
ba41255ccc
Adjust wording.
2023-05-01 15:48:33 +02:00
Bartosz Taudul
d6c5d3f6db
Don't enforce creating at least one worker thread in TaskDispatch.
...
Everything can be confined to a single thread that does job dispatch,
and then waits for the jobs to finish. TaskDispatch has always executed
outstanding work during this wait, so no workers are needed.
2023-05-01 15:44:27 +02:00
Bartosz Taudul
58a6f703af
Update NEWS.
2023-05-01 15:32:16 +02:00
Bartosz Taudul
555b3628ee
Expose configuration options in the UI.
2023-05-01 15:32:16 +02:00
Bartosz Taudul
b68ada2abd
Load/save global config.
2023-05-01 15:13:58 +02:00
Bartosz Taudul
efce727ad4
Add extern "C" to ini.h.
2023-05-01 15:13:00 +02:00
Bartosz Taudul
331c2bd7c0
Configure number of threads in TimelineController.
2023-05-01 14:41:51 +02:00
Bartosz Taudul
a2d470690f
Pass global config to View.
2023-05-01 14:41:38 +02:00
Bartosz Taudul
1dd0341cff
Add global configuration struct.
2023-05-01 14:40:31 +02:00
Bartosz Taudul
cbabb5aa22
Add ini to list of used libraries.
2023-05-01 14:14:34 +02:00
Bartosz Taudul
f68be9bfc3
Add ini to project file.
2023-05-01 14:12:34 +02:00
Bartosz Taudul
2c227af4f3
Add rxi's ini sources.
...
https://github.com/rxi/ini
13a254c9e38def8924a83badfea5eda5a01b9295
2023-05-01 14:08:28 +02:00
Bartosz Taudul
9443544d80
Update speedup.
2023-05-01 14:06:07 +02:00
Bartosz Taudul
96d1a1b0e8
Merge pull request #558 from KristofferC/kc/doc_ext
...
give a hint towards `__attribute__((cleanup)` for RAII type behavior in C
2023-05-01 14:05:14 +02:00
Kristoffer
dc30ed2eaf
give a hint towards __attribute__((cleanup)
for RAII type behavior in C
2023-05-01 13:55:35 +02:00
Kristoffer
73c83906b6
make the histogram take into account filtered zones
2023-05-01 13:31:21 +02:00
Kristoffer
6c5029af78
fix id collision in clear button
2023-05-01 13:13:37 +02:00
Bartosz Taudul
993c78f045
Fix thread context switch offset.
2023-05-01 12:50:48 +02:00
Bartosz Taudul
5019f7d2b4
Force inline GetZoneEnd's fast exit path.
2023-05-01 01:28:32 +02:00
Bartosz Taudul
2e9d8f8215
Check if external threads are local.
...
For some unknown reason, local threads may be attributed to an external
process (at least when profiling on Windows). This causes some problems,
for example the CPU usage graph may show that CPU is pegged by some other
program, when it reality it is the profiled program that uses the CPU time.
Workaround by checking first, if the thread id is known to be local by the
profiler, i.e. if there were user-generated events originating from it.
This still leaves other things, such as the CPU data list, being wrong,
but the CPU data is meant to show raw TID -> PID mapping. If the source
data is wrong, there's not much to fix here.
2023-04-30 13:55:49 +02:00
Bartosz Taudul
0f0ac2d6c5
No longer need glGenerateMipmap.
2023-04-29 13:11:16 +02:00
Bartosz Taudul
e1e4699a52
Load custom mip chain for zigzags.
2023-04-29 13:10:58 +02:00
Bartosz Taudul
657bf7d44c
Add images for more proper zigzag mip chain.
...
1x1 and 2x2 paths are 16 px wide.
4x4 path is 8 px wide.
8x8 path is 4 px wide.
16x16 path is 2 px wide.
32x32 path is 1.5 px wide.
2023-04-29 12:47:29 +02:00
Kristoffer
ef68f3139f
allow filtering zones in Zone finder based on the user text
2023-04-28 16:54:29 +02:00
Bartosz Taudul
b83cb3f2ce
Don't use hacks to determine end time.
2023-04-28 00:00:20 +02:00
Bartosz Taudul
474dc6945e
Draw zigzags using bitmaps.
2023-04-27 23:17:35 +02:00
Bartosz Taudul
62ec968f24
Load zigzag texture.
2023-04-27 23:17:34 +02:00
Bartosz Taudul
42aeece7fd
Allow generating texture mip maps.
2023-04-27 23:17:34 +02:00
Bartosz Taudul
d131f22354
Special-case creating zigzag texture.
2023-04-27 23:17:34 +02:00
Bartosz Taudul
383f1ea8f1
Update OpenGL loader.
2023-04-27 23:17:34 +02:00
Bartosz Taudul
f7b12e2dda
Add zigzag bitmap.
2023-04-27 23:17:34 +02:00
Bartosz Taudul
52e3ae719d
Remove missed plot vector sorting during draw.
2023-04-27 17:36:11 +02:00
Bartosz Taudul
082beb66c9
Update NEWS.
2023-04-26 01:14:31 +02:00
Bartosz Taudul
e42e566dae
Error indicators are no more.
2023-04-26 00:54:09 +02:00
Bartosz Taudul
5f66cd8718
Don't use delay and resolution when processing GPU zones.
2023-04-26 00:50:13 +02:00
Bartosz Taudul
745ca83de6
PreprocessLocks() doesn't use yPos.
2023-04-26 00:47:50 +02:00
Bartosz Taudul
798249c81c
Remove error indicators for CPU zones.
2023-04-26 00:46:45 +02:00
Bartosz Taudul
72b1ff6477
Early exit on empty plots.
2023-04-25 00:35:53 +02:00
Bartosz Taudul
6aa9169901
Reduce number of plot samples from 1024 to 256.
...
Having 1024 samples proved to be too slow.
2023-04-25 00:27:17 +02:00
Bartosz Taudul
3811c8ace4
Remove redundant check.
...
There is already check for zoneFree being non-nullptr, so it makes no sense
to check zoneAlloc for that again, if it has to match zoneFree.
2023-04-25 00:04:59 +02:00
Bartosz Taudul
c8c6646f52
Simplify condition.
2023-04-25 00:03:48 +02:00
Bartosz Taudul
88cb43ad84
Don't write what is never read.
2023-04-25 00:00:30 +02:00
Bartosz Taudul
fa815f3c3b
Remove redundant check.
2023-04-24 23:57:27 +02:00
Bartosz Taudul
def30228c9
Draw plots using preprocessed draw lists.
2023-04-24 23:28:29 +02:00
Bartosz Taudul
96800a2753
Do not merge small groups of plot points (up to three).
2023-04-24 23:28:29 +02:00
Bartosz Taudul
616992a6d5
Do not include DPI scaling when grouping plot points.
2023-04-24 23:28:29 +02:00
Bartosz Taudul
102bb9f8a8
Include before-start plot item, so that the plot doesn't begin abruptly.
2023-04-24 23:28:28 +02:00
Bartosz Taudul
8eb2cc83b3
Push plot draw list to DrawPlot().
2023-04-24 23:28:28 +02:00
Bartosz Taudul
8f5022c3c8
Calculate draw lists for plots.
2023-04-24 23:28:28 +02:00
Bartosz Taudul
0217c06377
Cosmetics.
2023-04-24 23:28:28 +02:00
Bartosz Taudul
396d4f6f3c
Merge pull request #555 from nehasharan/nehasharan/csvexport_messages
...
Added an option to print out "messages" while exporting a .trace file to CSV using "csvexport" utility
2023-04-20 23:46:57 +02:00
Neha Sharan
534baa829d
correcting indentation
2023-04-20 14:27:15 -07:00
Bartosz Taudul
33c3d8229b
Add clang-tidy config.
2023-04-20 22:48:29 +02:00
Bartosz Taudul
ac29cffd3a
Fix assert condition.
2023-04-20 21:41:15 +02:00
Neha Sharan
518fd6ec79
cosmetic change
2023-04-20 10:09:13 -07:00
Neha Sharan
5acf66a2d4
Added an option to print out messages while exporting a .trace file to CSV using csvexport utility
2023-04-19 12:44:43 -07:00
Bartosz Taudul
7797557e8c
Don't pass memname parameter to functions handling allocation changes.
2023-04-16 18:12:14 +02:00
Bartosz Taudul
38b7aab4ef
Remove unused parameters from various payload handling functions.
2023-04-16 18:08:48 +02:00
Bartosz Taudul
3b00e55235
Rename IsThreadStringRetrieved -> IsFailureThreadStringRetrieved.
...
IsThreadStringRetrieved() interface suggested that it can be used for
checking any thread state, as it had an uint64_t id parameter.
The implementation ignored this parameter and checked the status of
failure thread only. This was never an issue because the code using
this function was only checking for the failure thread state.
Fixed by renaming the function to explicitly state what it does and
removing the thread id parameter.
2023-04-16 17:49:21 +02:00
Bartosz Taudul
b64bab197a
No need for GetZoneName() with GpuEvent + srcloc parameters.
2023-04-16 17:46:15 +02:00
Bartosz Taudul
08e6248299
CalcZoneTimeDataImpl() doesn't need zone parameter.
2023-04-16 17:40:16 +02:00
Bartosz Taudul
8d565e46d6
HandleTimelineMouse() doesn't need pxns parameter.
2023-04-16 17:36:04 +02:00
Bartosz Taudul
dec4713854
ListMemData() doesn't use id parameter.
2023-04-16 17:30:53 +02:00
Bartosz Taudul
adb2f9a664
GetFrameTreeItemNoGroup() doesn't need worker paramater.
2023-04-16 17:23:19 +02:00
Bartosz Taudul
31b3fcd1fe
View::InitTextEditor() doesn't need font parameter.
2023-04-16 17:21:03 +02:00
Bartosz Taudul
1c13c1ee8f
ThreadCompress::Load() doesn't need fileVer.
2023-04-16 17:17:07 +02:00
Bartosz Taudul
f60e51c91b
Fix std::move() usage.
2023-04-16 16:47:47 +02:00
Bartosz Taudul
a0221c8660
Pass function objects through const references.
2023-04-16 16:44:18 +02:00
Bartosz Taudul
778d0cb3fb
Socket::ReadUpTo() doesn't support timeouts.
2023-04-16 12:19:48 +02:00
Bartosz Taudul
72dfab80f8
Update ImGui to 1.89.5 + docking.
2023-04-16 00:22:05 +02:00
Bartosz Taudul
5aaa4fcaf7
Use draw list data to draw locks.
2023-04-15 22:56:44 +02:00
Bartosz Taudul
788d9b77fc
Use proper start time to determine if break combining locks.
...
Without this correction the code would combine all lock regions according
to the minimum visibility range rules, and assign the combined area the
highest lock state within all items. This could produce quote long combined
lock regions, where apparently lock contention happened.
Combined lock regions should instead be split to show exactly where the
lock contention is present. Combining is still performed here, but only
within the minimum visibility range.
This new behavior was also present previously, but was mistakenly omitted
during code refactor.
2023-04-15 22:56:44 +02:00
Bartosz Taudul
e68214a88a
Change LockState to bitmask.
2023-04-15 22:56:44 +02:00
Bartosz Taudul
f7a8998663
Push locks draw lists to DrawThread().
2023-04-15 22:56:44 +02:00
Bartosz Taudul
7f301dfec0
Precalculate draw lists for locks.
2023-04-15 22:56:44 +02:00
Bartosz Taudul
9b270c8e11
Another fix for determining if there's CPU usage data to draw.
2023-04-15 22:56:44 +02:00
Bartosz Taudul
f0acb73d09
Add accessor for active lock info window lock id.
2023-04-15 22:56:43 +02:00
Bartosz Taudul
d737b911e9
Make View::Vis() public.
2023-04-15 22:56:43 +02:00
Bartosz Taudul
6e815d13a0
Move common lock helper functions to a separate header.
2023-04-15 22:56:43 +02:00
Bartosz Taudul
4c0e6fe3ca
Merge pull request #544 from simplyWiri/timeline-scrolling-tweak
...
Clamp scrolling to the difference between the deepest zone near the m…
2023-04-13 11:35:08 +02:00
Bartosz Taudul
f17b44c212
Take DPI scaling into account when drawing thread migration lines.
2023-04-07 22:37:23 +02:00
Bartosz Taudul
492e6611b9
No need to perform domain conversion.
...
Pixel values will be needed anyways later on. It doesn't make sense to
perform comparison in time domain here.
2023-04-07 22:37:23 +02:00
Bartosz Taudul
d0ffca56bf
Fix logic determining if there's CPU core usage data to draw.
2023-04-07 22:37:22 +02:00
Bartosz Taudul
1b824797a9
Do not project running regions end time to last time.
...
Just display known running regions, keeping the unended ones infinitely
collapsed. This makes the CPU core usage graph possibly display wrong
data at the end of capture. Note that this behavior was also present in
previous releases.
2023-04-07 22:37:22 +02:00
Bartosz Taudul
1ff9e0012b
Add a note why context switches only have coarse visibility check.
2023-04-05 19:39:39 +02:00
Bartosz Taudul
51f832c031
Don't recalculate sty.
2023-04-05 19:24:58 +02:00
Bartosz Taudul
f48415315a
Build samples draw list only if visible.
2023-04-05 19:03:40 +02:00
Bartosz Taudul
a9ee4c499e
Build messages draw list only if visible.
2023-04-05 18:55:23 +02:00
Bartosz Taudul
4b8ac41345
Calculate CPU data draw lists only if visible.
2023-04-05 18:45:00 +02:00
Bartosz Taudul
bb9219384f
Do not recalculate sty.
2023-04-05 18:44:36 +02:00
Bartosz Taudul
f2a2669ca8
Decouple CPU graph availability from having the draw data.
2023-04-05 18:21:12 +02:00
Bartosz Taudul
9500add83b
Push yPos to TimelineItem::Preprocess().
2023-04-05 18:07:09 +02:00
Bartosz Taudul
77402eb9c2
libbacktrace: minor fixes for zstd decompression (cdb64b68)
2023-04-05 17:24:19 +02:00
Bartosz Taudul
0f19727dc6
libbacktrace: change PC variables from uint64_t to uintptr_t (afe2967c)
2023-04-05 17:23:04 +02:00
Bartosz Taudul
eb8f485f99
Update nfd-extended to 1.0.2.
2023-04-05 17:19:48 +02:00
Bartosz Taudul
ab6c492117
Update zstd to 1.5.5.
2023-04-05 17:16:24 +02:00
Bartosz Taudul
856027a27d
Merge pull request #545 from topolarity/fix-no-sampling
...
linux: respect `TRACY_NO_SAMPLING` for sys-tracing
2023-04-04 23:29:08 +02:00
Cody Tapscott
6249999153
linux: respect TRACY_NO_SAMPLING
for sys-tracing
...
This compile-time flag was being ignored on Linux. This change adds
gating for software-sampled stack trace sampling following the same
pattern as other `TRACY_NO_SAMPLE_*` options.
If `TRACY_NO_SAMPLING=1` is provided as an environment variable,
software stack sampling is also disabled.
2023-04-04 17:22:31 -04:00
Bartosz Taudul
2b7b79352b
Parallelize calculation of per-CPU context switches.
2023-04-02 22:10:22 +02:00
simplyWiri
a8b42488ad
Clamp scrolling to the difference between the deepest zone near the mouse, and the height of the window.
...
This prevents from unncessary scrolling when the trace does not exceed the size of the screen
2023-04-02 19:01:58 +10:00
Bartosz Taudul
a4c200d242
Update manual.
2023-03-30 21:56:02 +02:00
Bartosz Taudul
df1b3e7feb
Update NEWS.
2023-03-30 21:52:29 +02:00
Bartosz Taudul
e2e55a77b5
Add TracySetProgramName() macro to set broadcast contents.
2023-03-30 21:51:00 +02:00
Bartosz Taudul
cade1d9705
Fix library/unix cleanup.
2023-03-30 21:30:25 +02:00
Bartosz Taudul
33a640f848
Name worker threads.
2023-03-25 22:14:34 +01:00
Bartosz Taudul
5eebc5d7cf
Preprocess CPU usage.
...
Things of note: Worker::GetCpuUsage() functionality was moved to
TimelineItemCpuData::PreprocessCpuUsage().
2023-03-25 17:55:15 +01:00
Bartosz Taudul
dcf27f4989
Provide small font height in TimelineContext.
2023-03-25 17:25:10 +01:00
Bartosz Taudul
c0136dbdcc
Don't do unnecessary work if items are not visible.
2023-03-25 16:54:38 +01:00
Bartosz Taudul
13b31db561
Cosmetics.
2023-03-25 16:54:38 +01:00
Bartosz Taudul
e3ec455aba
Decouple check for existence from building draw lists.
...
We need to know if samples, context switches and messages are present to be
able to correctly calculate thread height. However, if the thread is not
visible, it is not necessary to provide a list of items to draw.
2023-03-25 16:52:27 +01:00
Bartosz Taudul
96d60ce626
Change GetNextFrameHeight() to GetHeight().
...
The GetNextFrameHeight() name correctness was very situational. It was
often used in the meaning of "get current frame height".
2023-03-25 15:12:33 +01:00
Bartosz Taudul
7ec68f8b52
Push item visibility to Preprocess().
2023-03-25 15:10:58 +01:00
Bartosz Taudul
8c1b519fa1
Fix wasm cleanup.
2023-03-25 12:26:28 +01:00
Bartosz Taudul
bea3c0f4d1
Don't pass -march=native to emcc.
2023-03-25 12:25:40 +01:00
Bartosz Taudul
241fa68708
Make embed.tracy downloadable.
2023-03-25 12:20:36 +01:00
Bartosz Taudul
ecdecb7012
Ignore wasm build results.
2023-03-25 12:07:53 +01:00
Bartosz Taudul
8908b68557
Fix lockup in context switch processing.
2023-03-25 00:45:13 +01:00
Bartosz Taudul
1e63406ac7
Replace previous iterator manipulation with a boolean.
2023-03-25 00:30:44 +01:00
Bartosz Taudul
efa095e25f
Simplify context switch precalculation.
2023-03-25 00:30:44 +01:00
Bartosz Taudul
734753a941
Fix MinVisNs type in messages preprocessing.
2023-03-24 23:15:11 +01:00
Bartosz Taudul
b3e9ede557
Move context switch minpx calculation to rendering code.
2023-03-24 23:10:58 +01:00
Bartosz Taudul
f2700b2786
Remove rather useless check.
...
The prev == it condition could only fire on the first run of the loop,
and on all subsequent runs prev (=next-1) will never be "it" anymore.
Lack of this condition changes nothing, as the following lines checking
for time distance between next and prev satisfy the same exit condition
(i.e. next-1 will be "it" only if lower_bound does not find anything,
hence next is farther away than MinVisNs).
2023-03-23 22:17:36 +01:00
Bartosz Taudul
e0cc6edbfb
Zone end times must be consistent.
2023-03-23 22:17:33 +01:00
Bartosz Taudul
40e08e9594
Draw messages using precalculated list.
2023-03-23 22:16:47 +01:00
Bartosz Taudul
6c21edd509
Drawing is not finished until function return.
2023-03-23 22:09:19 +01:00
Bartosz Taudul
e321e91c7d
TimelineItemThread can now determine visibility internally.
2023-03-23 21:56:04 +01:00
Bartosz Taudul
a141aafaab
Preprocess thread messages.
2023-03-23 21:47:40 +01:00
Bartosz Taudul
fbc87275e7
Add highlighted message accessor to View.
2023-03-23 21:47:22 +01:00
Bartosz Taudul
b0fb230287
Merge pull request #541 from kklobe/add-meson-version
...
Add version to meson.build 'project()'
2023-03-23 13:58:43 +01:00
Kirk Klobe
70afa6c62c
update make-build.sh to change meson.build version
2023-03-23 07:55:03 -05:00
Kirk Klobe
0e11b40bb2
add version to meson.build 'project()'
...
Meson projects which use tracy as a subproject and specify a version for the dependency will fail due to an undefined version number.
2023-03-22 21:06:03 -05:00
Bartosz Taudul
f55d0d0f55
Fix distance calculation in folding.
...
The folding process starts at the "next" item. The nextTime variable
represents a time point before which everything should be folded, because
all items in that range are smaller than MinVis range.
The lower_bound search finds a new "next" item, which will be beyond the
nextTime range. But nextTime has origin in the previous "next" item, which
may be not the last item in the folding range. If the distance between the
new "next" and the item before is smaller than MinVis, then the new "next"
item is also folded and the folding loop must continue to run.
2023-03-23 00:40:09 +01:00
Bartosz Taudul
aa8175ed47
Include DPI scaling in folding calculations.
2023-03-23 00:39:45 +01:00
Bartosz Taudul
fb032b4f9b
Rewrite CPU zones folding.
2023-03-23 00:17:55 +01:00
Bartosz Taudul
527b5f3311
Rewrite ghost zone folding.
2023-03-23 00:04:12 +01:00
Bartosz Taudul
c75b62e3d6
Rewrite samples folding.
2023-03-22 23:44:23 +01:00
Bartosz Taudul
83ae9868e2
Fix pixel and nanosecond domain mixing.
2023-03-22 22:41:19 +01:00
Bartosz Taudul
80c15c0f9b
Draw samples using precalculated data.
2023-03-22 22:26:20 +01:00
Bartosz Taudul
8bbd50361a
Remove unused variables.
2023-03-22 22:26:19 +01:00
Bartosz Taudul
da6ea47541
Preprocess samples.
2023-03-22 22:26:19 +01:00
Bartosz Taudul
2456ae36bf
Store wait stack in 4 bytes.
2023-03-22 21:55:02 +01:00
Bartosz Taudul
d085f2541a
Fix drawing folded ghost zones.
2023-03-22 20:52:44 +01:00
Bartosz Taudul
a3947fbc57
Use vStart retrieved from ctx.
2023-03-22 20:52:31 +01:00
Bartosz Taudul
1e67c8bce2
Move const out of the loop.
2023-03-22 20:38:43 +01:00
Bartosz Taudul
50ccdc1ef4
Draw thread context switches using precalculated data.
2023-03-22 19:38:58 +01:00
Bartosz Taudul
88f0b9c754
Preprocess thread context switch data.
2023-03-22 19:38:36 +01:00
Bartosz Taudul
060bab357d
Add DrawFinished() to early exit paths.
2023-03-21 02:11:50 +01:00
Bartosz Taudul
e62a383833
Update imgui to 1.89.4 + docking + emscripten glfw fix.
2023-03-20 23:54:46 +01:00
Bartosz Taudul
1e1833edc2
Parallelize timeline item preprocessing.
2023-03-19 18:54:32 +01:00
Bartosz Taudul
66d3c2a472
Draw CPU zones using a precalculated list.
2023-03-19 18:37:27 +01:00
Bartosz Taudul
85d541124e
Inline frames limit was raised to 64 in 7552341ff.
2023-03-19 18:23:04 +01:00
Bartosz Taudul
1d7afbd07e
Calculate which CPU zones to draw beforehand.
2023-03-19 18:23:04 +01:00
Bartosz Taudul
b4893fafb7
Notify TimelineItem when drawing has finished.
2023-03-19 16:07:47 +01:00
Bartosz Taudul
3a2cc0bed0
Allow setting short_ptr pointer.
2023-03-19 15:21:52 +01:00
Bartosz Taudul
6ab4180b5b
Use TimelineContext to draw CPU zones.
2023-03-19 01:14:36 +01:00
Bartosz Taudul
ee5d6f1adb
Use TimelineContext for drawing GPU zones.
2023-03-19 00:28:14 +01:00
Bartosz Taudul
5743bff0af
Use TimelineContext when drawing CPU data.
2023-03-19 00:23:33 +01:00
Bartosz Taudul
26791f55d1
Use TimelineContext data for drawing plots.
2023-03-18 17:11:24 +01:00
Bartosz Taudul
0ecdcbc13c
Move TimelineContext struct definition to a separate header.
2023-03-18 17:03:23 +01:00
Bartosz Taudul
5b3427395e
Add view start and end to TimelineContext.
2023-03-18 17:02:23 +01:00
Bartosz Taudul
0a32929b0b
Move hover flag to TimelineContext.
2023-03-18 16:07:56 +01:00
Bartosz Taudul
c75bec9122
Cosmetics.
2023-03-18 15:59:52 +01:00
Bartosz Taudul
9538fa99ca
Pass yMin, yMax through TimelineContext.
2023-03-15 23:56:57 +01:00
Bartosz Taudul
c81ef177ab
Push timline context to Draw and DrawContents functions.
2023-03-14 02:25:15 +01:00
Bartosz Taudul
b6b6e1edcf
Store common constants in context variable.
2023-03-14 02:25:14 +01:00
Bartosz Taudul
66d8dab925
Preprocess timeline items in controller.
2023-03-14 02:02:50 +01:00
Bartosz Taudul
7dd31ab609
Timeline items may have preprocessing.
2023-03-14 02:02:21 +01:00
Bartosz Taudul
988de5b594
Fix typo.
2023-03-14 01:54:21 +01:00
Bartosz Taudul
fd3d5114e8
Update NEWS.
2023-03-10 01:27:27 +01:00
Bartosz Taudul
7d69103444
Add plot type "power" and Watt format.
...
Note that this technically breaks backwards compatibility of trace files
for 0.9.2 builds. But, whatever, as it's not yet released.
2023-03-10 01:25:41 +01:00
Bartosz Taudul
23705fd84c
Add a reminder to keep interfaces in sync.
2023-03-10 01:07:06 +01:00
Bartosz Taudul
69855c671f
Process power usage messages.
2023-03-10 01:02:41 +01:00
Bartosz Taudul
2971db21e3
Read and report power usage.
2023-03-10 00:23:09 +01:00
Bartosz Taudul
c3e7157cd5
Detect power domains.
2023-03-10 00:05:18 +01:00
Bartosz Taudul
5e2e5eeefb
Add system power use tracking skeleton.
2023-03-09 22:31:31 +01:00
Bartosz Taudul
f428a5b52b
Fix popup of collapsed items near timeline start.
...
There are various changes involved into making this work:
1. Zone size (zsz) is no longer clamped to the timeline viewport area.
This clamping has to be removed to prevent otherwise uncollapsed zones
from apparently becoming small near the viewport borders. Such a small
zone would then be collapsed, resulting in unwanted popping.
Interesingly, only the CPU zones were clamped before. GPU zones were
not.
2. Iteration over visible zones has to start before the visible timeline
viewport area. Without this some zones that would be otherwise
included in the collapsed area (started by a previous zone) may be
fully visible. This causes child zones to be drawn and produces
unwanted popping. (At this point threshold for continuing collapsed
area is greater than threshold for starting it.)
3. Since the iteration now starts before timeline visible area, it may so
happen that everything found will be in a small slice of timeline that
is outside the screen. To fix this, the end time of last found item is
checked against the viewport start time.
It is always valid to access *(zitend-1), as it is in each case done
after null set check (it == zitend).
Similar but simpler fix was also applied to per-thread call stack samples.
2023-03-09 00:38:23 +01:00
Bartosz Taudul
7151c6afd9
Add support for configuring plots to C API.
2023-03-08 23:18:36 +01:00
Bartosz Taudul
9d2f3860e7
Update NEWS.
2023-03-05 19:42:20 +01:00
Bartosz Taudul
22661f79de
Merge pull request #532 from spnda/vulkan_host_ops
...
Add: Alternative Vulkan context constructor
2023-03-05 18:38:07 +01:00
sean
1eb0651255
Note new Vulkan context constructor in documentation
2023-03-05 17:37:32 +01:00
sean
c7ee536209
Add: Alternative Vulkan context constructor
2023-03-05 17:37:22 +01:00
Bartosz Taudul
e77512abe6
Update NEWS.
2023-03-04 23:00:49 +01:00
Bartosz Taudul
107afd78a4
Make collpsed zones gray in source location dynamic color mode.
...
The reasoning is that you want to use the color to see where a zone of
a particular type is placed. When collapsed zones go back to displaying
thread color, you may mistake such region of collapsed zones for something
they aren't.
2023-03-04 22:54:58 +01:00
Bartosz Taudul
2434514a42
Make view mode heuristic work correctly in on demand mode.
2023-03-04 00:37:38 +01:00
Bartosz Taudul
a8cc3cb06b
Use on demand flag in GetFirstTime().
2023-03-04 00:33:52 +01:00
Bartosz Taudul
f9449bc938
Only retrieve frame offset internally in GetFrameNumber().
2023-03-04 00:32:15 +01:00
Bartosz Taudul
8164b776fd
Don't pass GetFrameOffset() results to GetFrameText().
...
Frame offset can be retrieved internally.
2023-03-04 00:29:00 +01:00
Bartosz Taudul
9155b01ddf
Use on demand flag to determine if need to show missed frames.
2023-03-04 00:25:30 +01:00
Bartosz Taudul
5ebc499f49
Add on demand mode flag accessor.
2023-03-04 00:19:58 +01:00
Bartosz Taudul
e92874c0bb
Save "on demand" flag in traces.
...
Previously on demand mode was determined by frame offset parameter being
greater than zero. However, if the application is not pumping frames with
FrameMark macro, the frame index will never increase and the frame offset
parameter stay at zero. It is not possible to distinguish on demand traces
from normal ones in this scenario.
Fix by explicitly saving the on demand flag in trace file and employ the
previous logic to set the flag when importing older traces.
2023-03-04 00:11:32 +01:00
Bartosz Taudul
ed79c4f241
Update NEWS.
2023-03-03 22:56:15 +01:00
Bartosz Taudul
dbcffb8c4f
Print active time in the capture utility.
2023-03-03 22:51:04 +01:00
Bartosz Taudul
256905b7e3
Include first time in CPU thread lifetime calculation.
2023-03-03 22:46:25 +01:00
Bartosz Taudul
28199512cd
Create first memory plot data point at first time.
2023-03-03 22:44:25 +01:00
Bartosz Taudul
3ff158c8be
Worker::GetMemoryDefault() is not needed.
2023-03-03 22:40:14 +01:00
Bartosz Taudul
5ff809cc0a
Calculate plot timeline taking active time span into account.
2023-03-03 22:36:04 +01:00
Bartosz Taudul
3ed543a1b7
Dim timeline before first time.
2023-03-03 22:25:07 +01:00
Bartosz Taudul
b7cefe816e
Restrict keyboard navigation to active time span.
2023-03-03 22:23:30 +01:00
Bartosz Taudul
e659c630fd
Calculate statistics percentages relative to active time span.
2023-03-03 22:19:43 +01:00
Bartosz Taudul
fc7bd61576
Calculate CPU data percentages relative to active time span.
2023-03-03 22:18:08 +01:00
Bartosz Taudul
2f49caaa6e
Show only active time span in on-demand mode.
2023-03-03 22:12:33 +01:00
Bartosz Taudul
1f94ab32df
Exclude missing on-demand frames from on-load zoom.
2023-03-03 21:48:34 +01:00
Bartosz Taudul
c91b052c80
Add first time getter.
2023-03-03 21:48:34 +01:00
Bartosz Taudul
b89bfd44f1
Line stats may not exist, even if the line has attributed cost.
...
One scenario for this to happen is when there's children calls data in the
symbol.
2023-03-01 19:28:58 +01:00
Bartosz Taudul
897aec5b06
Release 0.9.1.
2023-02-26 15:30:03 +01:00
Bartosz Taudul
c53a7f8457
Remove out-of-repository libraries from list in the manual.
2023-02-26 15:24:54 +01:00
Bartosz Taudul
b8c4ce7abb
Update manual.
2023-02-26 15:18:05 +01:00
Bartosz Taudul
8a0b7b59fd
Update NEWS.
2023-02-26 14:42:16 +01:00
Bartosz Taudul
40b648655b
Fix out-of-bounds reference.
2023-02-24 23:06:12 +01:00
Bartosz Taudul
b3186a9b7d
Fix uninitialized variable.
2023-02-24 22:57:14 +01:00
Bartosz Taudul
b0174f2f3a
No privilege elevation is possible on emscripten.
2023-02-20 21:36:18 +01:00
Bartosz Taudul
fad09a452a
Update ImGui to 1.89.3 + docking.
2023-02-14 17:57:14 +01:00
Bartosz Taudul
122f99c042
Merge pull request #524 from Lectem/fixSymbolResolutionWin32
...
Fix race condition for symbols resolution on windows
2023-02-14 16:04:04 +01:00
Lectem
ecdf6adc32
Fix race condition for symbols resolution on windows
...
There might have been new modules loaded by another thread between the `SymInitialize` and `EnumProcessModules` calls.
Since we register the enumerated modules into the cache, we need to make sure that symbols for this module are loaded.
The only way to do that is to call `SymLoadModuleEx`, just like we do when finding new modules after `InitCallstack`.
2023-02-14 15:32:37 +01:00
Bartosz Taudul
15ad9aef78
Update manual.
2023-02-10 20:44:38 +01:00
Bartosz Taudul
33bfd64829
Update NEWS.
2023-02-10 20:42:15 +01:00
Bartosz Taudul
55823df56a
Remove support for AT&T assembly syntax.
2023-02-10 20:41:03 +01:00
Bartosz Taudul
0d6fb703b4
Update zstd to 1.5.4.
2023-02-10 20:33:32 +01:00
Bartosz Taudul
69d0510255
Merge pull request #523 from shapr3d/fix_d3d_build
...
Add missing include in TracyD3D11.hpp
2023-02-10 12:22:05 +01:00
Levente Koncz
f4a5bce28c
Add missing include
2023-02-10 12:15:58 +01:00
Bartosz Taudul
3e30d155ac
Merge pull request #522 from john-plate/fix
...
Fix MSVC compiler warning
2023-02-08 16:39:36 +01:00
John Plate
37bc03fd63
Fix MSVC compiler warning
2023-02-08 13:27:17 +00:00
Bartosz Taudul
9d357430b6
English is hard.
2023-02-01 00:56:31 +01:00
Bartosz Taudul
cc5e97c88d
Bump stb_image.h to 2.28.
2023-01-31 22:55:18 +01:00
Bartosz Taudul
dfc458a8b2
Update NEWS.
2023-01-31 22:45:50 +01:00
Bartosz Taudul
a26df1d810
Merge pull request #519 from tvoeroes/vertical-timeline-rescale-center
...
Vertical timeline centering
2023-01-31 21:02:51 +01:00
Tomaž Vöröš
645d53f254
More correct shouldUpdateCenterItem
.
2023-01-31 20:35:17 +01:00
Tomaž Vöröš
ea1a0299f3
Add switch for vertical centering on/off at compile-time.
2023-01-31 19:48:19 +01:00
Tomaž Vöröš
bca8f28f43
Centering around the mouse pointer.
2023-01-29 19:20:26 +01:00
Tomaž Vöröš
dbefb70db3
Add key to TimelineItem.
2023-01-27 20:00:05 +01:00
Tomaž Vöröš
2df56e9941
Fix off-by-one-frame in timeline item height.
2023-01-27 20:00:05 +01:00
Tomaž Vöröš
7b9b810421
Refactor the use of offset in TimelineItem::Draw() and TimelineController::End().
2023-01-27 20:00:05 +01:00
Bartosz Taudul
52b6af88ca
Merge pull request #517 from mwl4/linux_compilation_fixes
...
Linux compilation fixes
2023-01-25 16:08:37 +01:00
mwl4
1439e93a69
Fix compilation on linux: always initialize ScopedZone::m_connectionId to 0.
...
gcc error:
public/tracy/../client/TracyScoped.hpp:102:9: error: ‘___tracy_scoped_zone.tracy::ScopedZone::m_connectionId’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
if( GetProfiler().ConnectionId() != m_connectionId ) return;
^~
2023-01-25 15:11:49 +01:00
mwl4
789f572332
Fix compilation on linux: use abort() instead of assert( false ).
...
assert() in release configuration resolves to empty code, while abort() is marked as [[noreturn]] and always is available.
gcc error:
error: ‘type’ may be used uninitialized in this function [-Werror=maybe-uninitialized]:
public/tracy/../client/../common/TracyAlign.hpp: In function ‘void tracy::SysTraceWorker(void*)’:
public/tracy/../client/../common/TracyAlign.hpp:22:11: error: ‘type’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
memcpy( ptr, &val, sizeof( T ) );
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from public/TracyClient.cpp:26,
from X.cpp:
public/client/TracySysTrace.cpp:1258:35: note: ‘type’ was declared here
QueueType type;
^~~~
2023-01-25 15:08:51 +01:00
Bartosz Taudul
9788a76473
Merge pull request #516 from pzread/fix-conn-check
...
Fix connection check for capturing
2023-01-25 13:05:27 +01:00
Che-Yu Wu
ceb474e072
Wait on HasData condition to avoid infinite loop.
...
Tracy worker resets the IsConnected to false when finishing the
capture. If it finishes too quick, the waiting loop in capture.cpp
might never see IsConnected = true.
2023-01-25 11:23:04 +00:00
Bartosz Taudul
d47122586c
Fix color channel names in source location message.
2023-01-23 01:23:15 +01:00
Bartosz Taudul
6652999a60
Fix color channels names in zone color message.
2023-01-23 01:18:54 +01:00
Bartosz Taudul
eb7c13e7bb
Fix message color component names in the protocol.
...
Red and blue channels were mislabeled. Otherwise, coding and decoding was
performed correctly, as far as the color channel order described in the manual
is followed by the user.
No change to the binary protocol was made.
2023-01-23 01:07:07 +01:00
Bartosz Taudul
c59413ab56
Query jump and call target addresses.
...
This enables discovery of target function names (and recursively, their
bodies), even if such function has no samples and is not present in any
callstack.
2023-01-22 02:06:43 +01:00
Bartosz Taudul
baaed68bcf
Merge pull request #511 from nagisa/tracy-fiber-binding-ifdef
...
move ___tracy_fiber* declarations to under ifdef
2023-01-19 00:59:16 +01:00
Simonas Kazlauskas
5a7a83d307
move ___tracy_fiber* declarations to under ifdef
...
These functions are only defined when -DTRACY_FIBERS is set. However,
the function is declared regardless of this declaration, which seems
like it could lead to obscure linking errors. I haven’t encountered any
of these specifically, but in my case, this distinction makes it more
difficult to produce correctly auto-generated bindings.
2023-01-19 01:54:26 +02:00
Bartosz Taudul
e4bd88c51f
Update NEWS.
2023-01-17 01:51:30 +01:00
Bartosz Taudul
a2756781c7
Update copyright year.
2023-01-09 00:22:22 +01:00
Bartosz Taudul
2c1b0c6853
Merge pull request #509 from topolarity/count-before-after
...
Add left/right counts to histogram tooltip
2023-01-07 13:44:52 +01:00
Cody Tapscott
cabfe25333
Add left/right counts to histogram tooltip
2023-01-06 21:37:23 -07:00
Bartosz Taudul
f90336a12f
Update screenshots.
2023-01-05 23:36:01 +01:00
Bartosz Taudul
8a9deb69c8
Fix expand-process separators in CPU data window.
2023-01-05 22:48:07 +01:00
Bartosz Taudul
006bfeaf56
Use fixed-width font to draw addresses.
2023-01-05 22:20:56 +01:00
Bartosz Taudul
ecb4a0527a
Do not retrieve call stacks if sampling is not requested.
2023-01-05 21:45:44 +01:00
Bartosz Taudul
b53acde418
Fix type.
2023-01-05 20:34:50 +01:00
Bartosz Taudul
236bbfa8b1
libbacktrace: unpack literals into output buffer (da7eff2)
2023-01-05 20:31:05 +01:00
Bartosz Taudul
d8fc004bfa
libbacktrace: rewrite and simplify main zstd loop (fd9442f)
2023-01-05 20:29:51 +01:00
Bartosz Taudul
08d403e324
libbacktrace: support zstd decompression (c992dd8)
2023-01-05 20:27:36 +01:00
Bartosz Taudul
096293110b
Update ImGui to 1.89.2 + docking.
2023-01-05 19:15:58 +01:00
Bartosz Taudul
04a428ab29
Merge pull request #506 from spnda/master
...
Fix: Don't let make_unique initialise data unnecessarily
2023-01-03 14:17:19 +01:00
Bartosz Taudul
d76e3a364a
Cosmetics.
2023-01-03 13:56:56 +01:00
sean
b597ab5a0a
Fix: Don't let make_unique initialise data unnecessarily
2023-01-03 13:09:26 +01:00
Bartosz Taudul
5a3d7b6f56
Update NEWS.
2023-01-01 16:20:35 +01:00
Bartosz Taudul
6c699d293e
Annotate assembly dumps with source line information.
2023-01-01 16:19:37 +01:00
Bartosz Taudul
bb8393c918
Calculate max operand length.
2023-01-01 14:47:10 +01:00
Bartosz Taudul
1945b1bfa0
Change assembly comment character from ; to #.
...
This makes llvm-mca silent about unknown tokens.
2023-01-01 14:42:50 +01:00
Bartosz Taudul
28eb4a934e
Update manual.
2022-12-30 20:38:29 +01:00
Bartosz Taudul
b8029f7448
Show diff direction and allow reversal.
2022-12-30 20:33:17 +01:00
Bartosz Taudul
166c553af3
Make diff added/deleted files list collapsed by default.
2022-12-30 20:20:52 +01:00
Bartosz Taudul
314b1b48c8
Condense source diff.
2022-12-23 19:56:39 +01:00
Bartosz Taudul
b81d564f66
Add DTL to list of libraries.
2022-12-23 19:40:59 +01:00
Bartosz Taudul
0922dfc7b0
Update NEWS.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
2aee91a142
Update manual.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
1eaebb44cb
Display changes in source files in compare menu.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
205930fd2c
Add file and diff printers.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
5a442f123e
Calculate diff between source files.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
4bb0a1f1ed
Add line splitter.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
cbc85003f7
Add Diff Template Library 1.20.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
bd06d4e104
Build lists of unique source files in comparison menu.
2022-12-23 19:40:58 +01:00
Bartosz Taudul
886456ea44
Load source cache in comparison worker.
2022-12-23 19:40:57 +01:00
Bartosz Taudul
359840bec0
Add source diff radio button to compare menu.
...
Majority of this commit are whitespace changes.
2022-12-23 19:40:57 +01:00
Bartosz Taudul
c12505c19d
Fix TRACY_NO_CALLSTACK on Windows.
2022-12-22 21:17:31 +01:00
Bartosz Taudul
6e70b7c20b
Push keyboard modifiers to ImGui.
2022-12-22 17:48:14 +01:00
Bartosz Taudul
797d5df850
Push key events to ImGui.
2022-12-22 17:39:30 +01:00
Bartosz Taudul
dff2a6d6c2
Implement XKB text compositing.
2022-12-20 22:19:45 +01:00
Bartosz Taudul
b7affdd92d
Create XKB compose table/state.
2022-12-20 21:55:31 +01:00
Bartosz Taudul
0831b3f301
Push focus events to ImGui.
2022-12-20 17:11:15 +01:00
Bartosz Taudul
170a961d8d
Tweak mouse wheel behavior on Wayland.
2022-12-20 16:54:28 +01:00
Bartosz Taudul
b48a9027dd
Add more packages on CI.
2022-12-20 00:54:08 +01:00
Bartosz Taudul
115f286acf
Update CI libraries list.
2022-12-20 00:49:22 +01:00
Bartosz Taudul
cd4156afe7
Update NEWS.
2022-12-20 00:46:22 +01:00
Bartosz Taudul
58f84379d0
Setup Wayland build.
2022-12-20 00:35:43 +01:00
Bartosz Taudul
aa0e899573
Initialize XKB state.
2022-12-20 00:22:27 +01:00
Bartosz Taudul
7106b0c5ef
Hook no-op keyboard handling.
2022-12-19 23:46:08 +01:00
Bartosz Taudul
3b58f5596d
Detect precise (touchpad) scroll events.
...
Currently the wheel axis Y change has little impact, as the zoom in/out logic
assumes wheel events are discrete.
2022-12-19 21:26:59 +01:00
Bartosz Taudul
ac87b05dcb
Fix scroll events direction on Wayland.
2022-12-19 21:11:53 +01:00
Bartosz Taudul
7f00ae8c83
Fix mouse buttons order on Wayland.
2022-12-19 21:10:55 +01:00
Bartosz Taudul
16d9491148
Merge pull request #503 from tvoeroes/timeline-animation-tweaks
...
Timeline animation tweaks
2022-12-19 21:03:18 +01:00
Tomaž Vöröš
1969ef0f43
Reintroduce the vertical scroll-bar reset logic in TimelineController.
2022-12-19 19:05:18 +01:00
Tomaž Vöröš
b4e8e042a8
Fix a code style issue.
2022-12-18 23:30:47 +01:00
Tomaž Vöröš
e4ab6cdaf1
Fix TimelineController height calculation.
2022-12-18 20:45:42 +01:00
Tomaž Vöröš
d6772900ad
Get rid of a non-linearity in TimelineItem resizing animation.
2022-12-18 20:09:15 +01:00
Tomaž Vöröš
0cc6bb4ff9
More pleasant TimelineItem resizing parameters.
2022-12-18 20:06:57 +01:00
Tomaž Vöröš
db6acfe9b5
Change resize logic such that TimelineItem instances "don't chase" each other anymore.
2022-12-18 20:06:10 +01:00
Bartosz Taudul
b80ede3ec6
Limit time delta to 0.1s.
2022-12-11 18:01:32 +01:00
Bartosz Taudul
9e6214350c
Support Hi-DPI mouse cursor.
2022-12-11 17:50:05 +01:00
Bartosz Taudul
1f4562e51d
Support Hi-DPI.
2022-12-11 17:43:41 +01:00
Bartosz Taudul
63ba9cccf2
Track max output scale.
2022-12-11 17:29:28 +01:00
Bartosz Taudul
3d42732795
Track window maximized state.
2022-12-11 16:45:35 +01:00
Bartosz Taudul
d5191ccbd4
Enable alt-space menu on windows.
2022-12-09 19:04:45 +01:00
Bartosz Taudul
ee3d5a94a7
Fix apfel check.
2022-12-09 18:59:01 +01:00
Bartosz Taudul
462d8103aa
Mark activity on window XDG surface reconfiguration.
...
This happens for example when the window is resized, or maximized.
2022-12-04 21:12:50 +01:00
Bartosz Taudul
12a109d303
Use XDG decoration protocol.
2022-12-04 21:12:50 +01:00
Bartosz Taudul
9d7cdf2a29
Add xdg-decoration protocol.
2022-12-04 21:12:50 +01:00
Bartosz Taudul
4e0ad1cab8
Update NEWS.
2022-11-30 20:39:55 +01:00
Bartosz Taudul
ba6416f68c
Merge pull request #497 from pshurgal/detailed_function_names
...
More detailed function names under Clang and GCC
2022-11-30 12:14:46 +01:00
Petr Shurgalin
5ddf62b54e
Customizable source location data
2022-11-30 12:39:50 +02:00
Bartosz Taudul
a27ecd7135
Merge pull request #499 from ReplayCoding/other_thread_name
...
Always fallback to using native thread name...
2022-11-29 22:24:56 +01:00
ReplayCoding
9da24b713c
Always fallback to using native thread name...
...
...even when TRACY_ENABLE is defined.
2022-11-29 12:02:42 -08:00
Bartosz Taudul
a2825c8601
Update ZEN4 CPU name.
2022-11-29 17:06:10 +01:00
Bartosz Taudul
dba85c61b7
Update NEWS.
2022-11-29 17:04:47 +01:00
Bartosz Taudul
d24f768b1f
Update to official uops.info ZEN4 data.
2022-11-29 17:03:29 +01:00
Bartosz Taudul
70e22ad045
Merge pull request #498 from ReplayCoding/crashhandler_fix
...
Fix compile error when TRACY_NO_CRASH_HANDLER is enabled
2022-11-27 22:48:49 +01:00
ReplayCoding
311ad7b061
Fix compile error when TRACY_NO_CRASH_HANDLER is enabled
2022-11-27 13:40:45 -08:00
Bartosz Taudul
7e5ee54f93
On POSIX check if UID is 0.
2022-11-27 22:35:19 +01:00
Bartosz Taudul
6933856157
Update NEWS.
2022-11-27 22:26:13 +01:00
Bartosz Taudul
97c38077cc
Explain it makes no sense to run server with admin rights.
2022-11-27 22:24:42 +01:00
Bartosz Taudul
59f7870345
Track elevation state.
2022-11-27 21:53:47 +01:00
Bartosz Taudul
7e23d873dc
Check elevation status on Windows.
2022-11-27 21:53:47 +01:00
Bartosz Taudul
e1395f5a53
Rename surfaceListener to include xdg part.
2022-11-10 00:02:20 +01:00
Bartosz Taudul
d26ae1fbb5
Manage list of outputs.
2022-11-10 00:00:50 +01:00
Bartosz Taudul
8b9246e312
Add global remove callback.
2022-11-09 23:11:45 +01:00
Bartosz Taudul
89a55a2220
Remove semicolons from lockable macros.
2022-11-09 22:07:36 +01:00
Bartosz Taudul
2c03306341
Always provide Callstack() implementation, even if dummy.
...
This fixes usage with TRACY_HAS_CALLSTACK undefined, allowing compilation of
otherwise unused functions, which are already protected from being called
through macro redirections.
See https://github.com/wolfpld/tracy/pull/492 for more information.
2022-11-09 21:55:41 +01:00
Bartosz Taudul
c0035a492f
Update ImGui to 4d5da74.
2022-11-08 23:47:59 +01:00
Bartosz Taudul
53d54092b0
Implement attention requests.
2022-11-08 01:36:45 +01:00
Bartosz Taudul
a7ba5dd9df
Change xdg-shell to private-code.
2022-11-08 01:04:23 +01:00
Bartosz Taudul
8dafadb267
Add xdg-activation protocol.
2022-11-08 01:04:23 +01:00
Bartosz Taudul
1173cbc639
Move wayland protocol to a subdirectory.
2022-11-08 01:04:23 +01:00
Bartosz Taudul
e6f74c04d6
Wayland cursor handling is fucking stupid.
2022-11-08 00:31:57 +01:00
Bartosz Taudul
e227cfe100
Process pointer events.
2022-11-07 21:46:17 +01:00
Bartosz Taudul
4f7fba1fed
Hook seat.
2022-11-07 01:20:48 +01:00
Bartosz Taudul
9645998a97
Set app id.
2022-11-06 01:33:15 +01:00
Bartosz Taudul
1ccc0c39ea
Delay toplevel creation until after OpenGL initialization.
2022-11-06 01:14:56 +01:00
Bartosz Taudul
4d74968515
Wait for xdg_surface to be configured.
...
Some compositors require configuration event to happen before getting
toplevel.
2022-11-06 01:01:07 +01:00
Bartosz Taudul
a2f774dc20
Downgrade wl_compositor protocol to version 4.
...
Some compositors do not implement protocol in version 5.
2022-11-06 00:43:09 +01:00
Bartosz Taudul
ce797d82d5
Add minimal wayland backend.
2022-11-05 22:41:54 +01:00
Bartosz Taudul
a9be9d65de
Add xdg-shell protocol.
2022-11-05 22:41:26 +01:00
Bartosz Taudul
6c74320b3e
Merge pull request #488 from xxxbxxx/master
...
Added typed plots variants to the C API
2022-11-03 19:28:04 +01:00
xxxbxxx
cadef728d3
Update tracy.tex
...
mention the TracyCPlot variants in the manual.
2022-11-03 19:26:53 +01:00
Bartosz Taudul
e7ac54fba6
Signals are only set if TRACY_NO_CRASH_HANDLER is not defined.
2022-11-03 17:21:09 +01:00
xxxbxxx
a0cb8eb1d5
Added typed plots variants to the C API
2022-11-03 13:47:04 +01:00
Bartosz Taudul
4abb3b5e90
Pressing cancel is not an error.
2022-10-30 00:44:30 +02:00
Bartosz Taudul
a6a265b548
Display notification if there's a problem with file selector.
2022-10-30 00:42:45 +02:00
Bartosz Taudul
11cafbff1d
Expose internal file selector failure state.
2022-10-30 00:36:07 +02:00
Bartosz Taudul
fbfd7e5186
Report if file selector can be displayed.
2022-10-30 00:31:15 +02:00
Bartosz Taudul
343e7b6866
Update NEWS.
2022-10-28 01:30:57 +02:00
Bartosz Taudul
970468f937
Override dlclose() to do nothing.
...
Provide a custom no-op implementation of dlclose(), in order to prevent shared
object data from disappearing from profiler view. The server makes queries for
program executable code, which has to be always available, otherwise wrong
data may be provided, or the program may crash, due to referencing no longer
mapped memory.
The dlclose() documentation states that the function internally decreases the
reference count, and only does unload the shared object when the count reaches
zero. There is no guarantee that the shared object data will be unloaded
immediately after any dlclose call originating from the program. This function
override exploits this fact.
2022-10-28 01:21:52 +02:00
Bartosz Taudul
898140fbda
Don't read payload.extra, if not needed.
2022-10-28 00:34:46 +02:00
Bartosz Taudul
2b4fbd7feb
Update NEWS.
2022-10-28 00:14:22 +02:00
Bartosz Taudul
bae7fb3e88
Drop support for 0.7.x traces.
2022-10-28 00:14:06 +02:00
Bartosz Taudul
96c6898da3
Add 0.9 protocol version to protocol history.
2022-10-27 23:56:54 +02:00
Bartosz Taudul
5a1f5371b7
Release 0.9.0.
2022-10-26 23:23:08 +02:00
Bartosz Taudul
d523c728ea
Do not display unknown PIDs.
2022-10-26 23:23:07 +02:00
Bartosz Taudul
86f88714ae
Add compatibility with previous broadcast versions.
2022-10-26 23:23:07 +02:00
Bartosz Taudul
544caef850
Update NEWS.
2022-10-26 21:48:08 +02:00
Bartosz Taudul
d34af7166e
Remove graphical representation of instruction latencies.
2022-10-26 21:47:17 +02:00
Bartosz Taudul
3afe9a98cf
Move code size to assembly pane.
2022-10-26 21:45:14 +02:00
Bartosz Taudul
19e36f5e80
Condense some more.
2022-10-26 21:33:07 +02:00
Bartosz Taudul
fbf0d47c1c
Condense some text labels.
2022-10-26 19:49:13 +02:00
Bartosz Taudul
762b3a810a
Smaller font for symbol image name.
2022-10-26 19:40:30 +02:00
Bartosz Taudul
0eef0a8313
Fix window focus issues when navigating with WSAD.
2022-10-26 19:33:04 +02:00
Bartosz Taudul
7eba104e12
Sleep in capture when waiting for connection.
2022-10-19 22:00:40 +02:00
Bartosz Taudul
e3eead78a8
Further as-needed compression of jump graph.
2022-10-19 21:33:20 +02:00
Bartosz Taudul
11258fab73
Condense jump arrows, depending on max depth of jump graph.
2022-10-19 01:06:41 +02:00
Bartosz Taudul
33e5e07629
Extract calculation of jump separation.
2022-10-19 01:01:59 +02:00
Bartosz Taudul
11ea081c57
Do not use thousands separator for source line numbers.
2022-10-18 22:18:50 +02:00
Bartosz Taudul
c218e46f83
Update manual.
2022-10-18 22:03:01 +02:00
Bartosz Taudul
d99a428ab3
Update NEWS.
2022-10-18 21:44:32 +02:00
Bartosz Taudul
d90fed8296
Implement resetting selected microarchitecture.
2022-10-18 21:44:08 +02:00
Bartosz Taudul
f6cfbe935d
Resize canvas to fit window on page load.
2022-10-18 21:01:46 +02:00
Bartosz Taudul
b9fee59ac8
Do not hide progress bar, leaving the preload element.
2022-10-18 21:01:01 +02:00
Bartosz Taudul
9bc8580f99
Do not crash on resize when application has not started yet.
2022-10-18 21:00:20 +02:00
Bartosz Taudul
dc6c3962d3
Add software S3TC decoder.
2022-10-15 13:06:08 +02:00
Bartosz Taudul
fdb130651d
Detect if hardware supports S3TC.
2022-10-15 12:56:19 +02:00
Bartosz Taudul
5b1c1119c5
Create icon texture while waiting for icon to load.
2022-10-15 12:16:18 +02:00
Bartosz Taudul
4892c32b40
Fix blur caused by fractional DPI scaling.
2022-10-15 11:57:17 +02:00
Bartosz Taudul
9503280f33
Remove TODO.
2022-10-15 11:45:55 +02:00
Bartosz Taudul
55f2da581a
Check if glfwRequestWindowAttention() is available.
2022-10-15 01:15:22 +02:00
Bartosz Taudul
0f025ab604
Update manual.
2022-10-15 01:06:02 +02:00
Bartosz Taudul
fec84bf5c3
Update NEWS.
2022-10-15 00:44:45 +02:00
Bartosz Taudul
306ef02aa2
Do not limit inline propagation to sample count cost.
2022-10-15 00:43:07 +02:00
Bartosz Taudul
564534c703
Perform fast integer comparison before comparing strings.
2022-10-15 00:42:01 +02:00
Bartosz Taudul
47ec7de479
Propagate inlines for hw sample impact.
2022-10-15 00:39:25 +02:00
Bartosz Taudul
e7da2efdd1
Include hardware samples in inline propagation.
2022-10-15 00:35:51 +02:00
Bartosz Taudul
5db18087f5
Propagate inlines to src line addresses.
2022-10-15 00:27:54 +02:00
Bartosz Taudul
ba34596b91
No cost propagation when symbol is narrowed down to a single function.
2022-10-14 21:36:09 +02:00
Bartosz Taudul
d0d6b8fd8e
Use menus in inline call stack popup.
2022-10-14 19:49:06 +02:00
Bartosz Taudul
27ab25709d
Update imgui to f87e891f.
2022-10-14 19:48:38 +02:00
Bartosz Taudul
f25c43462a
Update NEWS.
2022-10-14 17:38:57 +02:00
Bartosz Taudul
a226446a92
Add local call stack navigation menu to asm lines.
2022-10-14 17:37:06 +02:00
Bartosz Taudul
0f283d5825
Select clicked on asm line.
2022-10-13 23:01:06 +02:00
Bartosz Taudul
2ed4b6ea8d
Update NEWS.
2022-10-13 21:23:01 +02:00
Bartosz Taudul
4c69b21a29
Reverse mouse buttons for jumping in symbol view.
2022-10-13 21:22:46 +02:00
Bartosz Taudul
1419283a91
Make the local callstack more readable.
2022-10-13 21:03:33 +02:00
Bartosz Taudul
2a333b8449
Update NEWS.
2022-10-13 20:57:47 +02:00
Bartosz Taudul
7727a17153
Request attention on disconnect.
2022-10-13 20:49:30 +02:00
Bartosz Taudul
1c5d90c98a
Require attention after load / connect.
2022-10-13 20:47:02 +02:00
Bartosz Taudul
d0968844d8
Only request attention if window has no focus.
2022-10-13 20:44:31 +02:00
Bartosz Taudul
b66c3a0e30
Request attention when save finishes.
2022-10-13 20:42:32 +02:00
Bartosz Taudul
8dec765f5f
Require attention on failure popups.
2022-10-13 20:39:43 +02:00
Bartosz Taudul
94fd3b664e
Add attention callback helper.
2022-10-13 20:36:54 +02:00
Bartosz Taudul
0a7ae94fcb
View::Draw() is no longer static.
2022-10-13 19:50:35 +02:00
Bartosz Taudul
c89c4f46ea
Hook up attention callback.
2022-10-13 19:31:47 +02:00
Bartosz Taudul
575f627136
All View ctor parameters need to be explicitly stated.
2022-10-13 19:30:15 +02:00
Bartosz Taudul
c0c3b58955
Remove dead code.
2022-10-13 19:25:36 +02:00
Bartosz Taudul
4a1e93841d
Add attention request function to windowing backend.
2022-10-13 19:22:21 +02:00
Bartosz Taudul
de3190657e
Make sure window redraw is active on refresh callback.
2022-10-13 19:08:37 +02:00
Bartosz Taudul
b88ef29792
Make sure source file data is properly tracked.
2022-10-13 19:00:22 +02:00
Bartosz Taudul
fc85e46f31
Always fill source code query queue when performing a query.
...
Previous implementation made these two events separate.
2022-10-13 18:15:04 +02:00
Bartosz Taudul
a85c0e18d2
Decouple source code retrieval from the profiler thread.
...
This will prevent apparent freezes of the profiler when debuginfod queries are
made.
2022-10-13 00:30:17 +02:00
Bartosz Taudul
6ca1c98655
Handle symbol thread crashes.
...
Should the symbol thread crash, mark that it is gone. This will allow the
profiler to transmit crash call stack, including resolved symbol names and
locations (which will resolve on the main profiler thread).
2022-10-13 00:30:17 +02:00
Bartosz Taudul
9657bdec72
Initialize rpmalloc properly in symbol worker.
2022-10-12 23:51:50 +02:00
Bartosz Taudul
4416dff342
Increase extra data in SymbolQueueItem to 64 bit.
2022-10-12 22:23:06 +02:00
Bartosz Taudul
f64fb95a77
Fix preprocesor condition.
2022-10-12 22:05:19 +02:00
Bartosz Taudul
8ca4bc761d
s_symbolTid is only available if crash handler is there.
2022-10-12 19:56:46 +02:00
Bartosz Taudul
a235dca7ea
Cleanup.
2022-10-12 01:42:22 +02:00
Bartosz Taudul
816101a72f
Update NEWS.
2022-10-12 00:46:00 +02:00
Bartosz Taudul
70dd37bbea
Display local call stack for assembly lines.
2022-10-12 00:45:05 +02:00
Bartosz Taudul
c041b962c0
Construct fake callstack frames for code location data.
2022-10-12 00:27:12 +02:00
Bartosz Taudul
ed455339b3
Remove codeAddressToLocation map.
2022-10-12 00:13:07 +02:00
Bartosz Taudul
0b84b50d9f
Remove locationCodeAddressList map from Worker.
...
Mapping of source code locations to code addresses is now performed
dynamically during disassembly in SourceView.
2022-10-12 00:13:07 +02:00
Bartosz Taudul
57e039f96c
Restore building code symbol map.
2022-10-11 23:04:06 +02:00
Bartosz Taudul
383ecb6a12
Remove CodeLocation query and CodeInformation response.
2022-10-11 22:56:23 +02:00
Bartosz Taudul
ac6902501a
Get location for address from callstack frame data.
2022-10-11 21:47:28 +02:00
Bartosz Taudul
4d0768ba9d
Replace code location queries with callstack frame ones.
2022-10-11 21:40:45 +02:00
Bartosz Taudul
c9adadf86a
When opening a new trace, set view to whole time span.
2022-10-10 22:55:56 +02:00
Bartosz Taudul
4f3f0e1aae
Update NEWS.
2022-10-10 00:09:58 +02:00
Bartosz Taudul
05f4efa2f4
Display PID in available client tooltip.
2022-10-09 22:01:09 +02:00
Bartosz Taudul
76213331f4
Store PID in broadcasting clients data.
2022-10-09 21:59:18 +02:00
Bartosz Taudul
f2f36876e1
Remove unnecessary check.
2022-10-09 21:59:10 +02:00
Bartosz Taudul
f509ed1561
Include PID in broadcast message.
2022-10-09 21:54:54 +02:00
Bartosz Taudul
ff36c9004f
Update manual.
2022-10-09 21:36:33 +02:00
Bartosz Taudul
c34062cd78
Update NEWS.
2022-10-09 21:21:54 +02:00
Bartosz Taudul
60f0ed8c0e
Include child calls in inline propagation.
2022-10-09 21:12:47 +02:00
Bartosz Taudul
720f339784
Implement inline cost propagation down the stack.
2022-10-09 21:09:25 +02:00
Bartosz Taudul
dbad69cd4f
Add inlines propagation UI.
2022-10-09 21:04:41 +02:00
Bartosz Taudul
a87cbacbc1
Fix offset of source code separator line.
2022-10-09 13:45:20 +02:00
Bartosz Taudul
17d3ac0141
Disable assertions in release builds.
2022-10-08 14:54:54 +02:00
Bartosz Taudul
63743f2760
Don't listen for broadcasts on emscripten.
2022-10-08 14:51:21 +02:00
Bartosz Taudul
fadd103169
Disable update check on emscripten.
2022-10-08 14:44:53 +02:00
Bartosz Taudul
2b6c53a73e
Set initial memory size to 384 MB to prevent growth at start.
2022-10-08 14:43:12 +02:00
Bartosz Taudul
a9afe18c26
Limit running environment support to web.
2022-10-08 14:34:44 +02:00
Bartosz Taudul
6c507a123a
Enable growing of wasm heap.
2022-10-08 14:33:49 +02:00
Bartosz Taudul
f476e6a0f7
Ditto on windows.
2022-10-08 14:09:58 +02:00
Bartosz Taudul
2c289dbb84
Do not freeze symbol thread.
2022-10-08 14:08:31 +02:00
Bartosz Taudul
4399656e83
__GNUC__ version checks are not valid on clang.
2022-10-08 14:04:54 +02:00
Bartosz Taudul
2595f983e6
Include gcc patchlevel in compiler version report.
2022-10-08 14:04:54 +02:00
Bartosz Taudul
6f9dfc8469
Use dladdr, not libbacktrace in fast callstack decode path.
...
DecodeCallstackPtrFast() may be called outside the symbol processing thread,
for example in the crash handler. Using the less-capable dladdr functionality
doesn't have a big impact here. Callstack decoding in this context is used to
remove the uninteresting top part of the callstack, so that the callstack ends
at the crashing function, and not in the crash handler. Even if this
functionality would be impacted by this change, the damage done is close to
none.
The other alternative is to use locking each time a libbacktrace is to be
used, which does not seem to be worthy to do, considering that the problem
only occurs in a very rare code path.
NB everything was working when it was first implemented, because back then the
callstack decoding was still performed on the main thread, and not on a
separate, dedicated one.
2022-10-08 13:22:56 +02:00
Bartosz Taudul
94ccc37979
Bump available heap to 2GB.
2022-10-06 18:12:51 +02:00
Bartosz Taudul
9f60b53729
Enable file selector on emscripten.
2022-10-06 18:12:51 +02:00
Bartosz Taudul
b369c784a6
Disable closure compiler.
2022-10-06 18:12:50 +02:00
Bartosz Taudul
ec0757c03a
Change file selector to work with callbacks.
2022-10-06 18:12:50 +02:00
Bartosz Taudul
a4e39f3d5f
Enable redraw after screen resize.
2022-10-06 17:32:25 +02:00
Bartosz Taudul
5d7cf137cf
Convert std::string to const char* in printf call.
2022-10-05 23:45:59 +02:00
Bartosz Taudul
754f7a5167
Add makefile target for starting httpd.
2022-10-05 23:44:39 +02:00
Bartosz Taudul
3ca61ad227
Extract file selector functionality.
2022-10-05 22:50:17 +02:00
Bartosz Taudul
5940af8995
Support opening web pages on emscripten.
2022-10-05 01:22:35 +02:00
Bartosz Taudul
7552341ff0
Increase possible inline stack size to 64 elements.
2022-10-04 22:16:20 +02:00
Bartosz Taudul
5874ac11f7
Sample parents show function, not symbol.
2022-10-04 22:03:05 +02:00
Bartosz Taudul
05b639e3b6
Use 32-bit vertex indices on emscripten.
2022-10-02 18:24:26 +02:00
Bartosz Taudul
e530103f43
Cosmetic fixes.
2022-10-02 18:08:27 +02:00
Bartosz Taudul
653d3bb358
Add interactive demo link.
2022-10-02 14:15:13 +02:00
Bartosz Taudul
cf61fbf7ba
Support hidpi.
2022-10-02 13:51:28 +02:00
Bartosz Taudul
4b5a823d39
Adapt render size to fit browser window.
2022-10-02 13:40:14 +02:00
Bartosz Taudul
73f6e73c51
Add basic html wrapper page.
2022-10-02 12:59:44 +02:00
Bartosz Taudul
6dd434a2d6
Run closure compiler on javascript.
2022-10-02 01:02:27 +02:00
Bartosz Taudul
75b95233ea
Preload embedded trace on emscripten.
2022-10-02 00:41:08 +02:00
Bartosz Taudul
dff45f1dc1
Just one compression worker thread on emscripten.
2022-10-02 00:40:43 +02:00
Bartosz Taudul
d33c7e5508
Update NEWS.
2022-10-01 13:00:02 +02:00
Bartosz Taudul
7cdc60886c
Add ZEN4 to microarchitecture selector.
2022-10-01 12:45:11 +02:00
Bartosz Taudul
62c4b70aaa
Reenable ZEN4 cpuid.
2022-10-01 12:40:57 +02:00
Bartosz Taudul
ccb5fefca2
Add ZEN4 microarchitecture data.
2022-10-01 12:40:05 +02:00
Bartosz Taudul
c2142279f1
But do not expose it yet.
2022-10-01 01:42:17 +02:00
Bartosz Taudul
b3dcd57087
Add ZEN4 cpuid.
2022-10-01 01:39:53 +02:00
Bartosz Taudul
ffa48be2d9
Add emscripten build files.
2022-09-30 01:06:34 +02:00
Bartosz Taudul
78169326b3
Setup main emscripten loop.
2022-09-30 00:57:07 +02:00
Bartosz Taudul
863b36d04b
Emscripten expects GLES2 (WebGL 1).
2022-09-30 00:39:42 +02:00
Bartosz Taudul
1d482a417d
Use std::move(), not move().
2022-09-29 21:02:05 +02:00
Bartosz Taudul
73fe208b97
Remove unused variable.
2022-09-29 21:02:05 +02:00
Bartosz Taudul
c8c198cae7
Drop support for old, broken compilers.
...
These version macros report 4.2.1 on clang.
2022-09-29 20:59:31 +02:00
Bartosz Taudul
1dd6a778fb
Allow manual disabling of libtbb linkage.
2022-09-29 01:41:35 +02:00
Bartosz Taudul
8b17522dff
Use proper glfw version checks.
2022-09-29 00:45:48 +02:00
Bartosz Taudul
05a3ab8a33
Mark activity when ImGui windowing navigation target is on.
2022-09-28 17:57:29 +02:00
Bartosz Taudul
6fa0f55a83
Update NEWS.
2022-09-28 01:36:58 +02:00
Bartosz Taudul
26d269e857
Non-empty list of client broadcasts marks activity.
2022-09-28 01:34:31 +02:00
Bartosz Taudul
c8c684e9bc
Clear list of clients when View is active.
2022-09-28 01:34:20 +02:00
Bartosz Taudul
b24506492a
Move client broadcasts processing earlier in code.
2022-09-28 01:31:38 +02:00
Bartosz Taudul
f5abdd489d
Mark activity on HTTP response.
2022-09-28 01:24:41 +02:00
Bartosz Taudul
bc30786c05
Mark activity when playback is underway.
2022-09-28 01:17:08 +02:00
Bartosz Taudul
37442a7671
Mark activity when animating message marker.
2022-09-28 01:13:40 +02:00
Bartosz Taudul
64dbaf9d84
Mark activity on buzz anim in zone trace.
2022-09-28 01:12:06 +02:00
Bartosz Taudul
29c7b5f259
Mark activity on frame times histogram highlight.
2022-09-28 01:12:06 +02:00
Bartosz Taudul
1db9681ee2
Mark activity when lock is highlighting.
2022-09-28 01:12:05 +02:00
Bartosz Taudul
fd93f244f0
Mark activity when find zone histogram is highlighting.
2022-09-28 01:12:05 +02:00
Bartosz Taudul
8117d7d4d4
Mark activity when buzz anim is enabled.
2022-09-28 01:12:04 +02:00
Bartosz Taudul
6552108f52
BuzzAnim Update() returns whether it's active.
2022-09-28 01:12:03 +02:00
Bartosz Taudul
499f51f025
Mark activity when animating timeline items.
2022-09-28 01:12:03 +02:00
Bartosz Taudul
09d7b7336f
Mark activity when notification area is in use.
2022-09-28 00:48:45 +02:00
Bartosz Taudul
1f8de433ec
Mark activity when zoom animation is underway.
2022-09-28 00:43:12 +02:00
Bartosz Taudul
03a17c621e
Mark activity when waiting dots are drawn.
2022-09-28 00:36:01 +02:00
Bartosz Taudul
fb4d76469b
Activity tracking global variable.
2022-09-28 00:36:00 +02:00
Bartosz Taudul
c7ec2a9e0e
Check for popup background fade animation.
2022-09-28 00:26:29 +02:00
Bartosz Taudul
b3e9a03856
Check for activity in View.
2022-09-28 00:26:03 +02:00
Bartosz Taudul
a8276c41c3
Allow checking whether View was active.
...
Currently this only checks if client connection is active.
2022-09-27 22:31:53 +02:00
Bartosz Taudul
a8be0bc91e
Disable cursor blinking.
2022-09-27 22:13:31 +02:00
Bartosz Taudul
258fd73e6e
Remove dead code.
2022-09-27 22:12:18 +02:00
Bartosz Taudul
232fb5aaa4
Disable screen redraw when there are no input events.
2022-09-27 22:02:08 +02:00
Bartosz Taudul
1e7c6e3f49
Handle iconification by waiting for events.
2022-09-27 17:32:01 +02:00
Bartosz Taudul
ff8a85ea2d
Use small font for debug data in about window.
2022-09-26 01:15:37 +02:00
Bartosz Taudul
e7184565b3
No need for more than one space between mnemonic and operands.
2022-09-24 00:39:04 +02:00
Bartosz Taudul
da58c1f55e
Make source location display a bit shorter in asm line.
2022-09-24 00:37:23 +02:00
Bartosz Taudul
55e78ba4f7
Use ellipsis for more condensed source file in asm line.
2022-09-24 00:29:38 +02:00
Bartosz Taudul
8c5dc57359
Add ellipsis to fixed font atlas.
2022-09-24 00:29:21 +02:00
Bartosz Taudul
7ea063539c
Take less space for asm address in relative mode.
2022-09-21 20:39:35 +02:00
Bartosz Taudul
3d0e461140
Assembly lines spacing improvements.
2022-09-21 20:26:17 +02:00
Bartosz Taudul
3fa5b8f15a
Display local jump target source code preview in tooltip.
2022-09-19 00:33:45 +02:00
Bartosz Taudul
0596fac6f2
Display inline function name in local jump label.
2022-09-19 00:33:18 +02:00
Bartosz Taudul
8d626d25f0
Display call target function name more prominently.
2022-09-18 01:12:52 +02:00
Bartosz Taudul
cdcee49776
Make the ARM registers list more complete.
2022-09-17 23:31:42 +02:00
Bartosz Taudul
8da6105ee4
Cosmetics.
2022-09-17 23:31:34 +02:00
Bartosz Taudul
4cf096d883
Mark privileged instructions in the tooltip.
2022-09-17 23:06:16 +02:00
Bartosz Taudul
4c086e94e4
Different coloring for jump/call/ret or privileged mnemonics.
2022-09-17 22:59:50 +02:00
Bartosz Taudul
dc31ebfd9c
Use proper list of x64 registers.
2022-09-17 22:36:29 +02:00
Bartosz Taudul
2bd987b783
Use common colors.
2022-09-17 22:14:35 +02:00
Bartosz Taudul
823557fe74
Update NEWS.
2022-09-17 22:06:35 +02:00
Bartosz Taudul
62622bd65d
Update manual.
2022-09-17 22:06:01 +02:00
Bartosz Taudul
a8a4fe21b3
Adjust assembly register selection colors.
2022-09-17 22:03:41 +02:00
Bartosz Taudul
79a1f5cd80
Tokenize assembly operands.
2022-09-17 21:54:50 +02:00
Bartosz Taudul
0a69ef3b9c
Print asm operands taking tokens into account.
2022-09-16 00:30:56 +02:00
Bartosz Taudul
d823a24534
Dummy tokenization of asm operands.
2022-09-16 00:30:29 +02:00
Bartosz Taudul
4913f0e1e6
Greatly simplify asm line text drawing.
...
This change also colors asm mnemonics and jump labels. Asm operands are not
yet colored.
2022-09-15 23:36:31 +02:00
Bartosz Taudul
a45293d6ff
Enumerate asm token color names.
2022-09-15 23:36:30 +02:00
Bartosz Taudul
31b5a464cd
Add assembly color tables.
2022-09-15 23:36:30 +02:00
Bartosz Taudul
6dc7c8c6b5
Add assembly keyword maps.
2022-09-15 23:36:29 +02:00
Bartosz Taudul
aa017e6a76
Merge pull request #468 from sherief/exception-handler-fix
...
Windows exception handler allows other handlers to be called.
2022-09-15 11:33:39 +02:00
Bartosz Taudul
0fc1c0f927
Make symbol thread exit status more robust.
2022-09-13 21:07:03 +02:00
Bartosz Taudul
048e20b68c
Check for macro existence before checking its value.
2022-09-11 13:09:59 +02:00
Sherief Farouk
e8b3d22d76
Windows exception handler allows other handlers to be called.
...
The profiled app might install handlers to track crashes, write minidumps,
etc. - this patch makes sure the app's exception handler is called when
a crash happens while profiling with Tracy.
2022-09-10 17:16:58 -07:00
Bartosz Taudul
c27bcc524c
Store syntax colors as 32-bit uints.
2022-09-11 00:46:27 +02:00
Bartosz Taudul
f8cf7ff45a
Do not use deprecated grep variants.
2022-09-11 00:32:07 +02:00
Bartosz Taudul
9372d9fb28
Collect asm operation type data.
2022-09-11 00:30:37 +02:00
Bartosz Taudul
ad23932e9f
Merge pull request #467 from simplyWiri/fix-missing-tree-pop
...
Add missing TreePop in function which is called from inside a TreeNode
2022-09-10 12:05:05 +02:00
simplyWiri
830e7162eb
Add missing TreePop in function which is called from inside a TreeNode
2022-09-10 17:09:04 +10:00
Bartosz Taudul
ae0fe3cc93
Merge pull request #466 from Pilzschaf/gpu_c_api_improvements
...
Added gpu zone begin non-alloc and callstack variants to the C API
2022-09-09 22:59:30 +02:00
Pilzschaf
a55fd64a5b
Added gpu zone begin non-alloc and callstack variants to the C API
2022-09-09 21:23:07 +02:00
Bartosz Taudul
097b68e7bb
Merge pull request #465 from Pilzschaf/gpu_c_api_improvements
...
Added gpu calibration to the C API
2022-09-09 19:22:25 +02:00
Pilzschaf
823519a1de
Fix indentation
2022-09-09 18:45:54 +02:00
Pilzschaf
41a1ac203b
Added gpu calibration to the C API
2022-09-09 18:40:17 +02:00
Bartosz Taudul
eee6cb06fa
Align jump arrows to pixel boundaries.
2022-09-09 00:32:13 +02:00
Bartosz Taudul
0e930a2c13
Prevent thick zone highlight from going outside the zone box.
2022-09-09 00:18:40 +02:00
Bartosz Taudul
5bd3f3de5f
Don't use space for frame sets that are out of view range.
...
This becomes problematic at the end of the range, as continuous frames do not
have an "end", but rather essentially persist until the last recorded event.
2022-09-07 23:35:27 +02:00
Bartosz Taudul
f16c64872b
Update manual.
2022-09-05 20:35:39 +02:00
Bartosz Taudul
4fd4baf557
Update NEWS.
2022-09-05 20:32:24 +02:00
Bartosz Taudul
48e7a17d1d
Clicking on a CPU data thread will make it visible.
2022-09-05 20:30:03 +02:00
Bartosz Taudul
d2ab66195c
Allow changing timeline item collapsed state.
2022-09-05 20:29:45 +02:00
Bartosz Taudul
a975687d5f
Update manual.
2022-09-05 20:18:00 +02:00
Bartosz Taudul
02a47fb5bd
Update NEWS.
2022-09-05 20:15:20 +02:00
Bartosz Taudul
5200ea2c84
Hide frame related information if no frame instrumentation.
2022-09-05 20:12:36 +02:00
Bartosz Taudul
23ebce2862
Implement checking if frames are in use.
2022-09-05 20:12:12 +02:00
Bartosz Taudul
53632ccb5b
Cleanup.
2022-09-04 14:56:12 +02:00
Bartosz Taudul
44efb15df1
Remove VisData.
...
Its functionality is now incorporated into TimelineItem. For purposes of
maintaining visibility of frame sets and locks a much simpler ptr -> bool map
is now used.
2022-09-04 14:46:51 +02:00
Bartosz Taudul
ad2fc03125
Migrate CPU data to timeline item system.
2022-09-04 14:31:02 +02:00
Bartosz Taudul
827b390e34
Add mutable ViewData accessor.
2022-09-04 14:31:01 +02:00
Bartosz Taudul
9c464e9f05
Make timeline item visibility functions virtual.
2022-09-04 14:31:00 +02:00
Bartosz Taudul
135d3b7f30
Fix GPU contexts in options menu.
2022-09-04 13:52:53 +02:00
Bartosz Taudul
06d0989161
Add GPU index accessor.
2022-09-04 13:52:17 +02:00
Bartosz Taudul
9fdafb2ecc
Make the GPU context name primary focus.
2022-09-04 13:47:06 +02:00
Bartosz Taudul
60579d6334
Migrate drawing GPU data to the new timeline item system.
2022-09-04 13:39:20 +02:00
Bartosz Taudul
ec3e88ce53
Manage GPU index counter in View.
2022-09-04 13:37:19 +02:00
Bartosz Taudul
2711af39e5
Check if zoom range is valid.
...
This is important for GPU zones, which may have broken timing data.
2022-09-04 13:16:26 +02:00
Bartosz Taudul
e41deb1ff6
Check item map too for hidden items.
2022-09-03 23:43:26 +02:00
Bartosz Taudul
10faf16aee
Allow access to item map.
2022-09-03 23:43:17 +02:00
Bartosz Taudul
b66e10972a
Add visibility accessor to TimelineItem.
2022-09-03 23:42:52 +02:00
Bartosz Taudul
ca125bd44c
Collapse Tracy threads by default.
...
Note that this will likely work only when loading existing traces. In live
captures the thread name may not have yet been retrieved at the point when
timeline item insertion occurs, which will prevent the check from succeeding.
2022-09-03 23:35:35 +02:00
Bartosz Taudul
ec3dcaeef3
Migrate drawing CPU threads to the new timeline item system.
2022-09-03 23:28:54 +02:00
Bartosz Taudul
e3007062fc
Add support for drawing timeline item overlays.
2022-09-03 23:24:00 +02:00
Bartosz Taudul
8e713e6366
Limit access to internal methods.
2022-09-03 23:17:57 +02:00
Bartosz Taudul
5cbf06ba31
Only clip timeline item contents.
...
Timeline item header may overflow over other items, e.g. the crash marker is
taller than the header line.
2022-09-03 23:09:23 +02:00
Bartosz Taudul
840709fe46
Push pxns to HeaderExtraContents().
2022-09-03 22:55:54 +02:00
Bartosz Taudul
3ee928a7d1
Fix mass visibility changing.
2022-09-03 22:08:08 +02:00
Bartosz Taudul
d65bde99a2
Hide timeline item if it had no content.
2022-09-03 21:57:56 +02:00
Bartosz Taudul
3780c47bb6
Check if plot is in drawing range.
2022-09-03 21:46:00 +02:00
Bartosz Taudul
0e94ed8fc6
DrawContents reports if anything was drawn.
2022-09-03 21:41:38 +02:00
Bartosz Taudul
eaa78de534
Don't draw separator when timeline item is collapsed.
2022-09-03 21:14:56 +02:00
Bartosz Taudul
5c90fe7a6e
Use the indented spacing.
...
Plots for some reason were packed tighter.
2022-09-03 21:11:36 +02:00
Bartosz Taudul
6abce4e0c9
Pass hover parameter to HeaderExtraContents().
2022-09-03 20:04:24 +02:00
Bartosz Taudul
6e36469840
Add non-View-dependent thread color getter.
2022-09-03 19:28:50 +02:00
Bartosz Taudul
0c4ca4cd69
Add function for highlighting a thread.
2022-09-03 19:25:02 +02:00
Bartosz Taudul
e19a3a8767
Implement check for empty plot.
2022-09-03 19:18:01 +02:00
Bartosz Taudul
450fbf5ea0
Draw timeline item separator lines with proper colors.
2022-09-03 19:06:06 +02:00
Bartosz Taudul
fa20700825
Replace timeline item open/close triangles with font carets.
2022-09-03 18:53:05 +02:00
Bartosz Taudul
119152aac1
Worker must be mutable.
...
This is to allow use of various accessors that cache results, etc.
2022-09-03 18:34:11 +02:00
Bartosz Taudul
b481bb367c
Switch plot drawing to the timeline items system.
2022-09-03 17:51:33 +02:00
Bartosz Taudul
55a82ea714
Make plot color/value formatting generic utilities.
...
Previous implementations of these functions (in TracyView) are still used
throughout the code. They will be removed in subsequent commits.
2022-09-03 17:51:32 +02:00
Bartosz Taudul
1736fb387a
Allow access to timeline items stored in the controller.
...
This is similar to the previously existing Vis() access function.
2022-09-03 17:51:32 +02:00
Bartosz Taudul
9355a14657
New TimelineController begin/end logic.
2022-09-03 17:51:31 +02:00
Bartosz Taudul
8034fce416
Allow adding timeline items to TimelineController.
...
TimelineItem class is basically an expansion of the previous VisData
structure. After the transition process is finished the VisData map will be
removed, as it will no longer have any function.
2022-09-03 17:51:30 +02:00
Bartosz Taudul
449dff0eca
Store View and Worker in TimelineController.
2022-09-03 17:51:30 +02:00
Bartosz Taudul
b42182f0a8
Add base class for timeline items.
2022-09-03 17:51:29 +02:00
Bartosz Taudul
427dc4fffa
Make View::ZoomToRange() public.
2022-09-03 17:51:26 +02:00
Bartosz Taudul
3207df8236
Merge pull request #460 from Krzmbrzl/revamp-cmake
...
CMake: Fix invalid syntax
2022-09-03 17:51:09 +02:00
Robert Adam
92137e8050
CMake: Fix invalid syntax
...
In 1f7656e8454ae96f1657cf91abe8b01dc667689c I introduced a new option
but for setting its default value, I accidentally introduced invalid
cmake syntax that blows off as soon as BUILD_SHARED_LIBS is actually
defined to be non-empty.
2022-09-03 17:13:31 +02:00
jkriegshauser
59ae71df2b
Import frame messages ( #459 )
...
Co-authored-by: Joshua Kriegshauser <joshuakr@nvidia.com>
Co-authored-by: Bartosz Taudul <wolf@nereid.pl>
2022-09-02 19:44:37 +02:00
Bartosz Taudul
8b75a3fab0
Fix callstackPayload overflow when data to read size was POT.
2022-09-02 18:52:32 +02:00
Bartosz Taudul
2f44f65e02
Don't copy short_ptr.
2022-09-02 18:47:13 +02:00
Bartosz Taudul
66255dc950
Update NEWS.
2022-09-02 01:28:08 +02:00
Bartosz Taudul
2cc5eff9a2
Normalize symbol paths on libbacktrace systems.
2022-09-02 01:23:29 +02:00
Bartosz Taudul
8cc43284bd
Add path normalization function.
2022-09-02 01:23:14 +02:00
Bartosz Taudul
165cc22115
Merge pull request #454 from Krzmbrzl/revamp-cmake
...
CMake: Add option to explicitly set lib type
2022-08-31 21:17:46 +02:00
Bartosz Taudul
5289a9c999
Merge pull request #453 from Krzmbrzl/fix-cpuid-compile-error
...
Fix cpuid symbol redefinition on older GCC versions
2022-08-31 21:14:58 +02:00
Robert Adam
1f7656e845
CMake: Add option to explicitly set lib type
...
With this new option, it is now possible to explicitly build Tracy as a
shared or static library independent from the BUILD_SHARED_LIBS
variable, which always acts on a global scope (thus, affecting all CMake
targets).
If the options is not explicitly given, it will default to whatever
BUILD_SHARED_LIBS would indicate, leaving the default behavior
unchanged.
2022-08-31 18:06:51 +02:00
Robert Adam
0aeadb4c49
Use TRACY_PUBLIC_DIR throughout
2022-08-31 18:06:22 +02:00
Robert Adam
ece8779362
Fix cpuid symbol redefinition on older GCC versions
...
Since commit 940f32c1a892dd194c3c6d66bb3550149de919fc building the Tracy
library on Linux using a GCC version < 11 would result in compile errors
due to symbol redefinitions of __get_cpuid_max, __get_cpuid and
__get_cpuid_count.
This is because prior to GCC 11 the cpuid.h header file did not have any
include guards and thus including this header more than once would
produce the abovementioned errors.
To work around this issue, including cpuid.h has been wrapped into a
custom header file that itself uses include guards and thus shields
cpuid.h from being included multiple times.
Fixes #452
2022-08-31 17:59:46 +02:00
Bartosz Taudul
107975c8de
Fix time rounding logic.
...
PrintSmallInt() expects values in the 0-999 range, but the in+1 may produce
1000 here. This is invalid and it either asserted, or outputted an empty
string.
Workaround by simple outputting "1000" as the value here.
This function is only used in context of printing time, and only in specific
context. The end result will be that values like "1000 us" or "1000 ms" may
appear, where they would be otherwise shortened to "1 ms" or "1 s". This may
be a bit unusual, but is acceptable, as the real time value has not yet
crossed the threshold required for such shortening.
2022-08-28 14:50:38 +02:00
Bartosz Taudul
f0386d2f72
Update manual.
2022-08-28 13:26:15 +02:00
Bartosz Taudul
cedd8b590c
Update NEWS.
2022-08-28 13:21:24 +02:00
Bartosz Taudul
c2d527e2e7
Cosmetics.
2022-08-28 13:17:29 +02:00
Bartosz Taudul
74789d1049
Merge pull request #446 from simplyWiri/master
...
Add WASD panning/zooming functionality to timeline.
2022-08-28 13:13:21 +02:00
Bartosz Taudul
87723cdcc4
Update json.hpp to 3.11.2.
2022-08-27 16:09:42 +02:00
Bartosz Taudul
be392a76fb
Move TracyVersion.hpp to common.
2022-08-27 16:05:36 +02:00
Bartosz Taudul
165099ca87
Merge pull request #448 from hulakdar/multithreaded_d3d12_zones
...
Multithreaded d3d12 zones
2022-08-26 13:11:35 +02:00
hulakdar
e35db2657b
A bit more consistent usage of atomic
2022-08-26 13:25:58 +03:00
hulakdar
391cb4242e
Fix d3d12 gpu zones for multithreaded use
2022-08-26 13:07:07 +03:00
Bartosz Taudul
11b11d5f51
Update NEWS.
2022-08-26 00:54:36 +02:00
Bartosz Taudul
f3113f24a9
Update manual.
2022-08-26 00:48:18 +02:00
Bartosz Taudul
72b7d0db5b
Add user data pointer to parameter callback.
2022-08-26 00:46:01 +02:00
simplyWiri
d2e3856724
Add WASD panning/zooming functionality to timeline.
2022-08-22 17:23:57 +10:00
Bartosz Taudul
655d8a01ea
Move vis data to timeline controller.
2022-08-20 17:02:29 +02:00
Bartosz Taudul
49bda91be5
Cosmetics.
2022-08-20 01:45:55 +02:00
Bartosz Taudul
414f467c6e
More jump targets to normalize.
2022-08-19 12:50:47 +02:00
Bartosz Taudul
2f219188e1
Fix function normalization being forced on.
2022-08-18 14:13:53 +02:00
Bartosz Taudul
197007ab47
Keep a list of buffers left to handle.
...
Previously a bitmap of buffers was repeatedly scanned to see which buffers
still contain data. This process was needlessly wasting cycles (seen as a
hotspot when profiled) and worse yet, the workload increased with the number
of CPU cores (=> buffers used) to handle.
The new implementation instead maintains a list of buffer indices that have to
be handled. This list does not contain empty buffers, so each loop iteration
performs some work, instead of just spinning in search for buffers to handle.
2022-08-18 13:59:56 +02:00
Bartosz Taudul
940f32c1a8
Add include for cpuid.
2022-08-18 13:40:37 +02:00
Bartosz Taudul
1d60c0cd5b
Remove leftovers.
2022-08-18 13:18:39 +02:00
Bartosz Taudul
07a56f1148
Load globals to local variables.
2022-08-18 01:08:22 +02:00
Bartosz Taudul
d62f7d5d13
Shorten zone name in jump popup target submenu.
2022-08-18 00:49:42 +02:00
Bartosz Taudul
f9a4bc55cc
Normalize function names in jump popup.
2022-08-18 00:35:59 +02:00
Bartosz Taudul
a1f09fab35
Assembly lines without source locations are navigatable to.
2022-08-18 00:19:32 +02:00
Bartosz Taudul
3dfa3a77a2
Update manual.
2022-08-17 16:48:45 +02:00
Bartosz Taudul
7df4aef122
Expose source callback registering through a macro.
2022-08-17 16:26:03 +02:00
Bartosz Taudul
687e901347
Update NEWS.
2022-08-17 16:04:21 +02:00
Bartosz Taudul
e8aaf5fa99
Run source file query on payloaded source locations.
2022-08-17 16:04:20 +02:00
Bartosz Taudul
a237f108c7
Use source contents callback.
2022-08-17 16:04:20 +02:00
Bartosz Taudul
ed7be2faaa
Add source contents callback setup.
2022-08-17 16:04:18 +02:00
Bartosz Taudul
4bcb59bbe6
Update font awesome and migrate to v6 headers.
2022-08-17 12:07:38 +02:00
Bartosz Taudul
ef35c01e14
Highlight jump line on hover over jump target label.
2022-08-17 00:30:07 +02:00
Bartosz Taudul
1601ddeab5
Resolve relative file names to absolute ones.
...
Note that this is a tentative fix, which *should* be working, but it may as
well not be correct in some edge cases. Who knows.
2022-08-16 23:48:46 +02:00
Bartosz Taudul
3dc542a464
Log invalid debuginfod queries.
...
Filename paths must be absolute, not relative.
2022-08-16 22:05:14 +02:00
Bartosz Taudul
d32dc47845
Add debug logging for debuginfod queries.
2022-08-16 22:05:08 +02:00
Bartosz Taudul
ed733a4b15
Update manual.
2022-08-16 18:58:11 +02:00
Bartosz Taudul
0779151170
Update NEWS.
2022-08-16 18:52:29 +02:00
Bartosz Taudul
827bbeb442
Context menu hide for plots.
2022-08-16 18:51:28 +02:00
Bartosz Taudul
4bf6a2b9d2
Context menu hide for CPU data.
2022-08-16 18:48:54 +02:00
Bartosz Taudul
3aa62a18cc
Context menu hide of GPU zones.
2022-08-16 18:43:13 +02:00
Bartosz Taudul
fa8a071334
Add context menu with hide option to threads on timeline.
2022-08-16 18:40:10 +02:00
Bartosz Taudul
5ef7e42223
Fix indentation.
2022-08-16 18:39:43 +02:00
Bartosz Taudul
06b986ad90
Bump LZ4 to 1.9.4.
2022-08-16 14:43:50 +02:00
Bartosz Taudul
3d9d242153
Fix test application flags.
2022-08-16 14:12:22 +02:00
Bartosz Taudul
72ad40698b
Move initialization of callstack structs to a thread.
...
Initializing structures for callstack processing (building memory map of the
process, gathering kernel symbols, etc) takes some time, which in some cases
may be significant.
Callstack queries are now handled on a separate thread. In such setup it no
longer makes sense to block main thread execution with this lengthy init
process.
All the heavy initialization phase has been now moved to this separate
processing thread. Some initial callstack queries may now not produce
responses as promptly as before, but this is only because the main thread is
able to start working earlier.
Some parts of the initialization process may be critical to do in the main
thread, for example because the function responsible for gathering callstacks
must be loaded first. This is done still on the main thread, in a new function
InitCallstackCritical().
2022-08-16 13:55:46 +02:00
Bartosz Taudul
d9d31e4d51
Make fixed font more compact.
...
Note that the negative glyph spacing is const here, regardless of the font
scaling. The alternative of using proportional spacing in reality does not
work as good as it sounds. With fractional scaling some of the glyphs will
no longer land on exact pixel boundaries, which results in blurry text.
Looking at the potential solutions for this problem is moot point, as with
the non-fractional scale of 2x and glyph spacing of -2, there is no longer
enough space separating some letters, which is especially visible in words
like "common" or register "xmm", where the "mm" pair becomes joined.
2022-08-16 13:16:21 +02:00
Bartosz Taudul
26e7d6eb3e
Update manual.
2022-08-16 00:17:59 +02:00
Bartosz Taudul
cde56ef9fe
Update NEWS.
2022-08-15 23:33:27 +02:00
Bartosz Taudul
6659e9967a
Fix alignment of inline function warning triangle.
2022-08-15 23:04:56 +02:00
Bartosz Taudul
c6ad1c4969
Print file name in source view with big font.
2022-08-15 23:01:40 +02:00
Bartosz Taudul
f39efbaa07
Normalize child call names in symbol view.
2022-08-15 22:58:35 +02:00
Bartosz Taudul
00e0187506
Print symbol name in symbol view with big font.
2022-08-15 22:53:32 +02:00
Bartosz Taudul
fa0322f6b4
Push big font to source view.
2022-08-15 22:48:00 +02:00
Bartosz Taudul
d3cb8ccef2
Normalize jump names in assembly lines.
2022-08-15 22:44:31 +02:00
Bartosz Taudul
04aebb090b
Normalize frame names in zone trace.
2022-08-15 22:32:42 +02:00
Bartosz Taudul
fd2918eaf2
Normalize frames in find zone view callstack.
2022-08-15 22:27:36 +02:00
Bartosz Taudul
a5998adf83
Normalize function name in assembly line location popup.
2022-08-15 22:16:05 +02:00
Bartosz Taudul
2031c92f7a
Add source code tooltip to function selection list.
2022-08-15 22:10:59 +02:00
Bartosz Taudul
163e7fd490
Normalize names in function selection list in symbol view.
2022-08-15 22:06:35 +02:00
Bartosz Taudul
b1aca6acf9
Show original name in tooltip in sample parents window.
2022-08-15 21:54:29 +02:00
Bartosz Taudul
dc84752fab
Normalize symbol view symbol name.
2022-08-15 21:51:11 +02:00
Bartosz Taudul
f4524a8453
Show more elements in one-line callstacks.
2022-08-15 21:36:29 +02:00
Bartosz Taudul
697d1f0cad
Fully shorten frame names in one-line callstack calls.
2022-08-15 21:33:25 +02:00
Bartosz Taudul
baf365c0c3
Normalize frame names in memory callstack tree.
2022-08-15 21:29:21 +02:00
Bartosz Taudul
9c4f257596
Normalize frame names in wait stacks tree.
2022-08-15 21:27:05 +02:00
Bartosz Taudul
4d974da290
Add shorten name accessor.
2022-08-15 21:21:50 +02:00
Bartosz Taudul
257a836dc7
Adjust zone name shortening option names.
...
"Always full" was kinda ambiguous. It could either mean that the name will be
always full (shortening effectively disabled), or that the shortening will be
performed to the maximum extent (as it was).
2022-08-15 20:47:59 +02:00
Bartosz Taudul
c4324873b2
Add tooltips for parent names.
2022-08-15 20:40:49 +02:00
Bartosz Taudul
655bcd40fb
Limit sample statistics frame name tooltip to frame name.
2022-08-15 20:39:35 +02:00
Bartosz Taudul
27165d12a6
Normalize frame names in parents frame tree.
2022-08-15 20:09:35 +02:00
Bartosz Taudul
389cf135c0
Normalize frame names in sample parents call stack view.
2022-08-15 20:04:57 +02:00
Bartosz Taudul
6932eb4b79
Shorten frame names in sample statistics view.
2022-08-15 19:56:17 +02:00
Bartosz Taudul
4d0591cf2f
Extract normalized name tooltip function.
2022-08-15 19:43:03 +02:00
Bartosz Taudul
63d074c5d8
Fix zone size calculation wrt text fitting.
...
Previously the zone size calculation hasn't took into account the possibility
of the zone going out of the screen. This is now fixed.
2022-08-15 19:38:40 +02:00
Bartosz Taudul
7f99ee2c13
Shorten frame names in callstack table.
2022-08-15 19:38:39 +02:00
Bartosz Taudul
f2001c95a5
Shorten frame names in callstack tooltip.
2022-08-15 17:13:39 +02:00
Bartosz Taudul
112406472a
Do not normalize non-ghost zone names.
...
These do not have unwanted decorations, but may include useful user
annotations (e.g. "Open file (/etc/passwd)"), which we would not want to
remove.
2022-08-15 17:03:45 +02:00
Bartosz Taudul
d27cb4a094
Normalize names in ghost zone tooltips.
2022-08-15 16:54:12 +02:00
Bartosz Taudul
57cabc1e09
Support zone name shortening without text/zone sizes.
2022-08-15 16:39:25 +02:00
Bartosz Taudul
8531ef6591
Extract ShortenZoneName() function to a separate file.
2022-08-15 16:34:37 +02:00
Bartosz Taudul
07a1383304
Expose zone name normalization as a separate setting.
2022-08-15 16:24:44 +02:00
Bartosz Taudul
89016454f8
Progressively remove namespaces.
2022-08-15 15:44:13 +02:00
Bartosz Taudul
af934f1387
Remove common return value types from function names.
...
Which types are included is a balance between efficiency and frequency of
occurrence.
2022-08-15 15:38:34 +02:00
Bartosz Taudul
fb6f63f06f
Remove const qualifier from shortened function names.
2022-08-15 15:22:57 +02:00
Bartosz Taudul
60f82dfd2e
Fix off-by-one.
...
The null terminator was included during the string copy. The destination
pointer points to one-beyond-the-end, and has to be decreased.
2022-08-15 15:12:20 +02:00
Bartosz Taudul
0c6acf3c2e
Use string end pointer.
2022-08-15 14:54:23 +02:00
Bartosz Taudul
d91321a774
Do not shorten kernel module names.
2022-08-15 14:50:57 +02:00
Bartosz Taudul
47a2512957
Change namespace shortening to zone name shortening.
...
Namespace shortening was kinda ok for function names produced by MSVC, which
are generally clean looking. However, gcc/clang like to produce function names
which include template arguments, function parameters, return values, etc. In
such cases the old algorithm simply didn't work, because removal of everything
before the last :: could as well happen in midst of function parameters list.
The result was certainly not an usable function name.
With this new approach namespaces are no longer explicitly mentioned and this
functionality is simply called zone name shortening.
The user-selectable options were changed to make the shortening always
enabled, disabled, or to apply as needed. Note that the "as needed" approach
will be dynamic, trying to gradually remove more and more from the name, until
it fits in the requested area.
Current implementation is only the first step into making this work. In this
first step the function parameters are reduced to () and the template
arguments are reduced to <>. This alone greatly improves readability of the
zone names.
The option to reduce namespaces to one letter (i.e. std::tr1::hash would
become s:t:hash) will no longer be present, now or in the future.
2022-08-15 14:19:57 +02:00
Bartosz Taudul
c01ad38d46
Start extracting timeline height control logic.
2022-08-15 13:29:45 +02:00
Bartosz Taudul
b0ac78dde1
Don't care about std::regex_error value.
2022-08-14 18:20:40 +02:00
Bartosz Taudul
df00870a4b
InputBuf is no longer than 255 bytes.
2022-08-14 18:20:39 +02:00
Bartosz Taudul
d12fa11762
Change magic value enums to constexprs.
2022-08-14 18:16:30 +02:00
Bartosz Taudul
77e39700b1
Proper way to detect mouse hover over timeline.
2022-08-14 17:17:51 +02:00
Bartosz Taudul
86c2574848
Fix printing floats in source view.
2022-08-14 14:16:56 +02:00
Bartosz Taudul
e289884395
Display jump target even if there's no source location.
2022-08-14 14:01:01 +02:00
Bartosz Taudul
99a110d5b1
Add asm line hover highlight for unknown locations.
...
In some cases there are many unknown locations next to each other. Having a
hover highlight helps to distinguish one from another.
2022-08-14 13:40:39 +02:00
Bartosz Taudul
d5a46f97c1
Release MemData.
2022-08-14 11:37:24 +02:00
Bartosz Taudul
07d921b322
Cosmetics.
2022-08-14 11:29:36 +02:00
Bartosz Taudul
77e3a480a4
Properly terminate CPU model string.
2022-08-13 19:37:34 +02:00
Bartosz Taudul
7dbfed9aea
Drop access to native window.
...
The new NFD library is not using this information, and the old one was using
it only on Windows. Oh well.
Removal of this functionality also removes some build-time decisions.
2022-08-12 21:44:24 +02:00
Bartosz Taudul
baea6ddf11
More concise machine code display.
2022-08-09 01:17:24 +02:00
Bartosz Taudul
849e58bfb3
No rpmalloc on emscripten.
2022-08-08 19:40:17 +02:00
Bartosz Taudul
bb22542a90
Decouple rpmalloc usage from TRACY_ENABLE flag.
2022-08-08 19:40:16 +02:00
Bartosz Taudul
3840f39fc9
Fix macros.
2022-08-08 19:16:42 +02:00
Bartosz Taudul
d67e51a4ba
Target native architecture when making debug builds.
2022-08-08 18:47:47 +02:00
Bartosz Taudul
259672abc6
Use proper type in StringKey initialization.
2022-08-08 18:47:11 +02:00
Bartosz Taudul
4cd36ecdea
No parallel execution on emscripten.
2022-08-08 18:41:06 +02:00
Bartosz Taudul
d63d1c9e7f
Load icon during rendering backend setup.
...
Creating a new window along with setting up an OpenGL context is universally
a lengthy operation. Decode the icon image on a separate thread.
2022-08-07 17:13:38 +02:00
Bartosz Taudul
73be35ea98
Fix unknown source box style.
2022-08-06 23:41:47 +02:00
Bartosz Taudul
4607dca13b
Smaller frame bar color thresholds legend.
2022-08-04 22:32:35 +02:00
Bartosz Taudul
225d6c1ede
Update manual.
2022-08-04 19:17:24 +02:00
Bartosz Taudul
8835a7b35d
Update NEWS.
2022-08-04 19:02:22 +02:00
Bartosz Taudul
49dc3431ab
Allow setting custom FPS targets on frames overview.
2022-08-04 18:58:13 +02:00
Bartosz Taudul
9b5d0747eb
Add overview of frame target colors.
2022-08-04 18:46:37 +02:00
Bartosz Taudul
740155f5e3
Make frame targets input box smaller.
2022-08-04 18:23:25 +02:00
Bartosz Taudul
c3eb65be41
Merge pull request #441 from laurelkeys/patch-1
...
Update CMakeLists.txt after directory changes
2022-08-04 14:00:29 +02:00
Tiago Chaves
70026097cc
Update CMakeLists.txt
2022-08-04 08:51:08 -03:00
Bartosz Taudul
fc7b3c3c0e
Merge pull request #440 from Danielmelody/master
...
Using push/pop in all pragma pack pair to avoid potential padding bugs
2022-08-03 13:36:47 +02:00
Daniel
dc74b8adfd
Using push/pop in all pragma pack pair to avoid potential padding bugs
2022-08-03 18:39:42 +08:00
Bartosz Taudul
eeffb6d25c
Merge pull request #439 from antiagainst/fix-event-debug
...
Fix include path and QueueType::PlotData in TracyEventDebug.cpp
2022-08-02 21:27:20 +02:00
Lei Zhang
37bcb9cd4a
Fix include path and QueueType::PlotData in TracyEventDebug.cpp
...
* common/TracyQueue.hpp is now under public/.
* QueueType::PlotData is splitted by cases.
2022-08-02 12:44:13 -04:00
Bartosz Taudul
5a36782c83
Fix inline functions not being attributed to symbols.
...
Regression was introduced in commit 18112d3c6.
2022-07-31 12:38:24 +02:00
Bartosz Taudul
c6464f44da
Fix typo.
2022-07-30 22:02:25 +02:00
Bartosz Taudul
81431cd35c
Update NEWS.
2022-07-30 21:45:02 +02:00
Bartosz Taudul
8a7e3dc8ba
Update manual.
2022-07-30 21:43:57 +02:00
Bartosz Taudul
e0f813d9e9
Add support for Vsync capture on Linux.
2022-07-30 21:29:44 +02:00
Bartosz Taudul
91b002267e
Emit dedicated Vsync frame messages.
2022-07-30 19:53:40 +02:00
Bartosz Taudul
8b4385498d
Process Vsync frame messages.
...
Version bump is required due to frame set name pointer hack.
2022-07-30 19:51:29 +02:00
Bartosz Taudul
e86238642a
Add dedicated frame Vsync queue message.
2022-07-30 19:50:42 +02:00
Bartosz Taudul
b19f9e1f4d
Use common functionality to get frame set name.
2022-07-30 19:32:25 +02:00
Bartosz Taudul
92871ba75a
Allow external data insertion into string discovery vectors.
2022-07-30 18:35:50 +02:00
Bartosz Taudul
86bc2020cb
Fix call to rpmalloc_thread_finalize in manual lifetime use-case.
2022-07-30 14:33:39 +02:00
Bartosz Taudul
52643fcd2a
Compatibility fixes for rpmalloc.
2022-07-30 14:13:54 +02:00
Bartosz Taudul
45ba4f2390
Disable auto-cleanup in rpmalloc.
2022-07-30 13:35:44 +02:00
Bartosz Taudul
6be10b6122
Update rpmalloc to 1.4.4.
2022-07-30 13:29:57 +02:00
Bartosz Taudul
7b35d88716
Merge pull request #437 from tmayoff/meson_fix
...
Meson fix
2022-07-29 11:18:01 +02:00
Tyler Mayoff
1e957d6ceb
fixed includes
2022-07-28 18:36:07 -04:00
Tyler Mayoff
51ddf43333
Fixed source paths
2022-07-28 18:32:54 -04:00
Bartosz Taudul
46292b0719
Dynamically track saved window state.
2022-07-28 00:48:14 +02:00
Bartosz Taudul
aa07820eb7
Rely solely on GLFW DPI handling.
2022-07-28 00:31:10 +02:00
Bartosz Taudul
b86f1a907a
Move all GLFW code to a separate class.
2022-07-28 00:24:52 +02:00
Bartosz Taudul
138f80001e
Add stb_image_resize to the list of used libraries.
2022-07-28 00:24:51 +02:00
Bartosz Taudul
1e8029c4d9
Display icon in the about screen.
2022-07-28 00:24:50 +02:00
Bartosz Taudul
66a6488980
Add centered image helper.
2022-07-28 00:24:50 +02:00
Bartosz Taudul
1eacce9e06
Create texture with resized icon.
2022-07-28 00:24:49 +02:00
Bartosz Taudul
0c36bfba5d
Allow creating RGBA textures.
2022-07-28 00:24:49 +02:00
Bartosz Taudul
2c31ba8016
Don't free icon pixel data.
2022-07-28 00:24:48 +02:00
Bartosz Taudul
add5c1e328
Instantiate stb_image_resize.
2022-07-28 00:24:48 +02:00
Bartosz Taudul
065f13c382
Add stb_image_resize.
2022-07-28 00:24:47 +02:00
Bartosz Taudul
002eb6ae2d
Extract filtering connections functionality.
2022-07-28 00:24:46 +02:00
Bartosz Taudul
a356340783
Extract connection history functionality.
2022-07-28 00:24:46 +02:00
Bartosz Taudul
31b6a88923
Extract window position save/load functionality.
2022-07-28 00:24:45 +02:00
Bartosz Taudul
208755ad53
Extract main thread run queue.
2022-07-28 00:24:45 +02:00
Bartosz Taudul
f0f00512b0
Extract font loading.
2022-07-28 00:24:44 +02:00
Bartosz Taudul
2d327abd80
Move imgui backends to a subdirectory.
2022-07-28 00:24:43 +02:00
Bartosz Taudul
054c26781a
Move fonts to a subdirectory.
2022-07-28 00:24:40 +02:00
Bartosz Taudul
1b728b50bf
Merge pull request #434 from haCo77/master
...
fix tracy worker threads conflict
2022-07-27 21:37:12 +02:00
Jiangping Xu
ad7c2cf5d8
fix tracy worker threads conflict
2022-07-27 11:44:19 -07:00
Bartosz Taudul
758edf8a05
Update manual.
2022-07-24 14:59:20 +02:00
Bartosz Taudul
c924981044
Update NEWS.
2022-07-24 14:42:11 +02:00
Bartosz Taudul
347317745b
Update manual.
2022-07-24 14:31:57 +02:00
Bartosz Taudul
b782b021c7
Obey custom plot colors.
2022-07-24 14:31:56 +02:00
Bartosz Taudul
b026e09a09
Include custom color in plot configuration.
2022-07-24 13:42:25 +02:00
Bartosz Taudul
1dfe36e962
Implement reading 10 elements at once.
2022-07-24 13:40:06 +02:00
Bartosz Taudul
f4b0654fcd
Allow setting plot color in the configuration message.
2022-07-24 13:32:21 +02:00
Bartosz Taudul
f354735fc4
Plot fill may be disabled.
2022-07-24 13:28:12 +02:00
Bartosz Taudul
b2a94cbfa2
Set plot fill using configuration message.
2022-07-24 13:10:20 +02:00
Bartosz Taudul
dceb2399ee
Set plot staircase using plot configuration message.
2022-07-24 13:09:45 +02:00
Bartosz Taudul
3f51409389
Add step and fill parameters to plot configuration.
2022-07-24 13:05:01 +02:00
Bartosz Taudul
810f1573ac
Use separate messages for transfer of different plot value types.
2022-07-24 13:00:36 +02:00
Bartosz Taudul
aeedf7de2d
Save/load plot steps parameter.
2022-07-24 12:42:39 +02:00
Bartosz Taudul
16627d7313
Plots may now be drawn as staircases.
2022-07-24 12:37:30 +02:00
Bartosz Taudul
f8115168a6
Fill area under plots.
2022-07-24 12:28:47 +02:00
Bartosz Taudul
b0f484d593
Display plot colors in options menu.
2022-07-24 12:13:28 +02:00
Bartosz Taudul
3393471dcc
Draw memory plot ranges on top of plot.
2022-07-24 12:10:46 +02:00
Bartosz Taudul
a3b6a9c95c
Color plot background.
2022-07-24 01:39:51 +02:00
Bartosz Taudul
755df94f45
Move DarkenColor() to a proper source file.
2022-07-24 01:29:52 +02:00
Bartosz Taudul
27a98a3cc2
Make user plot color depend on its name.
2022-07-24 01:26:20 +02:00
Bartosz Taudul
a98bbc2340
Display plot color in plot tooltip.
2022-07-24 01:12:42 +02:00
Bartosz Taudul
7d1539a0ce
Plot coloring, currently by type.
2022-07-24 01:07:10 +02:00
Bartosz Taudul
5bee753376
Add source preview to lock info window source location.
2022-07-24 00:18:57 +02:00
Bartosz Taudul
0a00925a9b
More compact locks drawing.
2022-07-24 00:13:11 +02:00
Bartosz Taudul
efaf1df8d4
Move LockMap and LockHighlight definitions.
2022-07-23 15:54:48 +02:00
Bartosz Taudul
52f333a3f8
Update NEWS.
2022-07-23 13:38:52 +02:00
Bartosz Taudul
f7598d2431
Implement direct children search.
2022-07-23 13:31:41 +02:00
Bartosz Taudul
57f03dfe9a
Implement children messages filtering in zone tooltip.
2022-07-23 13:19:30 +02:00
Bartosz Taudul
c44075544a
Mention C# bindings.
2022-07-23 12:46:39 +02:00
Bartosz Taudul
a75846dd88
Do not try to demangle really long function names.
2022-07-23 12:37:00 +02:00
Bartosz Taudul
d282425287
Fix demangle buffer.
2022-07-23 12:34:35 +02:00
Bartosz Taudul
cb58b4803a
Update NEWS.
2022-07-20 01:23:33 +02:00
Bartosz Taudul
7dc95bf3a8
Fix demangling of functions with names >64KB.
2022-07-20 01:21:43 +02:00
Bartosz Taudul
f52ac31468
Do not duplicate code.
2022-07-20 01:06:12 +02:00
Bartosz Taudul
a04f830962
Force inline string copy functions.
2022-07-20 01:04:59 +02:00
Bartosz Taudul
5e0eb7e26b
Drop string copy length asserts.
...
These might now truncate data.
2022-07-20 01:03:06 +02:00
Bartosz Taudul
8ccfe93044
Apply 7409767 from libbacktrace.
2022-07-20 00:41:22 +02:00
Bartosz Taudul
fca8a7707d
Don't fail compilation on emscripten.
2022-07-19 15:49:29 +02:00
Bartosz Taudul
4d40a9cb53
Track locking thread on server side.
2022-07-18 02:06:19 +02:00
Bartosz Taudul
440d20b864
Don't transfer lock release thread id.
...
We already know which thread is holding the lock.
2022-07-18 01:56:09 +02:00
Bartosz Taudul
d6a607b9f0
Update nativefiledialog-extended to 3311592.
2022-07-17 16:22:27 +02:00
Bartosz Taudul
85102f7a19
Update NEWS.
2022-07-17 15:47:39 +02:00
Bartosz Taudul
fedec0caf2
Update manual.
2022-07-17 15:47:39 +02:00
Bartosz Taudul
06c7984a16
Move all client headers and sources to public/ directory.
2022-07-17 15:47:38 +02:00
Bartosz Taudul
c3c799ebc4
Update NEWS.
2022-07-13 01:00:57 +02:00
Bartosz Taudul
94444e2afb
Display compatible Tracy versions for bad protocols.
2022-07-13 00:53:15 +02:00
Bartosz Taudul
b70321fe6a
Add protocol -> version mapping table.
2022-07-13 00:44:02 +02:00
Bartosz Taudul
0624c592e3
Advise about slow send queue.
2022-07-03 15:14:53 +02:00
Bartosz Taudul
edad2d7e35
Monitor send queue size.
2022-07-03 14:52:18 +02:00
Bartosz Taudul
3c49dea10c
Link with UniformTypeIdentifiers on macos.
2022-07-03 13:52:39 +02:00
Bartosz Taudul
de0182f12f
Update NFD.
2022-07-03 13:43:27 +02:00
Bartosz Taudul
71b3706486
Increase contrast on timeline CPU data CPU labels.
2022-07-03 13:04:09 +02:00
Bartosz Taudul
6748756fa1
Increase contrast of plot min/max labels.
2022-07-03 13:01:41 +02:00
Bartosz Taudul
f8f76a3d04
Text drawing with even more increased contrast.
2022-07-03 13:01:41 +02:00
Bartosz Taudul
21128be933
Limit number of make jobs.
2022-07-02 17:46:36 +02:00
Bartosz Taudul
c2a9a4e6be
Add missing includes.
2022-07-02 17:13:20 +02:00
Bartosz Taudul
2331ee04d2
Cleanup TracyView includes.
2022-07-02 17:00:08 +02:00
Bartosz Taudul
96dc8c8d1c
No need to include imgui.h in source view header.
2022-07-02 16:33:45 +02:00
Bartosz Taudul
1879d07eae
TracyImGui.hpp does not need assert.h nor algorithm includes.
2022-07-02 16:29:37 +02:00
Bartosz Taudul
4347cc58b1
Forward declare ImFont.
2022-07-02 16:25:47 +02:00
Bartosz Taudul
fa9e7c02bc
No force inlines in TracySocket.
2022-07-02 16:19:54 +02:00
Bartosz Taudul
a46d3992a2
Thread view adjustment is timeline handling.
2022-07-02 15:44:00 +02:00
Bartosz Taudul
d9ce848bb0
Also extract (and rename) timeline mouse handling.
2022-07-02 15:42:01 +02:00
Bartosz Taudul
889e643d2a
Extract ranges UI from View.
2022-07-02 15:40:51 +02:00
Bartosz Taudul
9fb618c12d
Rename DrawZone* -> DrawTimeline*.
2022-07-02 15:38:10 +02:00
Bartosz Taudul
e3b11821c3
Extract zone timeline rendering from View.
2022-07-02 15:36:36 +02:00
Bartosz Taudul
7b04d8c0b3
Extract frames timeline UI from View.
2022-07-02 15:31:03 +02:00
Bartosz Taudul
0d41a6c48b
Move DrawHistogramMinMaxLabel() to TracyImGui.cpp.
2022-07-02 15:27:08 +02:00
Bartosz Taudul
5ed7d71927
DrawAllocList() is memory.
2022-07-02 15:24:59 +02:00
Bartosz Taudul
c2728fde04
Extract locks UI from View.
2022-07-02 15:24:09 +02:00
Bartosz Taudul
10205f90b4
Also extract timeline CPU data.
2022-07-02 15:20:47 +02:00
Bartosz Taudul
c6b6cb47da
Also move timeline samples.
2022-07-02 15:16:52 +02:00
Bartosz Taudul
e005d4ff36
Extract messages UI from View.
2022-07-02 15:15:24 +02:00
Bartosz Taudul
fe8269fa49
Mark syntax colors constexpr.
2022-07-02 15:10:01 +02:00
Bartosz Taudul
87d639c851
Move DrawStripedRect() out of header.
2022-07-02 15:08:52 +02:00
Bartosz Taudul
c427214f46
Move DrawHelpMarker to TracyImGui.hpp.
2022-07-02 15:07:40 +02:00
Bartosz Taudul
358148920a
Extract annotations UI from View.
2022-07-02 15:04:54 +02:00
Bartosz Taudul
5b451c3557
Extract samples UI from View.
2022-07-02 15:04:53 +02:00
Bartosz Taudul
06a840c19a
Wait stacks are context switches.
2022-07-02 15:01:23 +02:00
Bartosz Taudul
585587fa36
Extract frame tree functionality from View.
2022-07-02 15:01:22 +02:00
Bartosz Taudul
8147eadaf0
Extract connection state and notification area.
2022-07-02 14:47:13 +02:00
Bartosz Taudul
de5c4c678a
Extract memory UI from View.
2022-07-02 14:42:06 +02:00
Bartosz Taudul
f3fe8b27e8
Extract plot drawing from View.
2022-07-02 14:36:54 +02:00
Bartosz Taudul
e98b24a9ed
Extract frame overview UI from View.
2022-07-02 14:19:16 +02:00
Bartosz Taudul
b58a206d9d
More utility extract.
2022-07-02 14:14:27 +02:00
Bartosz Taudul
701cc16cbf
Zone tooltip is zone info.
2022-07-02 14:10:36 +02:00
Bartosz Taudul
003621802f
Split callstack UI from View.
2022-07-02 14:09:15 +02:00
Bartosz Taudul
5a3305095e
Extract CPU data UI from View.
2022-07-02 14:04:45 +02:00
Bartosz Taudul
6f99c8d055
Extract trace info UI from View.
2022-07-02 14:03:01 +02:00
Bartosz Taudul
ee18e07d6f
Cosmetics.
2022-07-02 13:59:54 +02:00
Bartosz Taudul
1aeb1d9a2d
More find zones extraction.
2022-07-02 13:58:37 +02:00
Bartosz Taudul
a6cee9e7f7
Extract statistics UI from View.
2022-07-02 13:57:56 +02:00
Bartosz Taudul
749bab7ab0
Extract playback UI from View.
2022-07-02 13:55:45 +02:00
Bartosz Taudul
44e5218301
Extract more utility functions.
2022-07-02 13:51:50 +02:00
Bartosz Taudul
35f55c781b
Extract compare UI from View.
2022-07-02 13:48:54 +02:00
Bartosz Taudul
7ed1c4ffb1
More navigation extraction.
2022-07-02 13:43:46 +02:00
Bartosz Taudul
10dbefefab
Extract context switch UI from View.
2022-07-02 13:43:09 +02:00
Bartosz Taudul
c9f77ee5fa
Move zone info UI out of View.
2022-07-02 13:37:04 +02:00
Bartosz Taudul
b602d61944
Extract options UI from View.
2022-07-02 13:23:52 +02:00
Bartosz Taudul
d19b337573
Split View navigation functions.
2022-07-02 13:16:06 +02:00
Bartosz Taudul
5b8c8c5309
Extract common zone algorithms from View.
2022-07-02 13:12:30 +02:00
Bartosz Taudul
2473760c04
Extract Find Zone UI to a separate file.
2022-07-02 13:12:29 +02:00
Bartosz Taudul
91bbe03448
Merge pull request #418 from czipperz/czipperz/make-tracy.hpp-if-compatible
...
Make Tracy.hpp compatible with if() statements without curly braces by removing trailing semicolons
2022-07-02 11:08:44 +02:00
Chris Gregory
3a36d583d9
Make Tracy.hpp compatible with if() statements without curly braces by removing trailing semicolons
...
This change allows the following code to compile:
if (condition)
ZoneValue(1);
else
ZoneValue(2);
All examples in the documentation already use a semicolon after a Tracy macro expression
so this shouldn't be a noticable change in behavior for most clients.
2022-07-01 11:24:28 -04:00
Bartosz Taudul
dd6933fe32
Fix striped rect early exit test.
2022-06-29 01:39:06 +02:00
Bartosz Taudul
e6c54600f1
Fix typo.
2022-06-29 01:32:02 +02:00
Bartosz Taudul
f493d4aa8b
Merge pull request #416 from kklobe/kk/fix-meson-options
...
Fix Meson options to match build
2022-06-28 19:06:49 +02:00
Kirk
64e9f5e814
Fix Meson options to match build
2022-06-28 12:00:09 -05:00
Bartosz Taudul
a8511d3576
Release 0.8.2.
2022-06-28 17:57:46 +02:00
Bartosz Taudul
1f43cfd2b9
Merge pull request #415 from kklobe/kk/fix-gcc-mac-compile-error
...
Fix macOS GCC 11/12 compile error
2022-06-28 01:21:00 +02:00
Kirk Klobe
49053775e3
Fix macOS GCC 11/12 compile error
2022-06-27 17:37:12 -05:00
Bartosz Taudul
7f35a299c4
Merge pull request #412 from theblackunknown/fix-windows-vcpkg
...
Fix building on Windows without `VCPKG_ROOT` env var set
2022-06-27 17:22:21 +02:00
MACHIZAUD Andréa
2eed89f0d8
only build Tracy/capture Release for build-without-vcpkg-integration
2022-06-26 23:22:24 +02:00
MACHIZAUD Andréa
75c383a68c
non need to package binaries in build-without-vcpkg-integration
2022-06-26 23:13:32 +02:00
MACHIZAUD Andréa
087e1d8036
Fail with error code if install_vcpkg_dependencies.bat commands fail
2022-06-25 17:52:42 +02:00
Bartosz Taudul
a05285083a
Update xxhash filename in MSVC project.
2022-06-23 01:46:56 +02:00
Bartosz Taudul
1625a45c31
On ARM64 use ISB to yield CPU in spinlocks.
...
c064b6560b
2022-06-23 01:15:55 +02:00
Bartosz Taudul
68de009e0e
Extract common reference time processing to a function.
2022-06-22 01:56:31 +02:00
Bartosz Taudul
183cbf12a0
Subtract base time directly in TscTime().
2022-06-22 01:56:31 +02:00
Bartosz Taudul
ac1cd62847
Remove unused intrinsic includes.
2022-06-22 00:49:51 +02:00
Bartosz Taudul
84ea1bc35b
Update ImGui OpenGL loader.
2022-06-21 22:37:20 +02:00
Bartosz Taudul
56863f5ab7
Update ImGui to 1.88 + docking.
2022-06-21 22:18:01 +02:00
Bartosz Taudul
771c043c8e
Update ARM CPU part decoding.
2022-06-21 01:58:15 +02:00
Bartosz Taudul
24f0f3b51c
Update iCrap devices list.
2022-06-21 01:36:11 +02:00
Bartosz Taudul
766123b990
Add comments to ARM Part dispatch.
2022-06-21 01:31:55 +02:00
Bartosz Taudul
dcb29aa40c
Update NEWS.
2022-06-21 00:50:03 +02:00
Bartosz Taudul
1468522126
Replace CPU topology tree with CPU schematics.
2022-06-21 00:45:42 +02:00
Bartosz Taudul
2f6399a4b2
Display true values in plot ranges, not animation values.
2022-06-19 00:39:14 +02:00
MACHIZAUD Andréa
84319911c5
Use $(ProjectDir) for vcpkg msbuild without integration paths.
2022-06-18 17:28:56 +02:00
MACHIZAUD Andréa
5e9b007e90
Uses $(VcpkgManifestRoot) for vcpkg msbuild integration paths.
2022-06-18 17:28:56 +02:00
MACHIZAUD Andréa
2b3ce6dd80
Test both way to pull vcpkg dependencies in CI
2022-06-18 17:28:56 +02:00
Bartosz Taudul
331f18345f
Add braces around initialization of subobjects.
2022-06-16 15:29:39 +02:00
Bartosz Taudul
89ef23da55
Install libdebuginfod-dev.
2022-06-16 15:01:24 +02:00
Bartosz Taudul
ce1b5a07fa
Use ubububu 22.04.
2022-06-16 14:46:56 +02:00
Bartosz Taudul
5437185858
Decrease sampling worker sleep time from 10 to 1 ms.
2022-06-16 14:31:47 +02:00
Bartosz Taudul
d99024dd02
Run sampling worker thread at max priority.
2022-06-16 14:24:11 +02:00
Bartosz Taudul
8383682306
Emit warning if priority change failed.
2022-06-16 14:23:42 +02:00
Bartosz Taudul
2240fd3b0c
Remove invalid assert.
...
The original intention was to ensure that either a ring buffer with data was
selected (sel >= 0 ), or there is no data left to process (activeNum == 0).
However, in an unlikely case that all ring buffers contain a PERF_RECORD_LOST
event, it is possible for the assert to fail, as there may still be data in
buffers, but at the same time no buffer would be selected. Buffer processing
advances the data pointers, so in the next loop iteration the results may be
different.
2022-06-16 14:07:51 +02:00
Bartosz Taudul
aee8336847
Move ring identifier check out of the loop.
2022-06-16 13:48:15 +02:00
Bartosz Taudul
145e3e213a
Move ring identifier extraction out of loop.
2022-06-16 13:39:07 +02:00
Bartosz Taudul
49844872e6
Merge pull request #410 from benvanik/benvanik-fiber-incomplete
...
Hiding the "Incomplete context switch data" warning on fibers.
2022-06-14 17:17:40 +02:00
Ben Vanik
aa154792c7
Hiding the "Incomplete context switch data" warning on fibers.
2022-06-14 08:01:19 -07:00
MACHIZAUD Andréa
6aec95e739
Fix vcxproj support without vcpkg integrate install
2022-06-13 22:30:56 +02:00
Bartosz Taudul
8f99232e1e
Update NEWS.
2022-06-12 00:39:41 +02:00
Bartosz Taudul
e084f7c9e3
Merge pull request #408 from beqjanus/issue-407
...
Avoid "Code is unreachable warning"
2022-06-10 17:04:05 +02:00
Beq
66ba9621bd
Avoid "Code is unreachable warning"
2022-06-08 23:37:39 +01:00
Bartosz Taudul
0b2e276dd2
Merge pull request #405 from tksuoran/fix-operator-precedence
...
Use explicit operator precendence, avoids warning
2022-06-06 20:21:59 +02:00
Timo Suoranta
b8a9083037
Use explicit operator precendence, avoids warning
2022-06-06 17:05:43 +03:00
Bartosz Taudul
2ae4a394a9
Merge pull request #401 from thedmd/inactive-allocations
...
Add ability to filter callstacks in memory tab by inactive allocations.
2022-06-06 11:22:34 +02:00
thedmd
9ed9e18bc8
Add ability to filter callstacks in memory tab by inactive allocations.
...
Filtering by inactive allocations helps to pin point wasteful allocations
in an app.
2022-06-06 06:45:35 +02:00
Bartosz Taudul
2d8723b69b
Update NEWS.
2022-06-05 13:16:01 +02:00
Bartosz Taudul
411b3137b5
Merge pull request #365 from theblackunknown/msvc+vcpkg-manifest
...
Using vcpkg manifest for Windows
2022-06-04 16:44:27 +02:00
MACHIZAUD Andréa
4efcb8c3f5
Fix Manual
2022-06-04 16:26:22 +02:00
MACHIZAUD Andréa
8139d94e14
Add information about vcpkg manifest mode in the manual
2022-06-04 16:26:22 +02:00
MACHIZAUD Andréa
fc5fa369c8
Remove vcpkg builtin-baseline
2022-06-04 16:26:22 +02:00
MACHIZAUD Andréa
fa8bcdfb30
Inject appropriate path for manifest install
2022-06-04 16:26:22 +02:00
Bartosz Taudul
958089794b
Fix MSVC warnings snafu.
2022-06-02 22:04:57 +02:00
Bartosz Taudul
a53c8befdc
Update manual.
2022-05-22 15:32:08 +02:00
Bartosz Taudul
c943749bf2
Merge pull request #395 from Aldarrion/master
...
Fix crash when compare trace not selected
2022-05-20 11:19:43 +02:00
Bartosz Taudul
1989129185
Merge pull request #394 from graydon/build-adjustments
...
Build adjustments
2022-05-20 11:18:36 +02:00
Pavel Šmejkal
2c63d9b320
Fix crash when compare trace not selected
2022-05-20 09:26:50 +02:00
Graydon Hoare
e862799797
Support TRACY_NO_ISA_EXTENSIONS build flag.
2022-05-19 23:40:33 -07:00
Graydon Hoare
0d4a4f6d9b
Support TRACY_NO_LTO build flag.
2022-05-19 23:40:27 -07:00
Bartosz Taudul
6233cf3fdf
Merge pull request #380 from Honeybunch/master
...
Slight tweak to get client library working with mingw
2022-05-14 12:48:09 +02:00
Bartosz Taudul
adf3b5803c
Merge pull request #390 from msimberg/patch-2
...
Remove duplicate `TRACY_NO_FRAME_IMAGE` CMake option
2022-05-11 12:14:21 +02:00
Mikael Simberg
57c13ed138
Remove duplicate TRACY_NO_FRAME_IMAGE CMake option
2022-05-11 09:39:42 +02:00
Honeybunch
80a9865bbf
Making mingw check more explicit
2022-05-10 17:30:59 -07:00
Bartosz Taudul
8af7060a69
Merge pull request #389 from msimberg/patch-1
...
Remove stray comma from `TRACY_NO_CRASH_HANDLER` option
2022-05-10 15:51:19 +02:00
Mikael Simberg
aa089fb1d3
Remove stray comma from TRACY_NO_CRASH_HANDLER option
2022-05-10 15:49:59 +02:00
Bartosz Taudul
4347b5c99c
Allow using GTK file chooser instead of portal one ( #387 ).
2022-05-09 22:37:40 +02:00
MACHIZAUD Andréa
dad0f039c1
Revert "Support capstone 5 from vcpkg"
...
This reverts commit 504f341f9f2c9a7f770c7a797ece961cf9c1caed.
2022-05-09 10:42:13 +02:00
MACHIZAUD Andréa
eda71a1983
Bump vcpkg baseline
2022-05-09 10:42:12 +02:00
MACHIZAUD Andréa
c22248d8e7
Restore CI
2022-05-09 10:42:12 +02:00
MACHIZAUD Andréa
9d3725fecf
Test on gcc.yml
2022-05-09 10:42:12 +02:00
MACHIZAUD Andréa
f8f74c5f57
Support capstone 5 from vcpkg
2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
599098912e
Remove superfluous vcxproj setup thanks to vcpkg integration
2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
3adc55d66d
Fix weird path ?
2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
1fabf9dfa5
Update vcxproj vcpkg path
2022-05-09 10:42:11 +02:00
MACHIZAUD Andréa
67d255f2bb
Test MSVC Workflow
2022-05-09 10:42:10 +02:00
MACHIZAUD Andréa
adcfe4df35
Add Vcpkg manifest + MSBuild integration
2022-05-09 10:42:10 +02:00
Bartosz Taudul
bdd4d28770
Extend max asm line width, if needed.
2022-05-09 00:44:45 +02:00
Bartosz Taudul
76f3207bc4
Restore the intended spacing for extra asm comments.
2022-05-09 00:37:59 +02:00
Bartosz Taudul
0a432ed349
Ignore ld.mold not found error during detection.
2022-05-05 02:40:00 +02:00
Bartosz Taudul
de312c6cc7
Merge pull request #385 from starmole/master
...
Add lower case e and b tags
2022-05-04 21:56:45 +02:00
Bartosz Taudul
a354eb4ab8
Merge pull request #381 from bjacob/fix-layout-379
...
Fix layout bug (https://github.com/wolfpld/tracy/issues/379 )
2022-05-04 21:48:34 +02:00
smarkets
1efee40100
add lower case e and b tags
2022-05-04 10:56:05 -07:00
Benoit Jacob
2c4fe22f50
Fix layout bug ( https://github.com/wolfpld/tracy/issues/379 )
...
I had introduced this bug recently in https://github.com/wolfpld/tracy/pull/369
Fixes #379
2022-05-04 16:26:42 +00:00
Honeybunch
45bd17b7e8
Slight tweak to get client library working with mingw
2022-05-03 18:31:49 -07:00
Bartosz Taudul
8bf21bfb81
Update microarchitecture CPU ids.
2022-05-03 22:15:12 +02:00
Bartosz Taudul
45a4dc154a
Update microarchitectures list.
2022-05-03 22:01:50 +02:00
Bartosz Taudul
60c9b50f81
Update microarchitecture data.
2022-05-03 21:58:23 +02:00
Bartosz Taudul
f4581c398c
Provide 256x256 application icon (was 48x48).
2022-05-03 02:41:10 +02:00
Bartosz Taudul
fa306dd98e
Merge pull request #378 from robertblaketaylor/master
...
Fix unreachable error when compiling warnings as errors + timer fallback
2022-05-03 01:42:04 +02:00
Blake Taylor
cc33846111
Fix unreachable error when compiling warnings as errors + timer fallback
2022-05-02 16:35:48 -07:00
Bartosz Taudul
579339dd24
Retrieve correct symbol address.
2022-05-02 01:12:35 +02:00
Bartosz Taudul
85e11c2d97
Merge two conditions.
2022-05-02 01:12:35 +02:00
Bartosz Taudul
caf092d4b4
Symbol map is alway available.
2022-05-02 01:12:34 +02:00
Bartosz Taudul
0c9eb0b5be
Absolute source paths are required by debuginfod.
2022-05-02 01:12:34 +02:00
Bartosz Taudul
6455fcfa91
Make source code query handling easier to follow.
...
Also, limit debuginfod source file upload to not exceed target frame size.
2022-05-02 01:12:34 +02:00
Bartosz Taudul
b6f155bb6a
Move debuginfod include to TracyCallstack.hpp.
2022-05-02 01:12:34 +02:00
Bartosz Taudul
f540f3ad89
Remove accidentally committed line.
2022-05-02 01:12:34 +02:00
Bartosz Taudul
6e6f19d8f7
Query debuginfod for source code.
2022-05-02 01:12:34 +02:00
Bartosz Taudul
726b70b683
Add debuginfod context accessor.
2022-05-02 01:12:33 +02:00
Bartosz Taudul
ae373b4050
Implement build id retrieval by image name.
2022-05-02 01:12:33 +02:00
Bartosz Taudul
324cab3d34
Merge pull request #377 from Net5F/net/build_option_fixes
...
Fix build options, add TRACY_TIMER_FALLBACK option.
2022-05-01 23:32:15 +02:00
Michael Puskas
a5ea07f107
Fix build options, add TRACY_TIMER_FALLBACK option.
...
Renamed TRACY_NO_SYS_TRACE -> TRACY_NO_SYSTEM_TRACING to match the
build flag name. Unlike the meson logic, the CMake logic directly
maps the option name to the build flag that is injected. With the
mismatched name, the flag wasn't being properly applied.
Added TRACY_TIMER_FALLBACK option to expose the same-named flag.
Moved signal.h include to get sigaction definition that was missing when
TRACY_NO_CALLSTACK was defined.
2022-05-01 13:52:27 -07:00
Bartosz Taudul
aa2bbfe5f9
Transfer executable image name in source file queries.
2022-05-01 14:30:18 +02:00
Bartosz Taudul
fd55c1e975
Pass symbol image name to CacheSource().
2022-05-01 14:25:07 +02:00
Bartosz Taudul
33a6853423
Use big font to print save path.
2022-05-01 13:04:16 +02:00
Bartosz Taudul
ce4c83d45b
String length is known, use memcpy instead of strcpy.
2022-05-01 12:46:09 +02:00
Bartosz Taudul
20cfdc3022
Save executable file names next to build identifiers.
2022-05-01 12:43:15 +02:00
Bartosz Taudul
b4343d58f1
Pass filename to elf_open_debugfile_by_buildid.
...
This is not needed for anything at this moment, but it will become quite useful
soon.
2022-05-01 12:21:51 +02:00
Bartosz Taudul
89778fee9a
Free dl_iterate_phdr data immediately after use.
2022-05-01 12:18:39 +02:00
Bartosz Taudul
4f1af9deaa
Restrict debuginfod to Linux.
2022-05-01 01:04:05 +02:00
Bartosz Taudul
59a9dc80c4
Update manual.
2022-05-01 00:38:43 +02:00
Bartosz Taudul
4c3b106e5e
Update NEWS.
2022-04-30 23:29:42 +02:00
Bartosz Taudul
6b10ed0af7
Remove debug info retrieval and download separation.
...
Retrieval of the descriptor has to be performed in a single step. Finding out
what is missing and then downloading in bulk is not possible, as libbacktrace
caches the returned descriptors.
2022-04-30 23:23:20 +02:00
Bartosz Taudul
7e8961d2fc
Workaround dl_iterate_phdr problems.
...
The code now performs a dry run of a dl_iterate_phdr call, storing the results
in a vector. Then, the original processing loop is issued, but outside of
dl_iterate_phdr.
For possible cause of problems see:
https://github.com/libunwind/libunwind/issues/16
2022-04-30 23:15:16 +02:00
Bartosz Taudul
4559120821
Get descriptors using debuginfod, if not available otherwise.
2022-04-30 21:46:36 +02:00
Bartosz Taudul
4549671caa
Collect and issue debuginfod requests.
...
Build identifiers stored in vectors are searched linearly. While not optimal,
this is enough for a basic implementation. In the future binary search option
may be explored, to see if it is worthwhile. Possible gains wouldn't be
significant, due to relatively small amount of debug info modules to handle.
Debug info descriptor requests that have not yet been checked for (i.e. not in
the s_di_known vector) are stored in the s_di_pending vector. When a check is
performed from within a libbacktrace callback handler, there are some unknown
problems with downloading data. Hence, the download process is delayed to be
performed at a later time. The debug info descriptors retrieval can be then
repeated.
2022-04-30 21:35:14 +02:00
Bartosz Taudul
d9fb5c71eb
Add debug info data structures.
2022-04-30 20:07:47 +02:00
Bartosz Taudul
bae12548c7
Enable debuginfod in test application.
2022-04-30 19:19:47 +02:00
Bartosz Taudul
8b477291f2
Initialize debuginfod session.
2022-04-30 19:19:00 +02:00
Bartosz Taudul
532c5a240c
Add no-op callstack cleanup procedure.
2022-04-30 19:18:52 +02:00
Bartosz Taudul
6d6b7c0989
Add test application build and run configuration.
2022-04-30 19:02:47 +02:00
Bartosz Taudul
d0be4fa784
Update profiler description.
2022-04-30 19:02:34 +02:00
Bartosz Taudul
d80ad500ee
Do not pass linker flags during compilation.
2022-04-30 19:02:06 +02:00
Bartosz Taudul
254e87cbac
Fix preprocessor syntax.
2022-04-30 19:00:54 +02:00
Bartosz Taudul
2ef014608f
Notify when software sampling setup has failed.
2022-04-29 19:13:40 +02:00
Bartosz Taudul
4c0dd704d8
There are situations in which inSym can be nullptr.
...
Don't know exactly how to reproduce this. Nevertheless, the capture was
produced in an usual way. This may be dependant on the exact client
configuration.
2022-04-29 19:13:34 +02:00
Bartosz Taudul
fc37f3c04c
Remove leftovers.
2022-04-29 19:13:26 +02:00
Bartosz Taudul
31b3212f76
The mold linker is not recognized by gcc.
2022-04-29 19:13:16 +02:00
Bartosz Taudul
3bc42faeb3
Fix clang test.
2022-04-29 19:13:09 +02:00
Bartosz Taudul
7d80c088fc
Use mold for even faster linking.
2022-04-29 19:12:43 +02:00
Bartosz Taudul
d71ecd5271
Make test program data generation rate more sensible.
2022-04-29 19:12:20 +02:00
Bartosz Taudul
18fec05e57
Merge pull request #375 from robertblaketaylor/master
...
Add flag to disable crash handler
2022-04-29 00:18:01 +02:00
Blake Taylor
aa7c1db6ad
Merge branch 'master' of https://github.com/robertblaketaylor/tracy
2022-04-27 07:13:31 -07:00
Blake Taylor
8c5120ee5a
Add flag to disable crash handler
2022-04-27 07:11:53 -07:00
Blake Taylor
5fb8b38f3a
Add flag to disable crash handler
2022-04-26 21:19:56 -07:00
Bartosz Taudul
afd4cdec63
LTO + lld wants the compiler to be clang.
2022-04-27 02:33:22 +02:00
Bartosz Taudul
b10c83f358
Use lld linker, if available.
2022-04-27 02:17:16 +02:00
Bartosz Taudul
7f44eba2e9
Process command line parameters immediately after starting.
2022-04-27 01:51:30 +02:00
Bartosz Taudul
92dc52d530
Add --help message to GUI profiler.
2022-04-27 01:44:26 +02:00
Bartosz Taudul
1e35bbd54e
Join update thread before bailing out on bad input.
2022-04-27 01:39:51 +02:00
Bartosz Taudul
1b7e8c3520
Use ImGui keycodes.
2022-04-27 01:16:46 +02:00
Bartosz Taudul
0d547bf4db
Update ImGui to 1.87 + docking.
2022-04-27 00:49:37 +02:00
Bartosz Taudul
bc36f5ff27
Fix buffer overflow.
2022-04-26 22:42:54 +02:00
Bartosz Taudul
7493663e13
It's Debian, it's always Debian.
...
/usr/lib/gcc/x86_64-linux-gnu/9/include/cpuid.h:223:1: error: redefinition of ‘unsigned int __get_cpuid_max(unsigned int, unsigned int*)’
In file included from ../../client/TracyProfiler.cpp:108,
from ../../TracyClient.cpp:23:
/usr/lib/gcc/x86_64-linux-gnu/9/include/cpuid.h:223:1: note: ‘unsigned int __get_cpuid_max(unsigned int, unsigned int*)’ previously defined here
2022-04-26 22:19:32 +02:00
Bartosz Taudul
80d760d950
Define NEON data tables only if NEON is available.
2022-04-26 22:01:09 +02:00
Bartosz Taudul
95cf143336
Remove unused variables.
2022-04-26 22:01:09 +02:00
Bartosz Taudul
c9240c100d
Fix initialization order.
2022-04-26 22:01:09 +02:00
Bartosz Taudul
066c266df9
Add missing includes.
2022-04-26 22:01:09 +02:00
Bartosz Taudul
1a94929780
Use clang to make VS Code builds.
...
This should improve build times to take only ~65% of time.
2022-04-26 21:19:56 +02:00
Bartosz Taudul
1f3ebc9f41
Use item spacing instead of ExtraLineHeight.
2022-04-26 21:11:38 +02:00
Bartosz Taudul
d56741cbeb
Stop pretending to not require additional fonts.
2022-04-25 23:29:44 +02:00
Bartosz Taudul
e0897e8e40
Draw wait reason/state explanation with small font.
2022-04-25 03:05:12 +02:00
Bartosz Taudul
b59739fac2
Update launch configurations.
2022-04-24 16:07:49 +02:00
Bartosz Taudul
3b33a49bd8
Setup VS Code build tasks.
2022-04-24 16:07:49 +02:00
Bartosz Taudul
2dd61aba49
Makefiles can now build clangd database.
...
Executing the "make db" will run the build process of the selected tool or
library through the bear wrapper (which has to be available in the system),
which will record the compilation parameters of each source file. This
database can be then used by VS Code to set the proper defines and find all
the required includes.
Note that database building is performed in context of the specific tool or
library. Not all tools have the same set of flags.
2022-04-23 23:46:55 +02:00
Bartosz Taudul
67ab3acbd0
Ignore clangd compile commands database.
2022-04-23 23:16:48 +02:00
Bartosz Taudul
e7be9b4e21
Update vscode debug launch configuration for lldb.
2022-04-23 23:16:13 +02:00
Bartosz Taudul
1dbca1b9bc
Ignore .cache directory.
...
Such directory may be created by the clangd server.
2022-04-23 23:06:19 +02:00
Bartosz Taudul
37a4478127
Fix horizontal scroll of main window.
...
Horizontal mouse scroll (or touchpad action) should map to navigation within
the trace. While this was true in most cases, there was an edge case, when the
top buttons row couldn't be entirely displayed, e.g. due to the window being
resized too small, or due to set zoom level. This change disables scroll
action on the main window, which fixes the issue.
2022-04-22 22:38:05 +02:00
Bartosz Taudul
6f126ce0f5
Stop playback when frame is changed with mouse scroll.
2022-04-22 22:02:04 +02:00
Bartosz Taudul
9757fcc0ef
Mouse scroll over playback image also changes frame.
2022-04-22 22:02:03 +02:00
Bartosz Taudul
d9684dcb71
Merge pull request #370 from tmayoff/meson-msvc
...
Removing C++11 option from msvc in meson build
2022-04-22 15:15:23 +02:00
Tyler Mayoff
27d8f2a65c
Removing c++11 option from msvc
2022-04-21 19:47:36 -04:00
Bartosz Taudul
80f6a93da7
Release 0.8.1.
2022-04-21 19:28:07 +02:00
bjacob
e6a29862ec
Fix column widths for hw counts and source location ( #369 )
...
Fix column widths for hw counts and source location
2022-04-21 18:30:55 +02:00
Bartosz Taudul
3d10a7dfed
Update libraries to install on CI.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
ffc5b54409
Update NEWS.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
02cacc0d4a
Update manual.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
94b283b1e6
Use native file selector on Linux.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
e870d68a47
Specify proper NFD GTK source file.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
a852cf390a
Adapt code to new NFD.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
70a8da90ad
Switch NFD to NFD Extended.
2022-04-20 19:40:27 +02:00
Bartosz Taudul
1a1d7bbb54
Sync libbacktrace with 4d2dd0b.
2022-04-20 01:14:41 +02:00
Bartosz Taudul
5439a7cd8a
Update NEWS.
2022-04-18 15:15:42 +02:00
Bartosz Taudul
1e762c246a
Don't show callstack column in messages, if no callstacks.
2022-04-18 15:06:23 +02:00
Bartosz Taudul
468add6799
Update identify.cpp build instructions.
2022-04-18 14:01:56 +02:00
Bartosz Taudul
7cf6123b80
Update NEWS.
2022-04-18 14:00:24 +02:00
Bartosz Taudul
18112d3c66
Drop support for pre-0.7 traces.
2022-04-18 13:59:48 +02:00
Bartosz Taudul
95187c94e9
Bump protocol to simplify IsQueryPrio().
2022-04-18 13:39:49 +02:00
Bartosz Taudul
cd3f9c8831
Minimize SVG files.
2022-04-16 00:13:10 +02:00
Bartosz Taudul
35ab270ac3
Replace application-icon PNG with SVG.
2022-04-15 23:42:11 +02:00
Bartosz Taudul
6998546f27
Add file icon.
2022-04-13 23:35:06 +02:00
Bartosz Taudul
278c77e485
Update NEWS.
2022-04-13 23:03:48 +02:00
Bartosz Taudul
d0a234bbf5
Add tracy dump mime type definition.
2022-04-13 23:01:06 +02:00
Bartosz Taudul
9013d71d70
Steal desktop entry definition from AUR repository.
2022-04-13 21:55:14 +02:00
Bartosz Taudul
5eb724f34c
Add touchpad support for frames overview.
2022-04-13 01:37:56 +02:00
Bartosz Taudul
29b9d8ffe5
Merge pull request #362 from bjacob/capture-logging
...
make progress info and ANSI escapes conditional on being a TTY
2022-04-12 23:08:08 +02:00
Benoit Jacob
10ad96c29e
4-space indent
2022-04-12 20:36:08 +00:00
Benoit Jacob
92fdf12e05
make progress info and ANSI colors conditional on being a TTY
2022-04-12 20:31:47 +00:00
Bartosz Taudul
139fad81b9
Merge pull request #363 from bjacob/volatile-disconnect
...
Make `disconnect` atomic as it's written by a signal handler.
2022-04-12 21:18:40 +02:00
Benoit Jacob
ce1f6d0526
explicitly initialize as false - hope the compiler optimizes that
2022-04-12 17:47:14 +00:00
Benoit Jacob
331f39e6a5
rename to s_disconnect and make file-scope static
2022-04-12 17:45:33 +00:00
Benoit Jacob
55ae38a138
Make disconnect atomic because it's written by a signal handler
2022-04-12 17:34:41 +00:00
Bartosz Taudul
ccf35eb24a
Merge pull request #364 from Juice-Labs/meson-support
...
Adding tracy_no_sys_trace to enable MinGW builds which have an older version of envtprov.h
2022-04-12 19:13:13 +02:00
David McCloskey
f11e71fd09
Adding tracy_no_sys_trace to enable MinGW builds which have an older version of envtprov.h
2022-04-12 12:07:21 -05:00
Benoit Jacob
8c3868e43b
Make disconnect
volatile as it's written by a signal handler.
2022-04-12 16:06:54 +00:00
Bartosz Taudul
9b15870991
Merge pull request #361 from Juice-Labs/meson-support
...
Updating meson to perform a full build.
2022-04-08 19:55:02 +02:00
David McCloskey
ce8cb54b1b
Updating meson to perform a full build.
2022-04-08 12:18:08 -05:00
Bartosz Taudul
1fd39e90b9
Implement navigation from jump arrow context menu.
2022-04-06 23:41:46 +02:00
Bartosz Taudul
0e56397c5a
Don't show empty menu when source is not available.
2022-04-06 23:34:30 +02:00
Bartosz Taudul
6854055b49
Add symbol view screenshot.
2022-04-06 02:26:36 +02:00
Bartosz Taudul
5ea8c8ea5e
Update NEWS.
2022-04-06 02:04:25 +02:00
Bartosz Taudul
7893a83633
Display jump arrow context (src and target source code).
2022-04-06 02:01:29 +02:00
Bartosz Taudul
db3736983a
Always open jump arrow context menu.
2022-04-06 02:01:07 +02:00
Bartosz Taudul
4555910536
Extract source fragment printing functionality.
2022-04-06 01:54:14 +02:00
Bartosz Taudul
1b3464a386
Fix wrong source color box.
2022-04-06 01:42:13 +02:00
Bartosz Taudul
e34d79c0c7
Display target location for local jumps.
2022-04-06 01:23:35 +02:00
Bartosz Taudul
a763991a00
Note that feature flags must be consistent.
2022-04-05 20:51:37 +02:00
Bartosz Taudul
fc473a0c9d
Merge pull request #359 from robertblaketaylor/master
...
Set thread init false on thread exit for manual lifetime cases
2022-04-05 20:35:02 +02:00
Blake Taylor
c176d1d603
-Set thread init false on thread exit for manual lifetime cases
2022-04-05 09:12:05 -07:00
Bartosz Taudul
3d28d1259b
Check if ring buffer was properly mapped.
2022-04-04 17:56:40 +02:00
Bartosz Taudul
2b24ad27b2
Update NEWS.
2022-04-01 19:11:02 +02:00
Bartosz Taudul
2fc64fceba
Select appropriate branch cost, if no retirement data.
2022-04-01 19:09:56 +02:00
Bartosz Taudul
88a153504d
Show branch impact if no retirement data available.
...
Some CPUs are only able to report branch miss data, but not branch retirement
data.
2022-04-01 19:06:15 +02:00
Bartosz Taudul
d8ec98042a
Add branch retirement state accessor.
2022-04-01 18:48:11 +02:00
Bartosz Taudul
381f706796
Remember if there is branch retirement data.
2022-04-01 18:46:46 +02:00
Bartosz Taudul
4a8c4bde34
Update NEWS.
2022-04-01 18:35:19 +02:00
Bartosz Taudul
e83e83dae9
Revert "Backport SPSCQueue commit 3086fa9."
...
This reverts commit 2a3a57d245cc3e0736076dadeefd16f60853582f.
Fucking MSVC 2015 has chosen to emit errors on unsupported attributes.
2022-04-01 16:46:50 +02:00
Bartosz Taudul
ffc06087b9
Advise to set perf_event_paranoid to -1.
...
This enables access to context switch data.
2022-04-01 15:21:10 +02:00
Bartosz Taudul
1efb979e47
Add 0.8 video to README.
2022-03-31 02:13:31 +02:00
Bartosz Taudul
2b47c2a64e
Send priority queries before other queued up queries.
...
This ensures that simple to handle yet important queries are answered in a
timely manner. Previously an onslaught of slow symbol-related queries could
block e.g. zone name resolving for a couple of minutes.
2022-03-31 00:06:49 +02:00
Bartosz Taudul
5ae9e791a5
Make easy check first.
2022-03-31 00:06:49 +02:00
Bartosz Taudul
d691cb2a06
Define a list of priority queries.
2022-03-31 00:02:02 +02:00
Bartosz Taudul
8aeda02d8a
Update manual.
2022-03-30 16:32:35 +02:00
Bartosz Taudul
36fe040a3a
Update NEWS.
2022-03-30 16:11:02 +02:00
Bartosz Taudul
8532c2d1e0
Expose source file scan in update utility.
2022-03-30 16:08:20 +02:00
Bartosz Taudul
a335efe9e6
Implement scanning for source files missing in cache.
2022-03-30 16:07:15 +02:00
Bartosz Taudul
e086488928
Extract source file caching functionality.
2022-03-30 16:06:35 +02:00
Bartosz Taudul
9ba7171c3d
Release 0.8.0.
2022-03-28 21:20:44 +02:00
Bartosz Taudul
6b340b3700
Merge pull request #347 from bjacob/set-numcpus
...
set s_numCpus before reading it
2022-03-24 19:59:05 +01:00
Benoit Jacob
5eb3e3a1f0
set s_numCpus before reading it
2022-03-24 18:31:38 +00:00
Bartosz Taudul
fd604444eb
Merge pull request #346 from mcourteaux/master
...
Warn the user about capstone deprecated branch in the manual.
2022-03-23 18:09:38 +01:00
Bartosz Taudul
2e4c63c6dd
Fix typos.
2022-03-23 18:09:16 +01:00
Martijn Courteaux
9c9c11ae9e
Warn the user about capstone deprecated branch in the manual.
2022-03-23 18:05:22 +01:00
Bartosz Taudul
f1fea0331a
Merge pull request #344 from thedmd/callstack_table-clipboard_full_location
...
In callstack table view, copy full location with line to clipboard
2022-03-19 15:37:59 +01:00
thedmd
dc79ae6fea
In callstack table view, copy location with line to clipboard instead just location.
2022-03-19 09:48:48 +01:00
Bartosz Taudul
2a3a57d245
Backport SPSCQueue commit 3086fa9.
2022-03-18 02:09:00 +01:00
Bartosz Taudul
c2fcc699be
Apply SPSCQueue commit 62cdc1f3.
2022-03-18 02:05:55 +01:00
Bartosz Taudul
fdee87b0ae
Update robin_hood to 3.11.5.
2022-03-18 02:01:46 +01:00
Bartosz Taudul
ea59552c4e
Bump zstd to 1.5.2.
2022-03-18 01:52:11 +01:00
Bartosz Taudul
7d14aac137
Set focus on input field when find zone window appears.
2022-03-18 01:47:58 +01:00
Bartosz Taudul
3bb2094751
Sync libbacktrace with 2446c6.
2022-03-18 01:46:12 +01:00
Bartosz Taudul
dc874a732e
Merge pull request #339 from voysys/fix-server-assertion-crash
...
Ignore uninitialized GPU contexts when rendering GPU events
2022-03-17 18:54:34 +01:00
Bartosz Taudul
4d33dc0f3e
Update manual.
2022-03-15 17:51:28 +01:00
Bartosz Taudul
16f44d021d
Update NEWS.
2022-03-15 17:36:56 +01:00
Bartosz Taudul
8483ef4310
Indicate currently selected annotation.
2022-03-15 17:36:01 +01:00
Bartosz Taudul
4be2aa0682
Allow adding full-view annotations.
2022-03-15 17:26:12 +01:00
Bartosz Taudul
ba4b261ae4
Make the annotations list always accessible.
2022-03-15 17:25:52 +01:00
Bartosz Taudul
f17a579753
Move adding annotations to a separate function.
2022-03-15 17:25:28 +01:00
Bartosz Taudul
42688c9bf3
Add id to annotation description input box.
2022-03-15 17:24:53 +01:00
Bartosz Taudul
0b1e5d2c96
Define ___tracy_demangle on Android.
2022-03-11 15:40:56 +01:00
Bartosz Taudul
469774b1a9
Merge pull request #341 from teajay-fr/bugfix/access_violation_on_error
...
Avoid accessing address 0 when reporting a failure.
2022-03-10 14:52:40 +01:00
Thomas Bernard
79e146c957
Avoid accessing address 0 when reporting a failure.
2022-03-10 14:28:31 +01:00
Bartosz Taudul
7d3c7049dc
Fix compilation on MSVC 2015.
2022-03-10 12:27:44 +01:00
Niclas Olmenius
2c79194e7d
Ignore uninitialized GPU contexts when rendering GPU events
...
This fixes an assertion crash when viewing GPU zones when no zones have been
recorded on a GPU context if the client is compiled with TRACY_ON_DEMAND
2022-03-09 19:20:56 +01:00
Bartosz Taudul
90d8762c33
Merge pull request #337 from simonvanbernem/master
...
Make install_vcpkg_dendencies.bat work from any working directory
2022-03-07 19:08:55 +01:00
Simon van Bernem
8c155f8adc
Made install_vcpkg_dendencies.bat work from any working directory
...
pushd %~dp0 will push the directory that contains the file as the working directory and we also pop it at the end to be a good citizen and restore the previous working directory
2022-03-07 18:44:51 +01:00
Bartosz Taudul
843713a96e
Update manual.
2022-03-03 19:05:16 +01:00
Bartosz Taudul
efe22461cc
Implement going to parent zone in find zone window.
2022-03-03 15:39:07 +01:00
Bartosz Taudul
ee4f4f491f
Merge pull request #334 from daverigby/master
...
Fix macOS build breaks when _GNU_SOURCE defined
2022-02-28 17:44:59 +01:00
Dave Rigby
2073ffb684
program_invocation_short_name is Linux-specific
...
'program_invocation_short_name' is Linux-specific; other OSs such as
macOS do not support it.
Fixes build break on macOS 12.2 with _GNU_SOURCE defined.
2022-02-28 16:09:06 +00:00
Dave Rigby
31e4bef135
pthread_setname_np takes 1 arg on macOS
...
pthread_setname_np() can only set the name of the current thread on
macOS, so only pass a single name argument.
Fixes build break on macOS 12.2 with _GNU_SOURCE defined.
2022-02-28 16:07:12 +00:00
Bartosz Taudul
6c33a23390
Merge pull request #333 from sideeffects/opencl_transient
...
Add transient OpenCL Zones.
2022-02-27 23:19:11 +01:00
johner
194471487d
Update TracyOpenCL.hpp
...
Add transient OpenCL Zones.
2022-02-27 15:53:24 -06:00
Bartosz Taudul
a0ae37a350
Merge pull request #332 from Lectem/cmake_options
...
CMake: Add missing options
2022-02-23 22:39:19 +01:00
Clément Grégoire
f4f558bdc9
CMake: New description for TRACY_CALLSTACK
2022-02-23 14:29:20 +01:00
Clément Grégoire
d48fdafde7
Fix IPV4 -> IPv4 typo
2022-02-23 14:16:50 +01:00
Clément Grégoire
92a0feb821
CMake: Add the new TRACY_NO_CALLSTACK option
2022-02-23 14:09:04 +01:00
Clément Grégoire
2844fea858
CMake: Add missing options
2022-02-23 10:58:31 +01:00
Bartosz Taudul
a43da3dc13
Update manual.
2022-02-22 21:26:55 +01:00
Bartosz Taudul
6e1d4a7ec1
Update NEWS.
2022-02-22 21:26:55 +01:00
Bartosz Taudul
e2b0268d7a
Allow disabling callstack handling.
2022-02-22 21:26:55 +01:00
Bartosz Taudul
d318f75123
Merge pull request #325 from BrychDaneel/automatic_timer_fallback
...
Automatic timer fallback
2022-02-21 13:47:50 +01:00
Daniil Brychikov
a9ba1ce688
Codestyle fixes
2022-02-19 11:44:15 +03:00
Daniil Brychikov
73f6c66cde
Automatic timer fallback
2022-02-16 15:18:45 +03:00
Bartosz Taudul
46d2977694
prev_state is long.
2022-02-14 22:34:20 +01:00
Bartosz Taudul
9f2ffb05ac
Check if memory can be allocated in a thread.
...
Consider running the following code with operator new and delete overloaded to
track allocations with call stacks:
std::thread( []({ thread_local std::string str; });
Each call stack requires a memory allocation to be performed by the profiler,
to make the stack available at a later time. When the thread is created, the
TLS block is initialized and the std::string buffer can be allocated. To track
this allocation, rpmalloc has to be initialized. This initialization also
happens within the TLS block.
Now, when the thread exits, the heap managed by rpmalloc may be released first
during the TLS block destruction (and if the destruction is performed in
reverse creation order, then it *will* be destroyed first, as rpmalloc was
initialized only after the std::string initialization, to track the allocation
performed within). The next thing to happen is destruction of std::string and
release of the memory block it contains.
The release is tracked by the profiler, and as mentioned earlier, to save the
call stack for later use, a memory allocation is needed. But the allocator is
no longer available in this thread, because rpmalloc was released just before!
As a solution to this issue, profiler will detect whether the allocator is
still available and will ignore the call stack, if it's not. The other
solution is to disable the rpmalloc thread cleanup, which may potentially
cause leak-like behavior, in case a large number of threads is spawned and
destroyed.
Note that this is not a water-tight solution. Other functions will still want
to allocate memory for call stacks, but it is rather unlikely that such calls
would be performed during TLS block destruction. It is also possible that the
event queue will run out of allocated space for events at this very moment,
and in such a case the allocator will also fail.
2022-02-14 17:55:46 +01:00
Bartosz Taudul
793e6b0e29
Add rpmalloc thread state accessor.
2022-02-14 17:53:27 +01:00
Bartosz Taudul
20680fa6a3
Keep track of rpmalloc thread shutdown state.
2022-02-14 17:52:33 +01:00
Bartosz Taudul
72ae4d2ee4
Merge pull request #326 from Lectem/install_namepace
...
CMake install should use the Tracy:: namespace
2022-02-12 01:14:52 +01:00
Bartosz Taudul
278878e4f1
Merge pull request #327 from Lectem/fix_cmake_uwp
...
Fix missing TracyUwp in the CMake headers install
2022-02-12 00:26:57 +01:00
Clément Grégoire
5a67fa99a7
Fix missing TracyUwp in the CMake headers install
2022-02-12 00:20:37 +01:00
Clément Grégoire
0b6c60de76
Since tracy provides the Tracy::TracyClient it should also install with that namespace
2022-02-11 23:58:47 +01:00
Bartosz Taudul
4084dec939
Update AUTHORS.
2022-02-11 20:22:53 +01:00
Bartosz Taudul
af136f8289
Update NEWS.
2022-02-11 20:21:32 +01:00
Bartosz Taudul
a2d017c456
Merge pull request #324 from shapr3d/uwp_fix
...
Make Tracy usable in UWP applications
2022-02-11 20:20:18 +01:00
Balazs Kovacsics
aa44cedcd2
Fix indentation
2022-02-11 17:14:16 +01:00
Balazs Kovacsics
85e16ee33a
Add UWP platform limitations to manual
2022-02-11 14:14:27 +01:00
Balazs Kovacsics
a0a56eaf9e
Move TRACY_UWP define to own header
2022-02-10 20:26:45 +01:00
Balazs Kovacsics
7169f5f30a
Fix compiling TracyClient.cpp on UWP with defined TRACY_ENABLE
2022-02-09 22:14:36 +01:00
Balazs Kovacsics
10b3d7ad82
Fix compiling TracyClient.cpp on UWP with undefined TRACY_ENABLE
2022-02-09 18:25:04 +01:00
Bartosz Taudul
92b182d47e
Font Awesome is licensed under SIL OFL.
...
"In the Font Awesome Free download, the SIL OFL license applies to all icons
packaged as web and desktop font files."
2022-02-08 21:30:49 +01:00
Bartosz Taudul
fe927d63f7
Update to Font Awesome 6.
2022-02-08 21:27:51 +01:00
Bartosz Taudul
1a4f369d4a
Backport 19471da from ImGui.
...
https://github.com/ocornut/imgui/issues/4920
2022-02-03 01:59:56 +01:00
Bartosz Taudul
f058ad01fc
Don't process ring buffers when not connected in on-demand mode.
2022-01-31 20:53:10 +01:00
Bartosz Taudul
361782f3fd
Fix edge case triggered by mouse being out-of-window.
2022-01-29 15:53:50 +01:00
Bartosz Taudul
df96293477
Create GPU source location zones stats entry, if not present.
...
In case of CPU statistics data, this entry is created during creation of a
source location. This won't be done for GPU zones, as it would needlessly
expand the number of held entries. This is assuming the number of GPU zones
is significantly less than the number of CPU zones.
2022-01-29 15:45:25 +01:00
Bartosz Taudul
32173dca29
Update NEWS.
2022-01-29 15:35:52 +01:00
Bartosz Taudul
f4043d9bb8
Display GPU zone statistics.
2022-01-29 15:35:25 +01:00
Bartosz Taudul
45c7edcc96
GPU source locations zones data accessor.
2022-01-29 15:22:49 +01:00
Bartosz Taudul
6d55f79109
Save source location data counts.
2022-01-29 15:14:43 +01:00
Bartosz Taudul
2ca4b0058a
Add AreGpuSourceLocationZonesReady() query.
2022-01-29 00:51:43 +01:00
Bartosz Taudul
ba87929074
Perform GPU statistics reconstruction.
...
Note: Zone counts are currently being calculated, but they are not being
saved. Proper usage of this data (as is performed in the CPU counterpart)
would remove the possibility of insertion of new entries into the map in
ReconstructZoneStatistics().
2022-01-29 00:48:01 +01:00
Bartosz Taudul
7870ca9da6
Add GPU mutable children accessor.
2022-01-29 00:40:11 +01:00
Bartosz Taudul
7a1b9efc2f
Add GPU statistics radio button.
2022-01-29 00:33:53 +01:00
Bartosz Taudul
28d029f820
Collection of GPU statistics.
2022-01-29 00:15:33 +01:00
Bartosz Taudul
f9279afaec
GPU zone counting.
2022-01-29 00:15:32 +01:00
Bartosz Taudul
f1095bba12
GPU statistics data accessors.
2022-01-29 00:15:32 +01:00
Bartosz Taudul
8533bdf5f4
Add data structures for GPU statistics.
2022-01-29 00:15:31 +01:00
Bartosz Taudul
fcced3c76a
Don't call SameLine() twice in a row.
2022-01-29 00:15:31 +01:00
Bartosz Taudul
3ee91b909f
Unify comparison for accumulation mode combo box.
2022-01-29 00:15:28 +01:00
Bartosz Taudul
f3f5f1dab8
Merge pull request #313 from cloudhan/update-opencl
...
Update OpenCL
2022-01-28 12:01:00 +01:00
Cloud Han
c9fb07ffe5
remove blocking collect
2022-01-28 11:55:42 +08:00
Bartosz Taudul
701ecdebaa
Merge pull request #317 from hulakdar/master
...
Fix MSVC warnings
2022-01-26 21:46:25 +01:00
hulakdar
e98f7e5019
Fix potentially unitialized value warning
2022-01-26 21:08:54 +02:00
hulakdar
9fda60820a
Silence padding warnings, as this is intended behaviour
2022-01-26 21:08:54 +02:00
Cloud Han
f6769ecb91
better error discoverability if queue is not created with CL_QUEUE_PROFILING_ENABLE
2022-01-25 12:59:35 +08:00
Cloud Han
9b60c4970e
better example
2022-01-25 12:59:35 +08:00
Cloud Han
21b748ac84
add back non-blocking collect
2022-01-25 12:59:28 +08:00
Cloud Han
d660425e00
mute warnings
2022-01-25 12:17:11 +08:00
Cloud Han
f8d231bbc9
stop using macro in TRACY_CL_CHECK_ERROR
2022-01-25 12:17:11 +08:00
Cloud Han
e28c562a20
add log and simple statistics for async kernel
2022-01-25 12:17:04 +08:00
Cloud Han
f6894c8d6c
Make OpenCL example async
2022-01-25 12:17:03 +08:00
Cloud Han
d5d0a8676e
Update OpenCL support for better error discoverability
...
Solely rely on `assert` make the error undiscoverable because it only
works if NDEBUG is not defined. Always log with TracyMessage for Release
build.
2022-01-25 12:17:03 +08:00
Bartosz Taudul
8331df64be
Merge pull request #315 from hulakdar/master
...
Actually check for the required feature
2022-01-22 12:38:26 +01:00
hulakdar
683fcbe5a4
Actually check for the required feature
2022-01-22 11:24:59 +02:00
Bartosz Taudul
332c3aa242
Merge pull request #314 from Dantali0n/fix-opencl-vectoradd
...
Fix OpenCLVectorAdd example
2022-01-20 13:03:28 +01:00
Bartosz Taudul
94bcc6ffcc
Update OpenCLVectorAdd.cpp
...
Cosmetics.
2022-01-20 13:02:38 +01:00
Dantali0n
e73d21f5da
Bump OpenCLVectorAdd cmake version to 3.10
2022-01-20 12:44:00 +01:00
Dantali0n
1120f0b07e
Cross platform solution to linking OpenCLVectorAdd libraries
2022-01-20 12:42:51 +01:00
Dantali0n
bff83aab4a
Fix OpenCLVectorAdd example
2022-01-20 11:09:33 +01:00
Bartosz Taudul
7cdf640a82
Merge pull request #312 from Honeybunch/master
...
Fixing CMake Install
2022-01-13 00:50:47 +01:00
Honeybunch
12b0631f28
Merge branch 'master' of https://github.com/wolfpld/tracy
2022-01-12 14:59:04 -08:00
Honeybunch
a7fbfba27d
Fixing install
2022-01-12 14:57:41 -08:00
Bartosz Taudul
fd4f458e3d
Merge pull request #308 from JaldertVicarious/manual-wording-fix
...
[Minor] wording fix
2022-01-06 13:40:28 +01:00
Jaldert Rombouts
00e1cbcefe
[Minor] wording fix
2022-01-06 10:29:37 +00:00
Bartosz Taudul
4731bb9ec1
Cast GetProcAddress() ptr to const void*.
2022-01-05 20:03:20 +01:00
Bartosz Taudul
199b6ba798
Update copyright date in LICENSE.
2022-01-01 17:43:38 +01:00
Bartosz Taudul
8089040e64
CallTrace() is no longer present.
2022-01-01 17:35:01 +01:00
Bartosz Taudul
621c68352b
Call RtlWalkFrameChain directly from inlined function.
2022-01-01 17:33:39 +01:00
Bartosz Taudul
f5bfb47ec1
Fix line endings.
2022-01-01 17:02:05 +01:00
Bartosz Taudul
c6da04a18b
Use TooltipIfHovered() where appropriate.
2022-01-01 16:57:48 +01:00
Bartosz Taudul
d5f12744c4
Display unique node cost in trees.
2022-01-01 16:27:16 +01:00
Bartosz Taudul
6b9ccb3077
Tooltip shortcut function.
2022-01-01 16:10:49 +01:00
Bartosz Taudul
845cf43711
Update NEWS.
2021-12-31 15:10:07 +01:00
Bartosz Taudul
6257ec6b7f
Make the callstack parents trees scrollable.
2021-12-31 15:08:46 +01:00
Bartosz Taudul
4b167fa3df
Allow time display in callstack parents trees.
2021-12-31 15:06:26 +01:00
Bartosz Taudul
563daed10f
Add bottom/top tree to callstack parents.
2021-12-31 15:01:06 +01:00
Bartosz Taudul
5d439c0165
Round jump separation.
2021-12-30 16:35:18 +01:00
Bartosz Taudul
5a2a58f68f
Make capture output better suited for 80-char-wide terminals.
2021-12-30 16:21:25 +01:00
Bartosz Taudul
776d8336e7
Update manual.
2021-12-30 15:05:53 +01:00
Bartosz Taudul
adb168a5ea
Fix offset.
2021-12-30 03:19:03 +01:00
Bartosz Taudul
36068d1f2b
Condense hw samples.
2021-12-29 14:07:37 +01:00
Bartosz Taudul
0d5fbff07f
Adjust jump arrow separation to DPI scale.
2021-12-29 13:44:58 +01:00
Bartosz Taudul
ae9b9318e8
Fix calculation of jump arrows offset.
2021-12-29 13:41:55 +01:00
Bartosz Taudul
81de0a3a75
Display source location of symbol functions.
2021-12-24 03:19:13 +01:00
Bartosz Taudul
dc2ac4e4b3
Display child calls source locations.
2021-12-24 03:11:46 +01:00
Bartosz Taudul
acd8a32672
Fix referencing unknown symbol.
2021-12-24 02:36:28 +01:00
Bartosz Taudul
69c635f8bf
VK_TIME_DOMAIN_MAX_ENUM_EXT may be undefined.
2021-12-23 21:40:19 +01:00
Bartosz Taudul
c4c43ef7fe
Take rounding into consideration.
2021-12-23 16:02:07 +01:00
Bartosz Taudul
ac21169f35
Vertically condense fixed width font.
2021-12-23 14:17:28 +01:00
Bartosz Taudul
e822dde7e1
Merge thedmd/feature/font-line-spacing into ImGui.
2021-12-23 14:17:01 +01:00
Bartosz Taudul
b83cda575a
Add Rembrandt cpuid.
2021-12-23 13:34:24 +01:00
Bartosz Taudul
29d7115815
Add ADL cpuid.
2021-12-23 13:32:17 +01:00
Bartosz Taudul
12e0cb2036
Reorder uarch list. Push old ones to the bottom.
2021-12-23 13:28:06 +01:00
Bartosz Taudul
4642afdb9d
Add Alder Lake to uarch selection list.
2021-12-23 13:24:26 +01:00
Bartosz Taudul
828f1447be
Update NEWS.
2021-12-23 13:19:51 +01:00
Bartosz Taudul
1ecd28a31f
Add Alder Lake uops info.
2021-12-23 13:17:50 +01:00
Bartosz Taudul
e368266837
Add custom demangler interface.
2021-12-22 18:17:48 +01:00
Bartosz Taudul
6b59ccfe4d
GetFontSize() -> GetTextLineHeight().
2021-12-22 17:57:57 +01:00
Bartosz Taudul
9fae8b7e42
Don't use obsolete functions.
2021-12-22 17:08:27 +01:00
Bartosz Taudul
8dc403506f
Bump ImGui to 1.86.
2021-12-22 17:00:41 +01:00
Bartosz Taudul
5d78e5ca1f
Update manual.
2021-12-22 16:42:57 +01:00
Bartosz Taudul
2f0d4a7707
Merge pull request #294 from Lectem/symbols_post_init
...
Call SymLoadModuleEx for modules loaded after init (Fixes #293 )
2021-12-22 16:36:08 +01:00
Bartosz Taudul
29dc2fadf9
Do not bail-out on software sampling failure.
2021-12-21 22:09:40 +01:00
Bartosz Taudul
f1fa352a13
/sys/kernel/debug/tracing/... files are accessible on android.
2021-12-21 21:10:17 +01:00
Bartosz Taudul
efae847690
Replace getline().
2021-12-21 20:28:18 +01:00
Bartosz Taudul
7f10265e34
Keep ring buffer size unsigned.
2021-12-21 20:24:52 +01:00
Bartosz Taudul
81ae7c06b8
Android libstdc++ is really stupid, it seems.
2021-12-21 19:56:32 +01:00
Bartosz Taudul
c4e08def0d
Update NEWS.
2021-12-21 16:24:09 +01:00
Bartosz Taudul
12b7efd88a
Update feature matrix.
2021-12-21 15:56:12 +01:00
Bartosz Taudul
5741bcfd32
Make ring buffer size adjustable.
...
If call stack capture is enabled for context switch data, the 64KB buffer is
too small to work without overruns. However, if the default buffer size is
increased, then the maximum locked memory limit is hit.
This change keeps the small buffer size for all the buffers that may be used
without escalated privileges. The context switch buffer is bigger, but it does
not need to obey the limits, as the application is running as root, if it is
to be used.
2021-12-21 15:48:40 +01:00
Bartosz Taudul
db64a5fa7e
Explicitly save context switch callstack samples.
2021-12-21 15:24:11 +01:00
Bartosz Taudul
67c2ffcb17
Look for context switch stacks on both ends of a switch.
2021-12-21 14:36:47 +01:00
Bartosz Taudul
c5654c333a
Process explicit context switch callstack samples.
2021-12-21 14:18:32 +01:00
Bartosz Taudul
3f1c540b3a
Further split ProcessCallstackSampleImpl().
2021-12-21 14:18:14 +01:00
Bartosz Taudul
d88bf2c7a8
Separate message type for context switch callstack samples.
2021-12-21 14:05:07 +01:00
Bartosz Taudul
0ba2c0a86e
Collect context switch callstack on Linux.
2021-12-21 13:59:16 +01:00
Bartosz Taudul
0c041795b6
Move Linux calltrace processing to a separate function.
2021-12-21 13:58:43 +01:00
Bartosz Taudul
4a89a30556
Implement checking if any TID is within current process.
2021-12-21 13:52:52 +01:00
Bartosz Taudul
b8d7824a4f
Increase ring buffer size.
2021-12-21 13:27:08 +01:00
Bartosz Taudul
5768486ac0
Add support for compiling assembly files.
2021-12-21 12:22:43 +01:00
Bartosz Taudul
8c45ed33fd
Bump zstd to 1.5.1.
2021-12-21 12:22:42 +01:00
Bartosz Taudul
6fa3491bb7
Merge pull request #304 from Krzmbrzl/patch-4
...
Mention dependency on libtbb
2021-12-20 13:23:13 +01:00
Bartosz Taudul
b2e29a503b
Cosmetics.
2021-12-20 13:22:53 +01:00
Robert Adam
a46be65b05
Mention dependency on libtbb
...
Fixes #239
2021-12-20 12:00:27 +01:00
Bartosz Taudul
e0e1919fbf
Merge pull request #302 from Krzmbrzl/patch-3
...
CMakeLists: Fix typo
2021-12-19 03:10:27 +01:00
Robert Adam
96141cdef0
CMakeLists: Fix typo
...
Fixes #298
2021-12-18 20:14:06 +01:00
Bartosz Taudul
f207f2abd4
Merge pull request #300 from Krzmbrzl/patch-2
...
CMake: Mark include directories as SYSTEM
2021-12-17 17:58:52 +01:00
Robert Adam
43303323a0
CMake: Mark include directories as SYSTEM
...
This usually prevents the compiler from emitting warnings about stuff it found in
the included files.
Since the CMakeLists.txt seems to be exclusively meant for code that is making use
of Tracy rather than Tracy itself using it to build, silencing the warnings should probably
be what most folks would want.
This will prevent things like #126
2021-12-17 17:23:16 +01:00
Lectem
5d0466b729
Rename GetModuleName and call it before sym* use
2021-12-12 14:32:24 +01:00
Bartosz Taudul
a13b046698
User manual polish pass.
2021-12-11 21:00:31 +01:00
Bartosz Taudul
9b624049a5
Immediately disconnect connection on disconnect request.
...
The disconnect handling logic is broken on the client, after the symbol
resolution was moved to a separate thread. Use workaround until a proper fix
is available.
2021-12-11 13:15:50 +01:00
Lectem
17855cbac5
Call SymLoadModuleEx for modules loaded after init
...
This fixes issue #293 . Symbols are not loaded if the module is loaded dynamically after the SymInitialize call.
This may stall the symbol resolver thread a bit the first time a module is loaded.
2021-12-08 21:30:06 +01:00
Bartosz Taudul
14392a6e0e
Merge pull request #290 from Honeybunch/master
...
Exporting cmake targets for install
2021-12-07 18:44:05 +01:00
Honeybunch
ef795ba49d
Exporting cmake targets for install
2021-12-06 08:58:25 -08:00
Bartosz Taudul
14cdf3d43e
Use perf_event_open for context switch tracking.
2021-12-05 12:02:28 +01:00
Bartosz Taudul
0a3da9efdb
Optional CPU idx storage in RingBuffer.
2021-12-05 03:03:14 +01:00
Bartosz Taudul
d7dc2d6127
Extend process state descriptions, add P (parked).
2021-12-05 01:32:33 +01:00
Bartosz Taudul
6a0d233613
Proper mmap failure detection.
2021-12-05 01:32:33 +01:00
Bartosz Taudul
22284d57e7
Don't identify samples if there will be no context switches.
2021-12-05 01:32:30 +01:00
Bartosz Taudul
0c809b14d5
Merge pull request #289 from napoleon89/c-is-connected
...
Added IsConnected C API Equivalent
2021-12-04 18:47:21 +01:00
Bartosz Taudul
14825d8e5a
Proper formatting.
2021-12-04 18:27:26 +01:00
Nathan Day
3bf1e7ec1c
Updated documentation
2021-12-04 17:26:17 +00:00
Nathan Day
bdafd0c7b6
Added IsConnected C API Equivalent
2021-12-04 16:55:41 +00:00
Bartosz Taudul
bbbae35925
Only identify samples when IdentifySamples is set.
2021-12-04 15:16:17 +01:00
Bartosz Taudul
20f8c8b8a4
Add IdentifySamples flag to the protocol.
...
On Windows there is no way to distinguish callstack data coming from random
sampling and from context switches. Each callstack timestamp has to be matched
against the context switch data in order to decide its origin. This is
obviously non-trivial.
On some other platforms, the origin information may be available right away,
in which case the process of matching against the context switch data, which
possibly includes postponing callstacks for processing in the future, may be
completely omitted.
2021-12-04 14:50:25 +01:00
Bartosz Taudul
2008c88983
Silence compiler warnings.
2021-12-04 13:41:55 +01:00
Bartosz Taudul
152d47f4d3
Update manual.
2021-12-02 02:34:21 +01:00
Bartosz Taudul
c98680ad0b
Add support for sample data without time.
2021-12-02 02:06:05 +01:00
Bartosz Taudul
74e2a63516
Don't require time to be available for samples.
2021-12-02 01:29:22 +01:00
Bartosz Taudul
051b1ba8f5
Display sampling disabled message on debug log channel.
2021-12-02 00:49:01 +01:00
Bartosz Taudul
6579399bfd
Update xxHash to 0.8.1.
2021-12-01 21:52:31 +01:00
Bartosz Taudul
1a0cf3ff46
Update robin_hood to 3.11.3.
2021-12-01 21:44:56 +01:00
Bartosz Taudul
ce7faf99c9
Show tooltip on disabled item.
2021-12-01 17:41:00 +01:00
Bartosz Taudul
b4987f5fc4
Update manual.
2021-11-29 19:40:52 +01:00
Bartosz Taudul
899b466ba4
There is more than one wait stack.
2021-11-29 19:34:43 +01:00
Bartosz Taudul
688dd470bc
Update NEWS.
2021-11-29 19:30:14 +01:00
Bartosz Taudul
5c379603b5
Move onlyActive check out of the loops.
2021-11-29 19:23:31 +01:00
Bartosz Taudul
04f045b22b
Replace "restrict time" with time range limits in memory.
2021-11-29 19:20:56 +01:00
Bartosz Taudul
de11604910
Add memory time range limit UI.
2021-11-29 18:17:19 +01:00
Bartosz Taudul
bad8df4878
Update feature matrix.
2021-11-28 13:44:41 +01:00
Bartosz Taudul
f3ee2235f6
Enable sample parents selection for self-less symbols.
2021-11-27 18:12:06 +01:00
Bartosz Taudul
05f9c74170
Don't include inlines when separate inlines are enabled.
2021-11-27 18:05:05 +01:00
Bartosz Taudul
582fcd5538
Fix sample parents for the whole symbol.
...
Previously when whole symbol was selected, it wasn't. All the inlines were
ignored and the data was displayed only for the base (self) symbol.
2021-11-27 17:55:18 +01:00
Bartosz Taudul
d8a611e952
Also calculate sample parents without inlines.
2021-11-27 17:47:09 +01:00
Bartosz Taudul
687d4defc0
Cosmetics.
2021-11-27 17:46:43 +01:00
Bartosz Taudul
52eeddd63a
Fix display of entry call stacks when inlines are present.
2021-11-27 16:41:27 +01:00
Bartosz Taudul
ed25c27228
Update manual.
2021-11-27 15:46:24 +01:00
Bartosz Taudul
a84fd26ecb
Change toggle button to faux drop down.
2021-11-27 15:40:23 +01:00
Bartosz Taudul
11a8f30ff9
Update NEWS.
2021-11-27 15:34:00 +01:00
Bartosz Taudul
355a179678
Merge callstack samples with the same timestamp.
2021-11-27 15:29:33 +01:00
Bartosz Taudul
4f735e1ae2
Extract callstack merging.
2021-11-27 15:06:58 +01:00
Bartosz Taudul
58d5fb2ff4
Fix calculation of child sample counts.
2021-11-27 14:49:22 +01:00
Bartosz Taudul
702c87dad0
Display list of child calls.
2021-11-27 14:43:31 +01:00
Bartosz Taudul
6a7b4e6066
Add calculation of child stats to source view.
2021-11-27 14:42:23 +01:00
Bartosz Taudul
85f755f3f5
Use proper base symbol address.
2021-11-27 14:30:46 +01:00
Bartosz Taudul
a02575322f
Collect child sample addresses.
2021-11-27 02:03:59 +01:00
Bartosz Taudul
2462e6cc7c
Update NEWS.
2021-11-27 00:07:59 +01:00
Bartosz Taudul
6fd53a662a
Update manual.
2021-11-27 00:07:54 +01:00
Bartosz Taudul
e3d16a162e
Merge pull request #288 from slembcke/master
...
Add fibers to TracyC.h
2021-11-27 00:01:24 +01:00
slembcke
bfe94b921e
Renaming to match convention.
2021-11-26 17:00:22 -06:00
slembcke
87a727dd7f
Add fibers to TracyC.h
2021-11-26 16:49:39 -06:00
Bartosz Taudul
d41447b0c9
Pass full module path to LoadLibraryEx().
2021-11-25 23:27:20 +01:00
Bartosz Taudul
a27d1902ae
Store paths to kernel modules.
2021-11-25 23:27:05 +01:00
Bartosz Taudul
cd3be7c175
Update NEWS.
2021-11-25 23:14:09 +01:00
Bartosz Taudul
8428ede59d
Retrieve kernel symbols on Windows.
2021-11-25 23:12:41 +01:00
Bartosz Taudul
4bde9022e1
Properly acknowledge unavailable symbol code.
2021-11-25 22:44:56 +01:00
Bartosz Taudul
abdd6020ba
No need to remember addresses of symbol code queries.
2021-11-25 22:35:43 +01:00
Bartosz Taudul
b4da047355
Don't filter out kernel symbols from code transfer.
2021-11-25 22:28:05 +01:00
Bartosz Taudul
e8fb2abb2a
Dispatch kernel code retrieval.
2021-11-25 22:27:35 +01:00
Bartosz Taudul
47ea2a222d
Add new metadata message, not for wire transfer.
2021-11-25 22:24:17 +01:00
Bartosz Taudul
01db142144
Rpmalloc is initialized here.
2021-11-25 22:23:28 +01:00
Bartosz Taudul
1ed174c1b6
Expose GetModuleName() outside TracyCallstack.cpp.
2021-11-25 21:56:13 +01:00
Bartosz Taudul
2bd1e5bca7
Merge pull request #283 from expenses/c-gpu-zones
...
Implement a bare-bones C API for graphics profiling
2021-11-24 12:50:20 +01:00
Ashley Ruglys
2db109ab98
Add serial functions
2021-11-24 11:56:43 +01:00
Ashley Ruglys
2995db4b5e
Remove the 'active' argument
2021-11-24 11:45:37 +01:00
Bartosz Taudul
ac331d0343
Fix one frame lag of out-of-trace dimming.
2021-11-22 01:19:37 +01:00
Bartosz Taudul
6c08943e66
Don't perform any work in collapsed windows.
2021-11-22 01:15:22 +01:00
Bartosz Taudul
9b1b56de26
Increase big font size.
2021-11-21 23:57:31 +01:00
Bartosz Taudul
f63e4481b5
Update manual.
2021-11-20 17:09:21 +01:00
Bartosz Taudul
cad65ab52f
Handle magic dbghelp line numbers.
...
https://github.com/Microsoft/microsoft-pdb/issues/16
https://docs.microsoft.com/en-us/archive/blogs/jmstall/line-hidden-and-0xfeefee-sequence-points
2021-11-20 17:09:20 +01:00
Bartosz Taudul
bcdbd2f7d7
Add simple fiber example.
2021-11-20 17:09:20 +01:00
Bartosz Taudul
b3562c99fb
Display jump target/source function names.
2021-11-20 14:50:26 +01:00
Bartosz Taudul
7b2ed41179
Push small font to SourceView.
2021-11-20 14:47:13 +01:00
Bartosz Taudul
f0d524ad1f
Don't pass font to SourceView ctor.
2021-11-20 14:44:22 +01:00
Bartosz Taudul
3e78c826cf
Adapt minimum samples distance to DPI scaling.
2021-11-20 13:51:42 +01:00
Bartosz Taudul
8d65b190d6
Handle frame image dictionary creation failures.
2021-11-20 03:30:28 +01:00
Bartosz Taudul
b4dab753e6
List jump source locations.
2021-11-20 02:30:49 +01:00
Bartosz Taudul
fbe85ff8d3
Adapt hotness indicators to DPI scale.
2021-11-20 02:19:50 +01:00
Bartosz Taudul
0f215c7393
Keep text shadow offset constant.
...
ImGui aligns the text to be pixel perfect. Fractional offset of shadow made it
move not in sync with the text proper.
2021-11-20 01:55:47 +01:00
Bartosz Taudul
261721b8a3
Don't provide number of segments to generate in a circle.
2021-11-20 01:46:34 +01:00
Bartosz Taudul
dd6a973fbe
Adapt context switch line size to DPI scale.
2021-11-20 01:46:14 +01:00
Bartosz Taudul
a075323a80
Draw smaller "inline" index in callstacks.
2021-11-20 01:36:05 +01:00
Bartosz Taudul
b8766ad5d7
Apply DPI scale to text shadow.
2021-11-20 01:24:37 +01:00
Bartosz Taudul
be9cbfc3e2
Move GetScale() to TracyImGui.hpp.
2021-11-20 01:21:06 +01:00
Bartosz Taudul
9af87a8c20
Fonts should have integer size.
...
Otherwise rendering artifacts will be present.
2021-11-20 01:17:09 +01:00
Bartosz Taudul
cccce5534c
Replace Arimo with Droid Sans.
2021-11-20 01:14:46 +01:00
Bartosz Taudul
d0d0aca758
Use font helpers.
2021-11-19 21:09:13 +01:00
Bartosz Taudul
e0a6c51a2f
Add font set/unset helpers.
2021-11-19 21:06:07 +01:00
Bartosz Taudul
dd8083e0ee
Prevent out-of-bounds access.
...
This fixes the issue when assembly view is scrolled to the bottom of the
screen and display scale is reduced by the user. In such case clipper will
report DisplayStart to be at the end element, which would cause out-of-bounds
access to the m_asm array.
Clipper self-fixes this in the next frame, so this workaround is enough.
2021-11-19 20:58:09 +01:00
Bartosz Taudul
c23abca979
Round jump arrows offsets.
2021-11-19 20:56:09 +01:00
Bartosz Taudul
be7d688558
Update licenses.
2021-11-19 20:49:28 +01:00
Bartosz Taudul
10e680e601
Replace Cousine fixed-width font with Fira Code Retina.
2021-11-19 18:39:20 +01:00
Bartosz Taudul
fdadb9cb63
Update source view font.
2021-11-18 23:03:17 +01:00
Bartosz Taudul
04477a64b7
Update font pointers held in main.cpp.
2021-11-18 22:55:27 +01:00
Bartosz Taudul
f9904c1f5d
Update NEWS.
2021-11-18 22:49:03 +01:00
Bartosz Taudul
f3ea9e1314
Add run-time UI scaling menu.
2021-11-18 22:48:32 +01:00
Bartosz Taudul
cfec8257cb
Don't change ImGui fonts during render job.
2021-11-18 22:48:14 +01:00
Bartosz Taudul
2243b6e293
Reset style.
2021-11-18 22:47:58 +01:00
Bartosz Taudul
40b9fe7dae
Reload font atlas.
2021-11-18 22:47:46 +01:00
Bartosz Taudul
902de497dc
Allow forceful insertion into main thread queue.
...
This is useful to run some tasks outside of the main render job.
2021-11-18 22:46:59 +01:00
Bartosz Taudul
89ca010146
Add scale setup callback infrastructure.
2021-11-18 22:22:11 +01:00
Bartosz Taudul
5a9344716d
Extract fonts and style setup to separate functions.
2021-11-18 22:14:31 +01:00
Bartosz Taudul
18a35dd0c3
Document TRACY_CRASH_SIGNAL macro.
2021-11-18 21:49:25 +01:00
Bartosz Taudul
c5e41b34b7
Update NEWS.
2021-11-18 20:45:45 +01:00
Bartosz Taudul
01a0363c29
Adapt item width to DPI scale.
2021-11-18 20:33:44 +01:00
Bartosz Taudul
bbbd78883c
Allow crash signal selection by user.
2021-11-18 20:20:10 +01:00
Bartosz Taudul
0b869bcb13
Adapt network graph to DPI scale.
2021-11-18 20:12:41 +01:00
Bartosz Taudul
1dff4329e4
Adapt window sizes to DPI scaling.
2021-11-18 19:20:45 +01:00
Bartosz Taudul
4d397aeb67
Add helper for getting DPI scaling.
2021-11-18 19:04:21 +01:00
Bartosz Taudul
09de127ca2
Adapt release notes window size to DPI scaling.
2021-11-18 18:57:43 +01:00
Ashley Ruglys
bf1896f6ba
memset the thread to 0 when writing the GpuZoneEnd as this seems to prevent an assert failure
2021-11-17 18:14:57 +01:00
Ashley Ruglys
cc45865239
Small formatting changes
2021-11-17 11:31:02 +01:00
Ashley Ruglys
91b4058dc4
Implement bare-bones functionality for gpu contexts in the C api
2021-11-17 11:27:52 +01:00
Bartosz Taudul
1002e949d6
Enable playback frame change with mouse wheel.
2021-11-15 02:34:13 +01:00
Bartosz Taudul
176bc279f1
Don't copy short_ptr.
2021-11-15 02:18:19 +01:00
Bartosz Taudul
641338cb3c
Remove postponed samples when they are handled.
2021-11-14 23:55:44 +01:00
Bartosz Taudul
bb30333947
Implement erase() in SortedVector.
...
Requires vector to be sorted, in order to not bother with recalculating
sortedEnd value.
2021-11-14 23:54:39 +01:00
Bartosz Taudul
710a488af0
Handle postponed samples with SortedVector.
2021-11-14 23:48:50 +01:00
Bartosz Taudul
590a4afb89
Full dequeue is needed to handle symbol queries.
2021-11-14 19:24:05 +01:00
Bartosz Taudul
1575455a54
Update licenses.
2021-11-14 19:08:06 +01:00
Bartosz Taudul
a5f5dcc00f
Remove capacity safeties.
2021-11-14 18:52:57 +01:00
Bartosz Taudul
5306034893
Remove unused methods.
2021-11-14 18:52:27 +01:00
Bartosz Taudul
9055a31156
Decrease number of SPSCQueue items to 8K.
...
This matches the query limit set on the server.
2021-11-14 18:51:11 +01:00
Bartosz Taudul
a203eb5aef
Adapt to SPSCQueue interface.
2021-11-14 18:50:59 +01:00
Bartosz Taudul
93f83fc50c
Remove allocator silliness.
2021-11-14 18:42:07 +01:00
Bartosz Taudul
fe04cf0b35
Move SPSCQueue to tracy namespace.
2021-11-14 18:31:58 +01:00
Bartosz Taudul
20e3ec92b9
Replace readerwriterqueue with SPSCQueue.
2021-11-14 18:27:25 +01:00
Bartosz Taudul
f2380590f9
Limit server query space to 8K entries.
...
In the default configuration this limit is unlikely to be hit. On Windows the
send buffer is 64 KB, which results in ~5K entries. On Linux the buffer is a
bit higher and the number of entries is lower than 7K.
2021-11-14 18:14:52 +01:00
Bartosz Taudul
0e05d70691
Remove obsolete check.
2021-11-14 17:09:37 +01:00
Bartosz Taudul
ffa8bf4d75
Use table instead of map to track reentrant calls.
2021-11-14 16:42:11 +01:00
Bartosz Taudul
cb004e9cc0
Sort source location zones only when needed.
2021-11-14 16:05:55 +01:00
Bartosz Taudul
befeffb61e
Add ensure_sorted() method for SortedVector.
2021-11-14 15:57:20 +01:00
Bartosz Taudul
404168ec69
Check whether symbols are ready, not source locations.
2021-11-14 15:51:29 +01:00
Bartosz Taudul
e0872ce61b
Cosmetics.
2021-11-14 15:51:27 +01:00
Bartosz Taudul
864d7e4e47
Sort symbols list only when actually needed.
2021-11-14 13:05:05 +01:00
Bartosz Taudul
b978a7c652
Sort plot data only when needed (i.e. to draw).
2021-11-14 13:01:27 +01:00
Bartosz Taudul
68d2812e82
Retarget ToyPathTracer to MSVC 2022.
2021-11-14 12:22:52 +01:00
Bartosz Taudul
50e532ebc0
Display unknown locations dimmed in callstack trees.
2021-11-14 02:27:43 +01:00
Bartosz Taudul
19f87502d3
Keep wait stacks header on top.
2021-11-14 02:17:02 +01:00
Bartosz Taudul
2040ef945f
Color kernel frames in callstack trees.
2021-11-14 02:06:22 +01:00
Bartosz Taudul
0666dc0813
Update NEWS.
2021-11-13 23:08:03 +01:00
Bartosz Taudul
014f084393
UI cosmetics.
2021-11-13 22:27:54 +01:00
Bartosz Taudul
41c5d93a11
Use big icons in the rest of dialogs.
2021-11-13 22:23:18 +01:00
Bartosz Taudul
be264896f0
Use big icons in bad version dialogs.
2021-11-13 22:20:00 +01:00
Bartosz Taudul
46e0584cca
Use big icons in load/cleanup dialogs.
2021-11-13 22:16:37 +01:00
Bartosz Taudul
d4a5df0244
Use big icon in waiting for connection dialog.
2021-11-13 22:14:47 +01:00
Bartosz Taudul
6d3113f2df
Add icons to big font.
2021-11-13 22:12:54 +01:00
Bartosz Taudul
1d7ab70199
Non-memory tree callstacks are not needed.
2021-11-13 22:09:16 +01:00
Bartosz Taudul
b4726833e9
Cosmetics.
2021-11-13 22:09:10 +01:00
Bartosz Taudul
633cd1262c
Draw callstack tree for wait stacks.
2021-11-13 22:06:04 +01:00
Bartosz Taudul
5f9a0ab61f
Wait stacks mode selection.
2021-11-13 22:06:04 +01:00
Bartosz Taudul
4f6e9bbb65
Generic callstack tree builder.
...
Previously this was exclusive for memory callstacks.
2021-11-13 22:06:04 +01:00
Bartosz Taudul
c6be16dcd2
Rename PathData -> MemPathData.
2021-11-13 21:28:56 +01:00
Bartosz Taudul
a2547ccf1d
Rename CallstackFrameTree -> MemCallstackFrameTree.
2021-11-13 21:26:28 +01:00
Bartosz Taudul
c2e9b602be
Remind user where the build files are located.
2021-11-13 20:52:54 +01:00
Bartosz Taudul
98edee9b07
Change memory call stack tree icons.
2021-11-13 20:42:52 +01:00
Bartosz Taudul
667112c71f
Some old traces might have invalid image names.
2021-11-13 20:34:54 +01:00
Bartosz Taudul
0c7c3ae641
Time range limits for wait stacks.
2021-11-13 18:43:55 +01:00
Bartosz Taudul
94d4272c9c
Allow limiting wait stacks to certain threads.
2021-11-13 18:20:06 +01:00
Bartosz Taudul
265a39e7c9
Don't select out-of-context asm lines.
2021-11-13 17:35:02 +01:00
Bartosz Taudul
50627646c1
Don't highlight asm lines out of context on hover.
2021-11-13 16:36:46 +01:00
Bartosz Taudul
25316ddada
Display notification icon when context is limited.
2021-11-13 16:34:51 +01:00
Bartosz Taudul
cc425c4a2d
Separate function for checking asm function context.
2021-11-13 16:34:50 +01:00
Bartosz Taudul
9ba5180b04
Add wait stacks window.
2021-11-13 15:58:25 +01:00
Bartosz Taudul
45df37e3a9
Separate callstack table drawing functionality.
2021-11-13 15:56:57 +01:00
Bartosz Taudul
c1f6d6c9ce
Cosmetics.
2021-11-13 15:39:37 +01:00
Bartosz Taudul
14b469f219
Direct selection of find zone callstack.
2021-11-13 15:31:48 +01:00
Bartosz Taudul
151eadc69e
Direct selection of sample entry call stack index.
2021-11-13 15:15:49 +01:00
Bartosz Taudul
601f0a17df
Remove "Go to frame" button.
2021-11-13 15:13:35 +01:00
Bartosz Taudul
81c66ad126
Fix samples order on save, not load.
...
Sorting samples during load was a major mistake, as three different background
processing threads were concurrently accessing the samples table, and it was
being sorted in one of them!
2021-11-13 03:25:47 +01:00
Bartosz Taudul
0ab73e2aa7
Detect context switch samples during reconstruction.
2021-11-13 03:15:20 +01:00
Bartosz Taudul
484ed84252
Display context switch samples count.
2021-11-13 02:52:08 +01:00
Bartosz Taudul
d8d6423266
Context switch samples counting.
2021-11-13 02:47:39 +01:00
Bartosz Taudul
8ef212c26e
Determine if postponed callstacks are for context switches.
...
Samples are processed only when new context switch data has been received.
2021-11-13 02:44:54 +01:00
Bartosz Taudul
745b795d50
Detect context switch callstack samples.
...
Context switch callstack samples are not included in the sampling data
statistics (as these don't represent random sampling), but are rather put into
a separate dedicated data structure.
For this to work, a complete context switch data has to be available for the
callstack timestamp. There is no guarantee it will be present at the time it
is needed, so a second structure is added to allow postponing qualification of
callstacks.
2021-11-13 02:40:32 +01:00
Bartosz Taudul
5b799e0e45
Monitor when new context switch data is received.
2021-11-13 02:38:33 +01:00
Bartosz Taudul
00834ed32b
No need to pass time and callstack.
2021-11-13 02:26:11 +01:00
Bartosz Taudul
06c1bb4e59
Open callstack windows when clicking on context switch.
2021-11-13 01:34:49 +01:00
Bartosz Taudul
4b74777fcf
Display image name in callstack tooltips.
2021-11-13 01:31:28 +01:00
Bartosz Taudul
1200409a44
Display context switch wait call stack.
2021-11-13 01:21:47 +01:00
Bartosz Taudul
ce8e42f00b
Separate drawing callstack tooltip from drawing its contents.
2021-11-13 01:08:36 +01:00
Bartosz Taudul
aed1360a9c
Update to MSVC 2022.
2021-11-13 00:49:26 +01:00
Bartosz Taudul
97c519811c
Capture context switch call stacks on Windows.
2021-11-12 12:22:29 +01:00
Bartosz Taudul
987f70a9d4
Signal initialization failure through exit code.
2021-11-11 12:43:59 +01:00
Bartosz Taudul
f925da5e01
Handle fiber enter -> enter case (without leave in between).
2021-11-06 21:14:37 +01:00
Bartosz Taudul
d33de972f0
Properly show fiber context switch data.
2021-11-06 21:06:08 +01:00
Bartosz Taudul
40cd5435df
Fix context switch reconstruction condition.
2021-11-06 20:49:15 +01:00
Bartosz Taudul
69e5cf796d
Construct faux context switch data from fiber events.
2021-11-06 20:38:16 +01:00
Bartosz Taudul
efeed326bf
Context switch data may exists without CPU data.
2021-11-06 20:22:08 +01:00
Bartosz Taudul
904a444ea5
Label fiber threads across the UI.
2021-11-06 19:27:36 +01:00
Bartosz Taudul
0075050679
Allow checking if thread is a fiber.
2021-11-06 19:02:02 +01:00
Bartosz Taudul
3ede2a1345
Explicit tracking of fiber state in ThreadData.
...
This replaces the use of hard-to-track global state with well-defined accessor
functionality.
2021-11-06 18:55:29 +01:00
Bartosz Taudul
765561de81
Serialize continuous frame events.
2021-11-05 01:13:24 +01:00
Bartosz Taudul
0427904d4a
Fix zone validation thread piggybacking.
2021-11-04 22:50:55 +01:00
Bartosz Taudul
373a6fc19e
Add event debug routine.
2021-11-04 22:30:16 +01:00
Bartosz Taudul
4c774130ee
Allow direct switching from one fiber to another.
2021-11-04 17:51:32 +01:00
Bartosz Taudul
5782d8a53b
Merge pull request #277 from napoleon89/callstack_undefined_parameters
...
Added unused parameters when TRACY_HAS_CALLSTACK is undefined
2021-11-04 17:01:28 +01:00
Nathan Day
4fece233d9
Added unused parameters when TRACY_HAS_CALLSTACK is undefined
2021-11-04 15:24:58 +00:00
Bartosz Taudul
b3dd3612f4
Merge pull request #276 from alexanderbock/patch-1
...
Removing explicit compiler define check for GL_TIMESTAMP
2021-11-04 11:34:31 +01:00
Alexander Bock
f7fb2af5c2
Update TracyOpenGL.hpp
...
Removing explicit GL_TIMESTAMP check
2021-11-04 10:46:13 +01:00
Bartosz Taudul
887826a28a
Remove dead code.
2021-11-03 18:58:53 +01:00
Bartosz Taudul
fceb065329
Fiber name transport.
2021-11-03 18:57:30 +01:00
Bartosz Taudul
211b202d8e
Process fiber entry and leave events.
2021-11-02 01:53:10 +01:00
Bartosz Taudul
b4e4c05088
Thread context data may be invalidated due to fibers.
2021-11-02 01:52:41 +01:00
Bartosz Taudul
d522af99b9
Threads may be mapped to fibers.
2021-11-02 01:51:54 +01:00
Bartosz Taudul
0718330016
Add fiber labels to places with thread information.
2021-11-02 01:48:28 +01:00
Bartosz Taudul
e5c44afdcb
Distinguish fiber threads with green color.
2021-11-02 01:48:07 +01:00
Bartosz Taudul
bb72bf10e9
Add fiber failures.
2021-11-02 01:47:31 +01:00
Bartosz Taudul
93b6d88c4c
Save/load fiber thread flag.
2021-11-02 01:46:29 +01:00
Bartosz Taudul
8f44f1c68b
Store fiber state is ThreadData.
2021-11-02 01:45:01 +01:00
Bartosz Taudul
229d547e91
Add fiber support on client side.
2021-11-02 00:11:09 +01:00
Bartosz Taudul
8b15cd049c
Skip comparing known to be matching memory.
2021-10-30 01:26:31 +02:00
Bartosz Taudul
1ecdb8aa2a
Report device name on Android.
2021-10-26 18:09:56 +02:00
Bartosz Taudul
1cbd6950cf
Update NEWS.
2021-10-23 02:06:56 +02:00
Bartosz Taudul
bd108220cb
Drain symbols queue if on-demand and not connected.
2021-10-23 01:54:38 +02:00
Bartosz Taudul
3d13ec7018
Pump symbols queue during profiler termination.
2021-10-23 01:47:04 +02:00
Bartosz Taudul
fe9c63b8d2
Signal symbol resolution thread destruction.
2021-10-23 01:46:00 +02:00
Bartosz Taudul
02ce9b7d8b
Extract symbol queue item handling.
2021-10-23 01:35:01 +02:00
Bartosz Taudul
2b9265cc40
Move symbol resolution to a separate thread.
2021-10-22 22:25:09 +02:00
Bartosz Taudul
b4cfb1f2d5
Add SPSC symbol queue.
2021-10-22 22:22:27 +02:00
Bartosz Taudul
f2b0aadedc
Return external names, instead of sending them.
...
Note that the old function is still used by code, so this commit won't
compile.
2021-10-22 22:20:30 +02:00
Bartosz Taudul
e2610b1483
Add space for piggy-backing symbol data transfer.
2021-10-22 22:17:09 +02:00
Bartosz Taudul
af5da6f53c
Move inline string copy helpers to a separate header.
2021-10-22 21:53:46 +02:00
Bartosz Taudul
75f77a068f
Use rpmalloc in readerwriterqueue.
2021-10-22 20:39:10 +02:00
Bartosz Taudul
60b36df077
Cosmetics.
2021-10-21 01:49:20 +02:00
Bartosz Taudul
6c53c36bfe
Remove server query quota.
2021-10-21 01:48:52 +02:00
Bartosz Taudul
93b6fd72c3
Keep lock until we're done with the data.
2021-10-21 01:31:03 +02:00
Bartosz Taudul
4348c5428d
Returned strings may be invalidated, so copy them.
2021-10-21 01:30:17 +02:00
Bartosz Taudul
ff54317a87
Move EnsureReadable() and co. to top of source file.
2021-10-21 00:06:14 +02:00
Bartosz Taudul
6d490ffd28
Revert "Use SPSC queue for frame images."
...
This reverts commit 02e76faff7a17a907457078997c42c1b0d6b0f0f.
Let's not limit frame image reporting to just one thread.
2021-10-20 23:18:03 +02:00
Bartosz Taudul
ebb64540bb
Update licenses list.
2021-10-20 22:59:54 +02:00
Bartosz Taudul
ce2a7d6741
Offset field is not used.
2021-10-20 22:57:23 +02:00
Bartosz Taudul
02e76faff7
Use SPSC queue for frame images.
2021-10-20 22:57:23 +02:00
Bartosz Taudul
ff3382391e
Remove BlockingReaderWriterQueue and semephores.
2021-10-20 22:57:22 +02:00
Bartosz Taudul
3d21c4e7ea
Add amalgamated readerwriterqueue 1.0.5.
2021-10-20 22:45:30 +02:00
Bartosz Taudul
8a9c450e87
Merge pull request #273 from Mulej/master
...
Fix TracyCAppInfo macro argument name
2021-10-18 23:04:35 +02:00
Matej Mulej
036a61f9a4
Fix TracyCAppInfo macro argument name
2021-10-18 20:40:09 +00:00
Bartosz Taudul
250f7ecdb6
Update NEWS.
2021-10-17 13:15:22 +02:00
Bartosz Taudul
8f6a911f1e
Save/load sum of values in plots.
2021-10-17 13:14:44 +02:00
Bartosz Taudul
0b190b1a69
Calculate sum of values in reconstructed memory plot.
2021-10-17 13:14:23 +02:00
Bartosz Taudul
04db76d5fd
Calculate plot values sum during data import.
2021-10-17 13:07:37 +02:00
Bartosz Taudul
facd2be33b
Display average plot value.
2021-10-17 13:05:10 +02:00
Bartosz Taudul
0bd1364c2f
Calculate plot values sum.
2021-10-17 13:04:56 +02:00
Bartosz Taudul
a1511a39bd
Delta-encode code information pointers.
2021-10-16 16:29:06 +02:00
Bartosz Taudul
b099df75c2
Update NEWS.
2021-10-16 16:16:05 +02:00
Bartosz Taudul
dfb1ce64df
Sample data inconsistency warning.
2021-10-16 16:15:19 +02:00
Bartosz Taudul
2493cad5ad
Bump ImGui do 1.85 + docking.
2021-10-12 20:23:38 +02:00
Bartosz Taudul
bcaac7b53f
Add ~2 second overflow grace period.
...
This fixes issues when the GPU is actually permitted to report out-of-order
timestamps (e.g. when tasks are scheduled by the GPU, instead of being forced
to execute in submission order).
2021-10-11 00:29:24 +02:00
Bartosz Taudul
733d267768
Disable OpenGL callstacks when fibers are enabled.
...
This has little impact, but saves much of the hassle.
2021-10-10 16:39:22 +02:00
Bartosz Taudul
5ccf369919
Implement callstack serialization.
2021-10-10 16:14:17 +02:00
Bartosz Taudul
a421083e58
Crash reports may be serialized.
2021-10-10 15:58:24 +02:00
Bartosz Taudul
9d89b84efd
Support serialized queue for Lua messages.
2021-10-10 15:55:22 +02:00
Bartosz Taudul
082255f940
Messages may now use serialized queue.
2021-10-10 15:54:21 +02:00
Bartosz Taudul
f8d37b45a3
Update NEWS.
2021-10-10 14:59:14 +02:00
Bartosz Taudul
13b28714ee
Display failure context in capture utility.
2021-10-10 14:52:30 +02:00
Bartosz Taudul
20074e64f4
Fix processing of serialized zone color, value and validation.
2021-10-10 14:43:36 +02:00
Bartosz Taudul
d3905bd4bb
Add context to zone text failures.
2021-10-10 14:14:33 +02:00
Bartosz Taudul
930ef77ea9
Add zone value failure context.
2021-10-10 14:12:13 +02:00
Bartosz Taudul
9300934fa5
Separate zone value and text failures.
2021-10-10 14:05:21 +02:00
Bartosz Taudul
909f5916b1
Use possibly-synchronous macros for C API zones.
2021-10-09 15:51:29 +02:00
Bartosz Taudul
2cea5bc5b2
Add C API async-or-sync queue macros.
2021-10-09 15:50:30 +02:00
Bartosz Taudul
5835011d0f
Allow serialized zone validation.
2021-10-09 15:50:09 +02:00
Bartosz Taudul
7c046eb7ac
Use possibly-synchronous macros for Lua zones.
2021-10-09 15:41:27 +02:00
Bartosz Taudul
fcda1f6a7f
Keep Lua zone insertion time to a minimum.
...
No functional changes here. Only the variable retrieval was separated from
filling in the queue items. While with the async queue this makes no
difference, it will be important when the serial queue is used here.
2021-10-09 15:35:11 +02:00
Bartosz Taudul
7527f33d6c
Handle serialized zones.
2021-10-09 15:31:45 +02:00
Bartosz Taudul
2eeade89ba
Add macro for handling serial dequeue thread context checks.
2021-10-09 15:30:58 +02:00
Bartosz Taudul
2d5d4293a9
Move thread context check to a separate function.
2021-10-09 15:16:36 +02:00
Bartosz Taudul
13acec38f7
Use the possibly-synchronous macros in C++ zones.
2021-10-09 14:58:33 +02:00
Bartosz Taudul
6411b35d68
Provide macros for async-or-sync queue insertion.
...
If fibers are enabled, then some events which were traditionally stored in
async queues will have to be serialized. These macros provide the needed
infrastructure for this.
2021-10-09 14:55:32 +02:00
Bartosz Taudul
250ef2cf6e
Change thread id size from 64 to 32 bits.
...
Both Windows and Linux use 32-bit thread identifiers. MacOS has a 64-bit
counter, but in practice it will never overflow during profiling and no false
aliasing will happen.
These changes are only done client-side and in the network protocol. The
server still uses 64-bit thread identifiers, to enable virtual threads, etc.
2021-10-08 00:42:52 +02:00
Bartosz Taudul
07bc665d8c
Drop support for Cygwin.
2021-10-07 23:28:40 +02:00
Bartosz Taudul
12f693372a
Cosmetics.
2021-10-07 23:28:31 +02:00
Bartosz Taudul
b7a27d02af
Fix total time in find zone, if limit range is enabled.
2021-09-28 01:11:22 +02:00
Bartosz Taudul
9cb54982cb
Fix crash.
2021-09-27 18:13:45 +02:00
Bartosz Taudul
8eb038280f
Update manual.
2021-09-27 02:19:20 +02:00
Bartosz Taudul
c2e94355f0
Add icon to samples label.
2021-09-27 02:07:02 +02:00
Bartosz Taudul
99f2d0e059
Fix vertical spacing in inline symbols list.
2021-09-27 01:54:37 +02:00
Bartosz Taudul
28ae970887
Remove trailing whitespace.
2021-09-27 01:54:15 +02:00
Bartosz Taudul
d5db075286
Update AUTHORS.
2021-09-23 22:14:52 +02:00
Bartosz Taudul
458fdaa126
Update NEWS.
2021-09-23 22:14:11 +02:00
Bartosz Taudul
b6eee83463
Merge pull request #257 from xxxbxxx/filter-by-srcloc
...
Filter samples by zones source locations
2021-09-23 22:12:42 +02:00
xavier
f37ef1affd
Display the samples after the groups in the "find zone" window
...
to make it clear they are filtered by selected group.
2021-09-23 21:03:56 +02:00
xavier
61670e30aa
Update samples statistics continuously in the "find zone" window
2021-09-23 21:03:56 +02:00
xavier
63acfe72e7
Apply group filters to the samples statistics in the "find zone" window
...
reduce memory by storing the thread ids next to the zones intead of
making zone lists per thread.
speed-up by reading the zones in linear order rather than bisecting
the whole list for each sample.
2021-09-23 21:03:56 +02:00
xavier
41130d2a69
Avoid useless work when there aren't any samples
2021-09-23 21:03:56 +02:00
xavier
1233b39b69
Move samples before groups in "find zone" window
...
and fix style
2021-09-23 21:03:56 +02:00
xavier
0089c832f7
Cache samples statistics in the "find zone" window
2021-09-23 21:03:56 +02:00
xavier
ed42c2388c
Add samples statistics to the "find zone" window
2021-09-23 21:03:56 +02:00
xavier
e4ce9f0f41
Include threadid in SampleDataRange
...
TODO: maybe make lists per thread to avoid increasing the packed structure by 2 bytes?
2021-09-23 21:03:56 +02:00
xavier
6b901a7156
Extract DrawSamplesStatistics()
2021-09-23 21:03:56 +02:00
Bartosz Taudul
4c220bdc14
Always display statistics mode selection.
...
Even if only one option is available.
2021-09-23 18:32:59 +02:00
Bartosz Taudul
f74818ece5
Make accumulation combo consistent.
2021-09-23 18:28:19 +02:00
Bartosz Taudul
9e67491766
Update NEWS.
2021-09-23 18:17:55 +02:00
Bartosz Taudul
bcfc4a4fa7
Fix message thread assignment in import-chrome.
2021-09-23 18:08:03 +02:00
Bartosz Taudul
74d0e79b8c
Vcpkg changed everything again.
2021-09-21 02:09:54 +02:00
Bartosz Taudul
2a994f1c81
Backport freetype 2.11 fix from imgui.
2021-09-20 22:45:52 +02:00
Bartosz Taudul
0b03d7b2ad
Merge pull request #265 from nagisa/nagisa/manual-lifetime-for-c
...
Expose TRACY_MANUAL_LIFETIME APIs to C API clients
2021-09-18 15:20:42 +02:00
Simonas Kazlauskas
173a165a57
Add startup/shutdown_profiler
to the manual
...
Also remove the documentation for the now-gone `___tracy_init_thread`
function.
2021-09-18 14:54:00 +03:00
Simonas Kazlauskas
54ee3d8a94
Expose TRACY_MANUAL_LIFETIME APIs to C API clients
...
These are extremely useful for ecosystems such as Rust. There are a
couple of reasons why:
1. Rust strongly advises against relying on life before/after main, as
it is difficult to reason about. Most users working in Rust will
generally be quite surprised when encountering this concept.
2. Rust and its package manager makes it easy to use packages (crates)
and somewhat less straightforward to consider the implications of
including a dependency.
In case of the `rust_tracy_client` set of packages, I currently have
to warn throughout the documentation of the package that simply
adding a dependency on the bindings package is sufficient to
potentially accidentally broadcast a lot of information about the
instrumented binary to the broader world. This seems like a major
footgun given how easy is it to forget about having added this
dependency.
Ability to manually manage the lifetime of the profiler would be a great
solution to these problems.
2021-09-18 14:54:00 +03:00
Bartosz Taudul
e929946120
Merge pull request #264 from michal-z/master
...
Undo my previous change regarding zig cc.
2021-09-17 11:37:24 +02:00
Michal Ziulek
789328f73d
Undo my previous change.
...
-D_WIN32_WINNT=0x601 must be defined when building TracyClient.cpp for mingw-w64 on Windows. In that case definitions I've added are not needed.
2021-09-17 11:34:40 +02:00
Bartosz Taudul
058e89011f
Merge pull request #261 from michal-z/master
...
Fixed TracyClient.cpp compile error when using zig cc (#260 ).
2021-09-14 19:53:28 +02:00
Michal Ziulek
ad97854f12
Fixed compile error when using zig cc.
2021-09-14 19:30:20 +02:00
Bartosz Taudul
d011d65b3c
Merge pull request #255 from graydon/tracy-capture-seconds-argument
...
Add `-s <seconds>` parameter to capture.cpp
2021-08-26 11:14:23 +02:00
Graydon Hoare
26fd867e52
Add -s <seconds>
parameter to capture.cpp
2021-08-25 22:52:23 -07:00
Bartosz Taudul
dfb4020a92
Add missing include for intptr_t.
2021-08-22 13:38:28 +02:00
Bartosz Taudul
673dfd0f02
Update ImGui GLFW and OpenGL 3.x backends.
...
The new embedded ImGui OpenGL loader has been extended with a couple of
functions and definitions needed by TracyTexture.cpp.
2021-08-22 13:30:46 +02:00
Bartosz Taudul
30445b656f
Update ImGui to 1.84.1 + docking.
2021-08-21 00:52:30 +02:00
Bartosz Taudul
c82bf3915b
Extend thread expansion grace period to half a second.
...
Previously a framerate-dependent 10 frame count was used.
2021-08-19 00:24:11 +02:00
Bartosz Taudul
38f156259c
Update NEWS.
2021-08-19 00:01:52 +02:00
Bartosz Taudul
fd84b2e026
Vulkan headers must be now manually included.
2021-08-19 00:00:20 +02:00
Bartosz Taudul
e380e3f80e
Merge pull request #249 from lukasberbuer/readme-links
...
Bundle links in README including latest documentation
2021-08-02 00:40:39 +02:00
Lukas Berbuer
6c3c94b5f4
Bundle links in README including latest documentation
2021-08-01 23:48:45 +02:00
Bartosz Taudul
acccad2772
Merge pull request #248 from lukasberbuer/cmake-options-simplify
...
Simplify CMake option definition
2021-08-01 13:25:12 +02:00
Lukas Berbuer
a7bbd51c61
Simplify CMake option definition
2021-08-01 13:14:32 +02:00
Bartosz Taudul
7a5270e6f1
Update NEWS.
2021-08-01 13:07:50 +02:00
Bartosz Taudul
36752c67bd
Update AUTHORS.
2021-08-01 13:07:23 +02:00
Bartosz Taudul
7130e27865
Merge pull request #247 from lukasberbuer/cmake-options
...
Full CMake integration
2021-08-01 13:05:16 +02:00
Lukas Berbuer
958386709f
Add documentation for CMake integration
2021-08-01 12:54:31 +02:00
Lukas Berbuer
0fe755fc85
Add options to CMakeLists.txt
...
Major parts taken from https://github.com/Manu343726/tracy/blob/master/CMakeLists.txt
2021-08-01 12:26:42 +02:00
Bartosz Taudul
0c2b27382e
Update manual.
2021-07-26 01:40:06 +02:00
Bartosz Taudul
b7dbbee149
Update NEWS.
2021-07-26 01:25:49 +02:00
Bartosz Taudul
7304558bdf
Cycle through assembly blocks when right-clicking source line.
2021-07-26 01:21:58 +02:00
Bartosz Taudul
55a966f9c6
Fix assert.
2021-07-26 01:18:17 +02:00
Bartosz Taudul
c222327edb
Silence siunitx errors.
2021-07-25 12:57:52 +02:00
Bartosz Taudul
6f855ebcd4
Update libbacktrace to d0f5e95.
2021-07-25 12:34:11 +02:00
Bartosz Taudul
d2b3182ab6
Update stb_image to 2.27.
2021-07-25 12:05:07 +02:00
Bartosz Taudul
924224501e
Remove exception handler during profiler destruction.
2021-07-25 11:48:27 +02:00
Bartosz Taudul
61c9e8e6d8
Crash handler may be not installed.
2021-07-25 11:46:20 +02:00
Bartosz Taudul
54fa21bcbb
Restore original signal handlers on profiler exit.
2021-07-25 11:40:22 +02:00
JIA-ss
5936e7c86c
Multi Dll Proj will Crash, Under Unity ( #244 )
2021-07-25 11:28:42 +02:00
Bartosz Taudul
06ae39d9cc
Fix debug build.
2021-07-18 16:34:24 +02:00
Bartosz Taudul
8ea89ad58a
Update manual.
2021-07-18 16:15:32 +02:00
Bartosz Taudul
be3118faab
Update NEWS.
2021-07-18 16:15:32 +02:00
Bartosz Taudul
8b489c95ff
Rename slow branches/cache to branch/cache impact.
2021-07-18 16:15:32 +02:00
Bartosz Taudul
0e603a0997
Render relative hw samples values.
2021-07-18 16:15:32 +02:00
Bartosz Taudul
d0fad4fd39
Rename relative hw samples to "impact".
2021-07-18 16:15:31 +02:00
Bartosz Taudul
83b159b43b
Count hw stats, if relative mode is set.
2021-07-18 15:00:22 +02:00
Bartosz Taudul
fbf2c87a20
Include hw stats in AddrStatData.
2021-07-18 15:00:22 +02:00
Bartosz Taudul
e30608afbf
Store and pass AddrStat data in one data structure.
2021-07-18 15:00:22 +02:00
Bartosz Taudul
9c7a122d94
Implement counting relative hw samples data.
...
This exploits the fact that AddrStat has two data fields (local and ext) to
store branch and cache information.
2021-07-18 15:00:22 +02:00
Bartosz Taudul
8c78af4d00
Drop limitView from GatherIpHwStats interface.
2021-07-18 15:00:21 +02:00
Bartosz Taudul
a5e655d1ee
Add relative hw samples checkbox.
2021-07-18 15:00:21 +02:00
Bartosz Taudul
b4c1313a2e
Make hw stats cost a parameter.
2021-07-18 02:03:29 +02:00
Bartosz Taudul
50f7deb1a3
Merge pull request #243 from benvanik/patch-4
...
Indenting empty GPU zone tree nodes when grouped to keep zones aligned.
2021-07-17 20:48:43 +02:00
Ben Vanik
ba185b18f9
Indenting empty grouped CPU/GPU zone tree nodes to keep things aligned.
2021-07-17 11:46:29 -07:00
Bartosz Taudul
4f3195153a
Merge pull request #242 from benvanik/patch-3
...
Fixing unbalanced tree pop in grouped GPU zones.
2021-07-17 20:03:41 +02:00
Ben Vanik
e3165c333b
Fixing unbalanced tree pop in grouped GPU zones.
2021-07-17 09:25:44 -07:00
Bartosz Taudul
ef2a25319c
Update NEWS.
2021-07-11 19:46:02 +02:00
Bartosz Taudul
edae542a48
Allow selecting image name for filtering from a list.
2021-07-11 19:43:51 +02:00
Bartosz Taudul
b6db644ac6
Add hasher and comparator for StringIdx.
2021-07-11 19:43:40 +02:00
Bartosz Taudul
d6835f3a7a
Use correct language version for library.
2021-07-07 02:45:13 +02:00
Bartosz Taudul
0affc27abf
Merge pull request #238 from rokopt/non-reentrant-time-manual-fix
...
Update manual to reflect timing-mode GUI changes
2021-06-27 17:35:07 +02:00
Terence Rokop
c51e4fd11d
Update manual to reflect timing-mode GUI changes
2021-06-26 17:23:54 -07:00
Bartosz Taudul
6ddb24f57f
Update AUTHORS.
2021-06-26 22:53:02 +02:00
Bartosz Taudul
9f185310be
Merge pull request #230 from rokopt/recursive-zone-timings
...
Introduce "non-reentrant time" statistics view
2021-06-26 21:17:45 +02:00
Terence Rokop
68ec7abdf4
Move responsibility for spacing of combo box
...
Thereby fix a spurious horizontal separator bar.
2021-06-26 11:51:57 -07:00
Terence Rokop
d6fd252ce4
Add more spacing to pre-existing options
2021-06-26 10:41:24 -07:00
Terence Rokop
e105d2d96c
Aesthetic fixes to accumulation mode combo box
...
Shorter text fields and more spacing.
2021-06-26 10:41:23 -07:00
Terence Rokop
1dd117533e
Avoid non-reentrant option in sampling/symbol view
2021-06-26 10:41:23 -07:00
Terence Rokop
f000dce73f
Replace "enum class" switches with explicit casts
2021-06-26 08:30:15 -07:00
Terence Rokop
d6761c2ffa
Update manual for accumulation mode combo box
2021-06-25 21:33:12 -07:00
Terence Rokop
b392671a7a
Make time accumulation mode use combo box
2021-06-25 21:27:45 -07:00
Bartosz Taudul
2e466852ac
Merge pull request #237 from ilmai/master
...
Add meson.build
2021-06-24 22:02:32 +02:00
Jussi Viiri
fbed24dc0f
Add meson.build
2021-06-24 22:41:50 +03:00
Bartosz Taudul
9a22b8e83c
Cosmetics.
2021-06-23 20:43:46 +02:00
Bartosz Taudul
913463635a
Cosmetics.
2021-06-23 20:37:14 +02:00
Terence Rokop
894c90f867
Update manual with new non-reentrant-time option
2021-06-20 18:00:47 -07:00
Terence Rokop
9366e58d12
Introduce "Non-reentrant time" radio button
...
Add to the statistics view an option for "Non-reentrant
time", which displays the count of and time spent in zone
events which were the only appearances (at that time) of
their zones on their threads' stacks.
Besides the GUI changes, this involves:
- Introducing a tri-state accumulation mode to replace the
boolean "self time": now there's "Self time only",
"Child time", and "Non-reentrant time".
- Removing the separate "selfTotal" from SrcLocZonesSlim,
making "total" represent whichever of the now three options
is active, which in turn requires keeping track of the
accumulation mode in StatisticsCache and invalidating that
cache when the accumulation mode changes.
2021-06-20 17:56:15 -07:00
Terence Rokop
66053e37f7
Add non-reentrant stats to SourceLocationZones
...
Extend SourceLocationZones with fields to track the count
and time of non-reentrant zone events -- that is, zone
events which were the only appearances (at the time) of
those zones on their threads' stacks.
2021-06-20 17:56:15 -07:00
Terence Rokop
c90e39e06e
Keep track of zone appearances on thread stacks
...
Start keeping track, using the previously-introduced
SrcLocCountMap, of the number of appearances of each zone
on each thread's stack at a given time.
2021-06-20 17:56:15 -07:00
Terence Rokop
1f0b4656f4
Introduce SrcLocCountMap
...
Add to ThreadData a map from source location to a counter,
which will be used to keep track of the number of
appearances of zones with the corresponding source locations
on each thread's stack.
2021-06-20 17:56:14 -07:00
Terence Rokop
0a8ec09566
Introduce View::IsZoneReentry()
...
These two methods can search a timeline to determine whether
a given ZoneEvent is the only appearance of the given zone
on the current thread stack, or a re-entry.
2021-06-20 17:53:38 -07:00
Bartosz Taudul
32b1e8dcb0
No kernel symbol on macos.
2021-06-20 19:35:05 +02:00
Bartosz Taudul
759dd39f77
Update manual.
2021-06-20 19:18:36 +02:00
Bartosz Taudul
0e0692b7f7
Don't display hw samples as time in selected lines summary.
2021-06-20 16:01:19 +02:00
Bartosz Taudul
e9aca02880
Make hw sample cost in source files relative to whole symbol.
2021-06-20 15:55:21 +02:00
Bartosz Taudul
846bde1a11
Narrow down search range.
2021-06-20 14:37:56 +02:00
Bartosz Taudul
15b42039bd
Add very early exit test.
2021-06-20 14:34:47 +02:00
Bartosz Taudul
d4b92e0fbe
Add early exit conditions.
2021-06-20 14:33:08 +02:00
Bartosz Taudul
a10d71b766
Switch loop order for better cache locality on the slow path.
2021-06-20 14:30:55 +02:00
Bartosz Taudul
a9a16b4d94
Narrow down search region.
2021-06-20 14:24:42 +02:00
Bartosz Taudul
22352dd29b
Select optimized path before entering loop.
2021-06-20 14:22:14 +02:00
Bartosz Taudul
5d86002f82
Calculate all CPU usage values in one go.
2021-06-20 14:19:18 +02:00
Bartosz Taudul
5efc03cdf9
Move cycles up in cost combo selector.
2021-06-20 12:50:13 +02:00
Bartosz Taudul
c445c3805c
Merge remote-tracking branch 'origin/master' into hw
2021-06-20 11:13:02 +02:00
Bartosz Taudul
d90758e92d
Merge pull request #235 from avoroshilov/fix-compilation-warning
...
Fix compilation warning
2021-06-20 10:57:17 +02:00
Andrey Voroshilov
5670493757
Fix compilation warning
2021-06-19 23:26:03 -07:00
Bartosz Taudul
13c103065a
Update NEWS.
2021-06-20 01:17:38 +02:00
Bartosz Taudul
7e17c8643c
Don't show hw events as time.
2021-06-20 01:08:18 +02:00
Bartosz Taudul
bc4016e97c
Don't depend on callstack frames to match hw samples to source.
2021-06-20 01:01:29 +02:00
Bartosz Taudul
2f3ee594f0
Use square root to make slow branches and cache less spiky.
2021-06-20 00:50:14 +02:00
Bartosz Taudul
3305ea2775
Keep raw hw sample data visually separate.
2021-06-20 00:46:29 +02:00
Bartosz Taudul
07fe0a5447
Use enum for cost selection.
2021-06-20 00:45:39 +02:00
Bartosz Taudul
3cc69b221e
Select Zstd compression when Zstd level is changed.
2021-06-20 00:25:30 +02:00
Bartosz Taudul
80e1b0c2cf
Don't display hw samples as time in files list.
2021-06-20 00:14:19 +02:00
Bartosz Taudul
52708268fe
Store 64-bit integers in AddrStat.
2021-06-20 00:08:25 +02:00
Bartosz Taudul
4e6a1bae22
Don't display time for hw samples.
2021-06-20 00:04:08 +02:00
Bartosz Taudul
326a2a70d8
Add indirect hw statistics.
2021-06-20 00:01:37 +02:00
Bartosz Taudul
ad2b6e932b
Don't scroll cost combo list.
2021-06-20 00:01:21 +02:00
Bartosz Taudul
a5991036dc
Add more hw stats as cost.
2021-06-19 23:43:46 +02:00
Bartosz Taudul
c7b3d42852
Calculating cost in cycles and retirements.
2021-06-19 23:39:33 +02:00
Bartosz Taudul
90149641df
Reset cost selection when no samples.
2021-06-19 23:17:24 +02:00
Bartosz Taudul
8d52d2acfd
Disable inline context if no inline symbols available.
2021-06-19 21:40:30 +02:00
Bartosz Taudul
2e3241ba54
Restrict hardware samples to inline function context.
2021-06-19 20:50:06 +02:00
Bartosz Taudul
6cc844abee
Display inline symbol address.
2021-06-19 20:20:52 +02:00
Bartosz Taudul
cb63b35cb1
Update NEWS.
2021-06-19 20:14:39 +02:00
Bartosz Taudul
748c22df8e
Darken assembly instructions which aren't in current context.
2021-06-19 20:11:53 +02:00
Bartosz Taudul
53111f9dd9
Save/load code symbol map.
2021-06-19 19:58:16 +02:00
Bartosz Taudul
ee13d3fa44
Retrieve address of symbol, not first instruction in line.
2021-06-19 19:52:33 +02:00
Bartosz Taudul
8045ceee5d
Display function assigned to assembly line.
2021-06-19 19:52:33 +02:00
Bartosz Taudul
ec3ee09f09
Add inline symbols map accessors.
2021-06-19 19:13:34 +02:00
Bartosz Taudul
654331a8c8
Create code address -> symbol map.
2021-06-19 19:07:57 +02:00
Bartosz Taudul
fe7db6db4e
Send symbol address in code information message.
2021-06-19 19:07:56 +02:00
Bartosz Taudul
3ce2f6209a
Return symbol address in DecodeCodeAddress().
2021-06-19 19:02:08 +02:00
Bartosz Taudul
cc0ca341bb
Add cost criteria selection UI.
2021-06-19 18:16:11 +02:00
Bartosz Taudul
7ad9cafefb
Add child call samples hints to the UI.
2021-06-19 17:41:29 +02:00
Bartosz Taudul
6e8d57bc98
Update context switches look.
2021-06-19 16:50:25 +02:00
Bartosz Taudul
c17a913cf5
Update zones look.
2021-06-19 16:43:56 +02:00
Bartosz Taudul
b91cd9148d
Add 2-segment line drawing wrapper.
2021-06-19 16:22:50 +02:00
Bartosz Taudul
188320db48
Simplify zone color data retrieval.
2021-06-19 16:20:35 +02:00
Bartosz Taudul
f6c2255e88
Update manual.
2021-06-19 14:24:59 +02:00
Bartosz Taudul
7e1622083e
Use monotonic raw clock for hardware sampling.
2021-06-19 13:40:31 +02:00
Bartosz Taudul
2c4b2ce6f0
Document how bad graphic drivers are.
2021-06-19 13:19:49 +02:00
Bartosz Taudul
5e582ef057
Omit line number from source locations, if not known.
2021-06-19 12:47:55 +02:00
Bartosz Taudul
91f1845d92
Add LocationToString() helper.
2021-06-19 12:33:23 +02:00
Bartosz Taudul
c69cf5bd3f
Cosmetics.
2021-06-19 12:33:16 +02:00
Bartosz Taudul
8e5a53a191
Merge remote-tracking branch 'origin/master' into hw
2021-06-19 12:19:10 +02:00
Bartosz Taudul
7fbf796ecb
Merge pull request #234 from avoroshilov/fix-crash-conversion
...
Fix a crash in Worker c-tor when converting certain JSON files
2021-06-19 12:01:27 +02:00
Andrey Voroshilov
d4d77006ac
Fix a crash in Worker c-tor when converting certain JSON files
2021-06-19 01:12:41 -07:00
Bartosz Taudul
e1b68232dc
Better describe kernel ghost zones.
2021-06-19 01:40:05 +02:00
Bartosz Taudul
a96410547b
Display thread kernel time.
2021-06-17 01:56:16 +02:00
Bartosz Taudul
d49da69972
Count kernel samples.
2021-06-17 01:47:19 +02:00
Bartosz Taudul
7086f2db65
Merge branch 'master' into hw
2021-06-17 01:37:10 +02:00
Bartosz Taudul
fde62b4e6e
Dynamically load some dbghelp functions.
2021-06-17 01:34:45 +02:00
Bartosz Taudul
c41a5b0df0
Update manual.
2021-06-17 01:03:25 +02:00
Bartosz Taudul
8f8a28db60
Allow manual setting of DPI scale.
2021-06-17 00:52:50 +02:00
Bartosz Taudul
d2ebe341f2
Allow filtering out kernel symbols from statistics view.
2021-06-16 01:43:09 +02:00
Bartosz Taudul
f145ca5897
Fix assert.
2021-06-16 01:39:43 +02:00
Bartosz Taudul
538cf3bcf1
Deprecate cygwin and mingw.
2021-06-16 00:59:30 +02:00
Bartosz Taudul
2f7d79adba
No _alloca() on cygwin.
2021-06-16 00:52:12 +02:00
Bartosz Taudul
50e0d4781b
No kernel cache on cygwin.
2021-06-16 00:51:30 +02:00
Bartosz Taudul
48fe6550a6
Kernel code is unreachable from user space.
2021-06-15 21:40:08 +02:00
Bartosz Taudul
f1bf663160
Load kernel symbols.
2021-06-15 21:28:32 +02:00
Bartosz Taudul
2d5f6a411c
Add windows kernel module discovery.
2021-06-15 21:28:32 +02:00
Bartosz Taudul
8fa9860764
Load windows device drivers list.
2021-06-15 21:28:31 +02:00
Bartosz Taudul
bdb11f6e48
Use same kernel module name as on Linux.
2021-06-15 02:31:51 +02:00
Bartosz Taudul
5b642cad01
Implement combining sample callstacks.
...
This is required, because Windows will send two callstacks with the same
timestamp, one for kernel-space, second for user-space.
2021-06-15 02:25:12 +02:00
Bartosz Taudul
db1dc311b0
Add Int48 clearing function.
2021-06-15 02:04:32 +02:00
Bartosz Taudul
0fdd5ab01b
Extract callstack sample processing implementation.
2021-06-15 01:59:49 +02:00
Bartosz Taudul
6d03b18d1c
Don't filter out kernel frames on win32.
2021-06-15 01:40:21 +02:00
Bartosz Taudul
891e1ac280
Read combine samples flag on server.
2021-06-15 01:33:43 +02:00
Bartosz Taudul
697ec4372e
Set combine samples flag on win32.
2021-06-15 01:32:18 +02:00
Bartosz Taudul
06dcdd342f
Combine flags in welcome message.
2021-06-15 01:26:50 +02:00
Bartosz Taudul
004681b02b
Merge remote-tracking branch 'origin/master' into hw
2021-06-14 23:54:34 +02:00
Bartosz Taudul
5834a4be44
Update NEWS.
2021-06-14 23:52:23 +02:00
Bartosz Taudul
39e317f36d
Fix display of messages with newlines.
2021-06-14 23:51:41 +02:00
Bartosz Taudul
d07db80b44
Fix rpmalloc init for shared libraries.
2021-06-13 12:15:36 +02:00
Bartosz Taudul
698e5f0210
Probe precise_ip for software sampling.
2021-06-13 01:21:09 +02:00
Bartosz Taudul
2d2a5c92fd
Increase symbol retrieval size limit to 128 KB.
2021-06-13 01:16:29 +02:00
Bartosz Taudul
e17316fded
Document one more android workaround.
2021-06-13 01:13:20 +02:00
Bartosz Taudul
1f07a4ce35
One more query to acknowledge.
2021-06-13 01:08:04 +02:00
Bartosz Taudul
f773e18375
Different color for kernel frames in callstacks.
2021-06-12 16:16:56 +02:00
Bartosz Taudul
0c13889589
Distinguish kernel symbols on statistics list.
2021-06-12 16:09:44 +02:00
Bartosz Taudul
be07ccc1d3
Kernel symbols don't have parents.
2021-06-12 16:09:43 +02:00
Bartosz Taudul
b35dfe71d1
Send kernel symbol information.
2021-06-12 16:08:50 +02:00
Bartosz Taudul
3968945e6a
Display kernel ghost zones with a different color.
2021-06-12 15:35:44 +02:00
Bartosz Taudul
4dc05ab858
Implement retrieval of kernel symbol names.
2021-06-12 15:27:35 +02:00
Bartosz Taudul
0168ab6535
Server queries must be always acknowledged.
2021-06-12 14:44:55 +02:00
Bartosz Taudul
0a954fda87
Capture kernel frames on Linux.
...
Garbage frames ("markers") have to be filtered out.
2021-06-12 14:36:07 +02:00
Bartosz Taudul
ed50447f7a
Use alias for s_ring[i].
2021-06-12 13:13:53 +02:00
Bartosz Taudul
f4c95eb021
Load linux kernel symbols list.
2021-06-11 01:31:02 +02:00
Bartosz Taudul
ca2130d56c
Process all data available in ring buffers.
2021-06-10 02:07:29 +02:00
Bartosz Taudul
5b7cd06840
Don't init rpmalloc, if we know it has been done already.
2021-06-10 01:48:11 +02:00
Bartosz Taudul
7889d33044
Add fast versions of tracy_malloc/tracy_free.
2021-06-10 01:18:03 +02:00
Bartosz Taudul
c20721ca4f
Update NEWS.
2021-06-09 21:17:44 +02:00
Bartosz Taudul
ff54c29913
Save/load GPU timer overflow information.
2021-06-09 21:12:50 +02:00
Bartosz Taudul
9e28f441c8
Cosmetics.
2021-06-09 21:12:42 +02:00
Bartosz Taudul
27e61b8204
Remove not needed check.
2021-06-09 21:08:48 +02:00
Bartosz Taudul
7aa575fd2e
Display GPU timer overflow notification.
2021-06-09 21:08:48 +02:00
Bartosz Taudul
de2ca9b22a
Change check for showing GPU timestamp accuracy.
2021-06-09 21:08:48 +02:00
Bartosz Taudul
b7b9912b10
Handle GPU timer overflows with heuristics.
2021-06-09 21:08:47 +02:00
Bartosz Taudul
90b51568e9
Add common lzcnt implementation.
...
Not really tested, so fingers crossed.
2021-06-09 20:29:43 +02:00
Bartosz Taudul
c61a7ef57b
Update NEWS.
2021-06-09 02:38:47 +02:00
Bartosz Taudul
bb0f5025b2
Also ignore "atomic" header.
2021-06-09 02:14:01 +02:00
Bartosz Taudul
9c2ea8a71f
Specify minimum length of subframe skip in one place.
2021-06-09 02:13:00 +02:00
Bartosz Taudul
e1c3babf43
Check whole ignore list on ARM.
2021-06-09 02:06:28 +02:00
Bartosz Taudul
854613f210
Ignore atomic_base.h implementation.
2021-06-09 02:05:44 +02:00
Bartosz Taudul
85da04bcc4
Add hw samples line part to source view.
2021-06-09 00:19:17 +02:00
Bartosz Taudul
def9570eda
Extract rendering hw samples line part.
2021-06-09 00:19:17 +02:00
Bartosz Taudul
18cace42ca
Display hw samples tooltip for source lines.
2021-06-08 23:46:30 +02:00
Bartosz Taudul
82bfee5127
Move helper functions to top of the file.
2021-06-08 23:46:29 +02:00
Bartosz Taudul
2eb50bcf42
Hardware sample data was already queried.
2021-06-08 23:46:29 +02:00
Bartosz Taudul
66318bdb3b
Display target FPS also as time available.
2021-06-08 22:56:06 +02:00
Bartosz Taudul
c79bfa349f
Update ARM CPU parts list.
2021-06-04 19:41:59 +02:00
Bartosz Taudul
ecf0e3d587
Update apple devices list.
2021-06-04 19:16:51 +02:00
Bartosz Taudul
b68c23fc64
Update x86 CPU models list.
2021-06-04 18:59:41 +02:00
Bartosz Taudul
4316d48bea
Add a note about CPUID list.
2021-06-04 18:48:01 +02:00
Bartosz Taudul
7c378cd0a9
Add Rocket Lake uarch data.
2021-06-04 18:40:37 +02:00
Bartosz Taudul
cc831e8192
Description is not supposed to be formatted.
2021-06-04 15:29:08 +02:00
Bartosz Taudul
0b05587b05
Don't need to format const string.
2021-06-04 15:27:23 +02:00
Bartosz Taudul
cb849ee14c
Capitalize Tracy name.
2021-06-04 15:17:20 +02:00
Bartosz Taudul
3c076ddb6f
Opening unsupported trace gives option to download update.
2021-06-04 15:17:20 +02:00
Bartosz Taudul
39cf98f98c
Move OpenWebpage() to a separate source file.
2021-06-04 15:17:14 +02:00
Bartosz Taudul
86510c48e0
Use proper type.
2021-06-04 15:16:44 +02:00
Bartosz Taudul
b281ce9c0e
Add missing include.
2021-06-04 15:01:50 +02:00
Bartosz Taudul
859aa3b2b0
Setup system tracing before launching profiler threads.
...
This makes sure that profiler threads are properly included in sample data on
Linux. This was previously working because sample capture was performed
system-wide. Now samples are only captured in client context, which includes
all spawned threads. Since this inclusion only works for threads which will be
spawned after the trace starts, no thread can be created before sampling setup
is done.
2021-06-04 14:07:46 +02:00
Bartosz Taudul
3c31fb56a8
Allow range-limiting hardware samples.
2021-06-04 13:58:00 +02:00
Bartosz Taudul
a1acea0c50
Support hw sample times on server.
2021-06-04 13:38:45 +02:00
Bartosz Taudul
2765be92fb
Sample time for hardware samples.
2021-06-04 12:50:55 +02:00
Bartosz Taudul
1616411257
Use AVX2 to search in strings with 32-byte blocks.
2021-06-03 13:49:38 +02:00
Bartosz Taudul
348582d6e4
Search for string matches with 8-byte blocks.
2021-06-03 13:10:26 +02:00
Bartosz Taudul
f8bb24ed36
Search for a character in string in 8-byte blocks.
2021-06-03 12:47:00 +02:00
Bartosz Taudul
483d31c1f4
Ringbuffer tail is not updated by kernel.
2021-06-03 01:14:44 +02:00
Bartosz Taudul
eb38640114
Fix uninitialized pointer.
2021-06-03 00:53:49 +02:00
Bartosz Taudul
b79014f3ee
Optimize parsing numbers.
...
Don't read byte-by-byte, process data in 8-byte packets.
2021-06-03 00:27:01 +02:00
Bartosz Taudul
b7c5939bb8
Merge remote-tracking branch 'origin/master' into hw
2021-06-02 01:12:28 +02:00
Bartosz Taudul
f4d80a4f5f
Fix rpmalloc init for TRACY_MANUAL_LIFETIME path.
2021-05-31 22:55:30 +02:00
Bartosz Taudul
1badc53e71
Update NEWS.
2021-05-31 22:40:57 +02:00
Bartosz Taudul
3da84d1579
Hide rpmalloc init behind thread local boolean.
2021-05-31 22:38:22 +02:00
Bartosz Taudul
b0fc0d5dcc
Check if rpmalloc has to be initialized before each operation.
...
The C++11 spec states in [basic.stc.thread] thread storage duration:
2. A variable with thread storage duration shall be initialized before its
first odr-use (3.2) and, if constructed, shall be destroyed on thread exit.
Previously Tracy relied on the TLS data being initialized:
- During thread creation (MSVC).
- Or during first use in a thread, but the initialization was performed for
the whole TLS block.
It seems that new compilers are more granular with how they perform the
initialization, hence rpmalloc init has to be checked before each allocation,
as it cannot be "folded" into, for example, initialization of the profiler
itself.
2021-05-31 02:31:42 +02:00
Bartosz Taudul
92fb197aac
Use weak compare, yield thread.
2021-05-31 02:22:13 +02:00
Bartosz Taudul
94ec6a0d9d
Move TracyYield.hpp to common.
2021-05-31 02:19:35 +02:00
Bartosz Taudul
c41473b445
Cosmetics.
2021-05-31 02:12:16 +02:00
Bartosz Taudul
3feb2473a2
Fix rpmalloc on ios.
...
https://github.com/mjansson/rpmalloc/issues/146
2021-05-30 13:38:29 +02:00
Timo Suoranta
f6eb909152
Documentation for CMake FetchContent support
2021-05-30 12:51:04 +02:00
Timo Suoranta
629b6d88bb
Provide CMake TracyClient header only library
2021-05-30 12:45:16 +02:00
Bartosz Taudul
e606c75695
Don't require GL headers if tracing is disabled.
2021-05-29 12:01:03 +02:00
Bartosz Taudul
688a9722c7
Update ImGui to 1.83 + docking.
2021-05-25 22:21:54 +02:00
Bartosz Taudul
4fc02f5680
Ignore intrinsic wrappers during code location resolution.
2021-05-24 00:02:44 +02:00
Bartosz Taudul
f8ccd8c40d
Move TracyStackFrames to common.
2021-05-23 23:51:56 +02:00
Bartosz Taudul
a6011cd1ad
Ignore intrinsic wrappers in callstack frames.
...
With gcc/clang the wrapper functions for intrinsics are annoyingly inserted at
top level of stack traces, making it hard to see the call site. Filter out all
known instrinsic headers.
2021-05-23 23:22:45 +02:00
Bartosz Taudul
c13611cf0c
Make unreliable hw stats darker.
2021-05-23 21:32:48 +02:00
Bartosz Taudul
cfb6d0d2ae
Timestamp conversion might be temporarily unavailable.
2021-05-23 20:32:09 +02:00
Bartosz Taudul
233a0bb6d6
Set precise_ip to 0 for cache on Intel.
...
Fuck knows how this is supposed to work. perf_event_open() opens the
descriptor successfully, but it produces no samples, if precise_ip is not 0.
There are no such problems on ARM (where precise_ip is 3, but maybe it is not
supported at all on that architecture, again, fuck knows if), and on AMD
perf_event_open() does not succeed when precise_ip > 0.
2021-05-23 19:45:13 +02:00
Bartosz Taudul
b2d5fe8e1f
Reduce sampling frequency.
2021-05-23 19:03:11 +02:00
Bartosz Taudul
b1e4d16537
PIDs are no longer needed in samples.
2021-05-23 19:00:45 +02:00
Bartosz Taudul
bbd1c4505c
Restrict perf to return events only for the current PID.
2021-05-23 18:53:09 +02:00
Bartosz Taudul
4ad6f682c8
Exclude VM-related stuff.
2021-05-23 18:44:16 +02:00
Bartosz Taudul
fece23a32b
Set frequency, not period.
...
This enables sampling on ARM dev board.
2021-05-23 18:02:06 +02:00
Bartosz Taudul
7d3119cbac
Remove irrelevant flag.
2021-05-23 18:01:18 +02:00
Bartosz Taudul
d869b9a8bc
Update manual.
2021-05-23 16:25:18 +02:00
Bartosz Taudul
19c41b94c0
Add glow to hotness indicators on lines.
2021-05-23 13:52:38 +02:00
Bartosz Taudul
a6f85bd061
Color hardware samples stats.
2021-05-23 13:13:38 +02:00
Bartosz Taudul
48ab346835
Add goodness color table accessor.
2021-05-23 12:49:40 +02:00
Bartosz Taudul
2544b891de
Add goodness color generator.
2021-05-23 12:49:20 +02:00
Bartosz Taudul
1b589855e8
Adjust hotness color scaling.
2021-05-23 12:29:48 +02:00
Bartosz Taudul
815cf7d00a
Display hardware counter statistics in asm line columns.
2021-05-23 02:39:31 +02:00
Bartosz Taudul
77c33327f4
Merge remote-tracking branch 'origin/master' into hw
2021-05-23 01:01:21 +02:00
Bartosz Taudul
5f7225ce32
Merge pull request #224 from keur/external_trace_use_file_and_line
...
Use file:line when comparing traces
2021-05-22 12:36:05 +02:00
Bartosz Taudul
1fc0e1ead5
Merge pull request #225 from stgatilov/patch-1
...
Tiny fix in manual
2021-05-22 12:13:26 +02:00
Kevin Kuehler
871d41be1f
Implement FindMatchingZone(..)
...
Sets m_compare to the matched index. It supports multiple flags. It can
be run by comparing function name, source file, line number, and any
combination thereof. When searching for a match, we do 3 runs, quitting
out if any of them succeed.
1. Look for zone with same function same, source file, line number.
2. Look for zone with same function same, source file.
3. Look for zone with same function same.
2021-05-22 01:33:06 -07:00
stgatilov
e01ba2d7d4
Tiny fix in manual
...
Without parentheses, bitwise-and takes precedence over bitwise-or.
2021-05-22 14:20:36 +07:00
Bartosz Taudul
34ca6d865e
Sample branches and cache more frequently.
2021-05-22 02:28:32 +02:00
Bartosz Taudul
c7026cbc1f
Reduce hw sample period.
2021-05-22 02:27:34 +02:00
Bartosz Taudul
089eda0be9
Precise_ip should be shared in each pair of counters.
2021-05-22 02:16:49 +02:00
Bartosz Taudul
fef507dfa2
Merge remote-tracking branch 'origin/master' into hw
2021-05-22 02:05:47 +02:00
Bartosz Taudul
68948712b4
Don't sleep if queues are empty, but there's queries to handle.
2021-05-22 01:12:42 +02:00
Bartosz Taudul
6bb05c5b97
Update NEWS.
2021-05-22 01:12:33 +02:00
Bartosz Taudul
1e6aedf9e6
Limit client query response rate.
...
Original idea by xavier <xavierb@gmail.com>
2021-05-22 01:05:06 +02:00
Bartosz Taudul
306055ebfa
Cosmetics.
2021-05-22 00:46:11 +02:00
Kevin Kuehler
5ab84d0c3f
Use file:line when comparing traces
...
When comparing traces, where multiple classes share the same zone
names, the behavior prior to this patch was to auto-select the first
matching zone name in the other trace. Instead, find the most correct
zone by using filename and line number.
2021-05-21 15:25:26 -07:00
Bartosz Taudul
621d1b03cd
Update manual.
2021-05-21 22:28:38 +02:00
Bartosz Taudul
0f8ea78cd4
Update NEWS.
2021-05-21 22:28:38 +02:00
Bartosz Taudul
d7541bbdba
Allow disabling inline resolution on windows.
...
Original commit a6b25497 by xavier <xavierb@gmail.com>:
add TRACY_CALLSTACK_IGNORE_INLINES to tradeoff speed vs precision in win32 DecodeCallstackPtr()
SymQueryInlineTrace() is too slow in some cases:
300000 queries backlog getting processed at ~70 per second is prohibitive.
(without inlines resolution, it's more like ~20000 queries per second)
2021-05-21 22:27:35 +02:00
Bartosz Taudul
8ec08465ee
Add debug messages to perf event setup.
2021-05-21 01:47:45 +02:00
Bartosz Taudul
afcebb6e6a
Add debug print macros.
2021-05-21 01:47:31 +02:00
Bartosz Taudul
4d668741eb
Probe for acceptable precise_ip value.
...
This is stupid, but it's exactly what perf does... Sigh.
2021-05-21 01:33:37 +02:00
Bartosz Taudul
ea5a9ee83b
Merge remote-tracking branch 'origin/master' into hw
2021-05-20 20:56:16 +02:00
Bartosz Taudul
87cff004a4
Show hw samples tooltip when there are no samples.
2021-05-20 20:10:27 +02:00
Bartosz Taudul
3ba82ba4d6
Separate IPC, cache and branch data in tooltip.
2021-05-20 19:56:23 +02:00
Bartosz Taudul
c6f071a66a
Save and load hardware sample data.
2021-05-20 19:37:51 +02:00
Bartosz Taudul
9eda9dc696
Merge pull request #222 from xxxbxxx/gcc11
...
build with gcc 11
2021-05-20 17:59:03 +02:00
xavier
28e5aae17e
build with gcc 11
2021-05-20 17:30:54 +02:00
Bartosz Taudul
30ba177168
Merge pull request #221 from RichardUSTC/patch-1
...
The value for paramter 'compressed_ttf_size' passed to 'AddFontFromMemoryCompressedTTF' seems to be a typo.
2021-05-20 11:09:37 +02:00
Bin LI
bde4d6c496
fix the typo
...
The value for paramter 'compressed_ttf_size' passed to 'AddFontFromMemoryCompressedTTF' seems to be a typo.
2021-05-20 09:13:26 +08:00
Bartosz Taudul
df50eb890f
Fix printing percentage.
2021-05-20 02:53:49 +02:00
Bartosz Taudul
bcb7b94272
Tid is not needed.
2021-05-20 02:39:22 +02:00
Bartosz Taudul
5a7e9cdbdd
0% miss rates are fine too.
2021-05-20 02:31:00 +02:00
Bartosz Taudul
f0f3babacf
Set correct message types.
2021-05-20 02:27:36 +02:00
Bartosz Taudul
9b4716c49e
Display cache and branch miss rates.
2021-05-20 02:26:02 +02:00
Bartosz Taudul
227a8d1aee
Process additional hardware sample data.
2021-05-20 02:19:11 +02:00
Bartosz Taudul
5f3d1c0faf
Sample cache and branch stats.
2021-05-20 02:15:23 +02:00
Bartosz Taudul
9ef5430c01
Document perf kernel parameters.
2021-05-20 02:00:49 +02:00
Bartosz Taudul
faf87809d7
Reduce hw sampling rate.
2021-05-20 01:48:52 +02:00
Bartosz Taudul
24b5e16718
Display hw sampling stats in tooltip.
2021-05-20 01:37:59 +02:00
Bartosz Taudul
741de5c8fb
Allow disabling cycle/retirement sampling.
2021-05-19 23:38:32 +02:00
Bartosz Taudul
3a0e12043d
Differentiate hw samples from code addresses.
2021-05-19 23:29:27 +02:00
Bartosz Taudul
2e38e70049
Reduce hardware sampling perdiod. Don't sample time.
2021-05-19 23:21:21 +02:00
Bartosz Taudul
28cc72a69c
Display hardware samples count.
2021-05-19 23:05:58 +02:00
Bartosz Taudul
3228e20c2e
Add hardware samples accessors.
2021-05-19 23:05:50 +02:00
Bartosz Taudul
373a2b66c6
Collect hardware sample data.
2021-05-19 23:05:33 +02:00
Bartosz Taudul
101cdd9b4b
Don't send thread id for hw samples.
2021-05-19 22:52:13 +02:00
Bartosz Taudul
64ed3d057d
Add no-op dispatch of HW samples.
2021-05-19 21:09:55 +02:00
Bartosz Taudul
7794443453
Collect CPU cycles and instruction retirement events.
2021-05-19 21:09:55 +02:00
Bartosz Taudul
16101571e0
Close perf_event file descriptor on exec.
2021-05-19 21:09:55 +02:00
Bartosz Taudul
9cd1b26bc7
Keep count of ring buffers separate from number of CPUs.
2021-05-19 21:09:55 +02:00
Bartosz Taudul
b7d52d2eab
Store RingBuffer identifier.
2021-05-19 21:09:52 +02:00