0
0
mirror of https://github.com/wolfpld/tracy.git synced 2026-01-18 17:11:26 +01:00
Commit Graph

8734 Commits

Author SHA1 Message Date
Bartosz Taudul
87924acdd9 Release 0.12.0. v0.12.0 2025-05-30 20:27:13 +02:00
Bartosz Taudul
902d32f54f Update manual. 2025-05-30 19:03:17 +02:00
Bartosz Taudul
74302ad184 Update NEWS. 2025-05-30 18:35:17 +02:00
Bartosz Taudul
0574decec0 Shorten image names by default. 2025-05-30 18:20:40 +02:00
Bartosz Taudul
f14ff2b994 Support old compilers. 2025-05-24 13:16:13 +02:00
Bartosz Taudul
2dfedbe833 Merge pull request #1052 from siliceum/remove-python-dependency
Fix #996 Remove any need for python during build
2025-05-24 13:13:53 +02:00
Clément Grégoire
eba268ad9d Fix #996 Remove any need for python during build
We are now using only CMake to generate `GitRef.hpp`. This should make it easier to build on Windows.
We use git's pretty formatting instead of rev-parse to output the full file in a single command, then CMake's `copy_if_different` to avoid unnecessary rebuilds.

Trick is to use %n for newlines and %x22 for quotes. See https://git-scm.com/docs/pretty-formats

We also output "unknown" and a warning when git is not available.
2025-05-24 01:16:08 +02:00
Bartosz Taudul
8b3a421153 Merge pull request #1051 from FRaNk090/feature/cuda
Add CUDA Backend Support to Tracy profiler
2025-05-23 23:29:55 +02:00
Fan Chen
0eb3a82673 Move CUDA after Custom as existing traces may use the Custom identifier 2025-05-23 15:22:36 -04:00
Fan Chen
1cb85b037d Refine tracy cuda documentation 2025-05-23 12:59:21 -04:00
Fan Chen
d0b7c7c048 ADD CUDA to GpuContextNames 2025-05-22 19:28:17 -04:00
Fan Chen
feda21b047 Refine tracy cuda documentation 2025-05-22 19:26:57 -04:00
Fan Chen
467f39b222 Add TracyCUDAStartProfiling and TracyCUDAStopProfiling macros 2025-05-22 15:38:40 -04:00
Bartosz Taudul
71fc3bc747 Merge pull request #1040 from blegat/TimeToStringExact
Time to string exact
2025-05-19 12:57:45 +02:00
Benoît Legat
45f9ece0b1 Apply review comment 2025-05-18 09:30:38 +02:00
Fan Chen
7712e53b1c Add Documentation in manual 2025-05-17 14:55:46 -04:00
Fan Chen
8075a2c88f Add necessary Tracy macros 2025-05-17 14:55:02 -04:00
Fan Chen
67552743ba Add necessary Tracy macros 2025-05-17 13:35:23 -04:00
Fan Chen
0ef8bdd44d Fix wrapping everything inside #if TRACY_ENABLE / #else blocks 2025-05-17 13:23:39 -04:00
Fan Chen
f48ba426c2 Remove TODO: Replace it with CUDA type 2025-05-17 13:12:08 -04:00
Fan Chen
f0ae6ffe61 enclose everything inside #if TRACY_ENABLE / #else blocks 2025-05-17 13:09:48 -04:00
Fan Chen
ac6f2e56e6 add CUDA to list of supported GPU compute APIs 2025-05-17 13:06:16 -04:00
Fan Chen
abaaa8c1b1 Bump up protocol version 2025-05-17 12:59:27 -04:00
Fan Chen
62dd2c887e Replace GPU context type with CUDA 2025-05-17 12:57:53 -04:00
Fan Chen
8643d0f1cc Add CUDA queue type 2025-05-17 12:56:19 -04:00
Fan Chen
b52fa7d8ef Add tracy cuda header file including necessary Tracy Macros 2025-05-17 12:54:52 -04:00
Bartosz Taudul
c530219e46 Merge pull request #1047 from siliceum/nocrash-on-max-source-loc
Fix crash when reaching the source location limit
2025-05-12 17:03:39 +02:00
Clément Grégoire
c100b32b48 Fix crash when reaching the source location limit
Instead of crashing when reaching the maximum number of source locations, display an empty source location ( with "???" everywhere).
Keeping the assert for discoverability of the limit in debug, but ensure profiler won't crash later on (or in release).
2025-05-12 13:49:31 +02:00
Bartosz Taudul
a8d6707368 Merge pull request #1045 from siliceum/fix-delay-loading
Fix delay loading by not exporting variables
2025-05-12 13:21:17 +02:00
Clément Grégoire
10c6e3dee1 Fix delay loading by not exporting variables
[`/DELAYLOAD`](https://learn.microsoft.com/en-us/cpp/build/reference/delayload-delay-load-import?view=msvc-170) only works with exported functions, not variables (as it patches thunks after the first load).
So instead of using exporting a pointer for `___tracy_RtlWalkFrameChain`, make it a function that will call said pointer. This only adds a `mov`+`jmp` instructions in optimized builds to the call, which is negligible compared to the actual cost of RtlWalkFrameChain. This also does not affect the reported callstack since it will use a `jmp` without touching the stack, so `___tracy_RtlWalkFrameChain` won't appear in the capture stacktrace.
2025-05-12 11:56:38 +02:00
Bartosz Taudul
53510c316b Update nfd-extended to 1.2.1, retrieve via CPM. 2025-05-11 14:16:20 +02:00
Bartosz Taudul
fc9b39e26d Bump ImGui to 1.91.9b-docking. 2025-05-11 13:50:34 +02:00
Bartosz Taudul
5140a5a411 Merge pull request #1021 from siliceum/wakeup
Thread wakeup visualization
2025-05-10 13:55:51 +02:00
Bartosz Taudul
3ff5e9b128 Merge pull request #1041 from tvoeroes/fix-some-too-small-buffers
fix some string buffer sizes
2025-05-10 00:31:08 +02:00
Tomaž Vöröš
a088ebe337 fix some buffer sizes 2025-05-10 00:27:32 +02:00
Clément Grégoire
0ce3b05d64 Fix issues with timeline highlight code when IsMouseClickReleased is called
`HandleTimelineMouse` did the following
- `m_highlight.active = true` when clicked
- update range while dragging
- `m_highlight.active = false` when not dragging

This causes issues when `IsMouseClickReleased` is called somewhere else as
- `mousePotentialClickRelease` is set to true on click
- At beginning of frame, `mouseDragging` is set to `false` as long as `mousePotentialClickRelease` is `true` and mouse delta is under the drag threshold
- This means that if the mouse didn't move enough in the duration of a frame, highlight would immediately stop, even though we were still holding the mouse button down

Instead, it now only stops highlighting once the mouse is no longer down (ie: has been "released", cursor having moved or not)
2025-05-07 15:37:56 +02:00
Benoît Legat
98c7768fd0 Add _int64_abs function 2025-05-06 17:49:01 +02:00
Benoît Legat
4f424dfea0 Fix TimeToStringExact with mininmal int64 input 2025-05-06 17:34:36 +02:00
Clément Grégoire
2c2d126967 Remove added spaces 2025-05-05 15:52:54 +02:00
Clément Grégoire
58401a93ab Fix file read when skipping context switches data 2025-05-05 15:29:30 +02:00
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 6b03d1dd9e.
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
Clément Grégoire
859aa9fbf0 Fix missing return and formating in DecodeContextSwitchReason 2025-04-25 17:43:29 +02:00
Clément Grégoire
b906430f50 Thread wake up vertical par now uses half pixel offset 2025-04-24 12:23:27 +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