Commit Graph

10173 Commits

Author SHA1 Message Date
Bartosz Taudul
bd0ba00513 Merge pull request #1377 from siliceum/fix/non-desktop-win32
Fix non desktop win32 build
2026-05-29 17:55:11 +02:00
Clément Grégoire
0e52e387bd gate GetUserNameExA behind TRACY_WIN32_NO_DESKTOP
Same as `GetUserNameA` in `GetUserLogin`
2026-05-29 17:51:33 +02:00
Clément Grégoire
e93ddd2aa7 When using the MSVC C runtime, fileno doesn't actually exist, use _fileno instead.
OLDNAMES.lib may not be linked if you use /NODEFAULTLIB.
Note: This uses `_MSC_VER` as a gate and not _WIN32 as MinGW apparently uses `fileno` and not `_fileno`.
2026-05-29 17:51:30 +02:00
Bartosz Taudul
33905b2f15 Dim external frames in local call stacks. 2026-05-29 00:34:05 +02:00
Bartosz Taudul
d06755652f Merge pull request #1374 from rmarker/flameView
Allow zooming and panning the flamegraph view.
2026-05-28 20:18:45 +02:00
Bartosz Taudul
dbdbd710d8 Add readme file for the user manual directory. 2026-05-28 18:39:00 +02:00
rmarker
15ee99ae41 Add animated zooming to the flame graph view. 2026-05-28 22:02:11 +09:30
rmarker
17f6be4ad4 Extract UpdateZoomAnimation.
This will allow for it to be used in the flame graph.
2026-05-28 22:01:03 +09:30
rmarker
30fd92de0f Handle partial panning in flame graph view.
When zoomed in very far the panning resolution can be so small that it
is less than one unit. In order to continue panning, we store partial
pans so that they can accumulate across frames.
2026-05-28 21:59:33 +09:30
rmarker
0b27b9ec1a Allow zooming in further to the flame graph. 2026-05-28 21:51:41 +09:30
rmarker
cc4b7dcea9 Add a reset view button to the flame graph. 2026-05-28 21:50:19 +09:30
rmarker
4a9e3ea095 Add a horizontal position bar to flame graph.
Now that the ruler just shows the delta time across the view it doesn't
indicate where the view is currently looking.
The new position bar fills this role to allow orientating oneself.
2026-05-28 21:48:14 +09:30
rmarker
55de5bc5ca Update flame graph ruler to measure the time shown in the current view.
It now starts at 0 and shows the time delta across the view.
2026-05-28 21:39:03 +09:30
rmarker
2e87eecc67 Support the live capture case in the flame graph view.
Zooming and panning in the flame graph view shouldn't cause visual
glitches when live data is being captured.
2026-05-28 21:37:01 +09:30
Bartosz Taudul
74eea83051 Merge pull request #1375 from wolfpld/slomp/vulkan-calibration-patch
GPU: Vulkan: upper-bound to the calibration loop
2026-05-28 11:37:00 +02:00
Marcos Slomp
c9fa58f2bb keep preprocessor directives idented to the margin 2026-05-27 16:12:24 -07:00
Marcos Slomp
b7fdc8c0eb newlines 2026-05-27 15:54:03 -07:00
Bartosz Taudul
f5581d7dcb Focus opened manual chapter in the manual tree. 2026-05-27 22:34:04 +02:00
Bartosz Taudul
b682a77f82 Focus the manual window on chapter change. 2026-05-27 22:34:04 +02:00
Bartosz Taudul
800334a953 Show nicer title page of embedded user manual. 2026-05-27 22:34:04 +02:00
Bartosz Taudul
9da66d4c6b Add icon texture accessor. 2026-05-27 22:33:56 +02:00
Bartosz Taudul
04c1a84159 Do not display icon explainer section in the built-in manual viewer. 2026-05-27 01:52:11 +02:00
Bartosz Taudul
b736e4590e Rebuild markdown manual. 2026-05-27 01:52:11 +02:00
Bartosz Taudul
6b28296ef3 Add icon explanations to aid in helping icons by what they show. 2026-05-27 01:52:11 +02:00
Bartosz Taudul
c11fd010d8 Rebuild markdown manual. 2026-05-27 00:10:33 +02:00
Bartosz Taudul
121e10c837 Convert latex font awesome markup to unicode codepoints matching the C defines. 2026-05-26 23:56:27 +02:00
Marcos Slomp
e57c0869df (take care of dead code warning) 2026-05-26 14:49:32 -07:00
Marcos Slomp
4cf754f3fe Calibrate no takes a max sample count 2026-05-26 14:39:12 -07:00
Bartosz Taudul
22d1c2d3c3 Properly convert bclogo blocks into markdown. 2026-05-26 22:34:45 +02:00
Marcos Slomp
884415264b error check 2026-05-26 07:53:01 -07:00
Marcos Slomp
ea8cbc849f adding an upper-bound to the calibration loop 2026-05-26 07:15:54 -07:00
Bartosz Taudul
20d7135c24 Merge pull request #1373 from siliceum/feature/unify-set-options
Options.cmake: unify `set_options*` and `tracy_set_options`
2026-05-26 12:58:45 +02:00
Clément Grégoire
aaf1304308 Options.cmake: unify set_options* and tracy_set_options
Renamed `tracy_*` versions to short version without prefix
2026-05-26 12:50:19 +02:00
rmarker
37750e27ab Allow zooming and panning the flamegraph view.
It could be challenging to examine fine details within the flamegraph.
The flamegraph has been enhanced so that it allows zooming with the
mouse wheel, and then panning around with the right mouse button.
This provides a familiar experience to the timeline view.
2026-05-26 19:30:29 +09:30
Bartosz Taudul
ab62c00be5 Add limit on disassembly tool reply. 2026-05-25 00:57:19 +02:00
Bartosz Taudul
757b582ae7 Include external function status in sampling stats. 2026-05-25 00:46:46 +02:00
Bartosz Taudul
b81ef061f8 Display LLM address during connection attempt. 2026-05-24 17:02:03 +02:00
Bartosz Taudul
702b16977b Set 5 second connection timeout on LLM API connection. 2026-05-24 17:02:02 +02:00
Bartosz Taudul
3f1e572a23 Update LLM API input hint to llama.cpp default port. 2026-05-24 17:02:02 +02:00
Bartosz Taudul
00d4e9ba21 Don't try connecting to LLM after each keystroke.
When typing in e.g. "127.0.0.1" the first character "1" as a valid address
that does not immediately fail the connection attempt. The result was that
any further interaction with the UI (including completing the input) was
blocked by the "please wait" screen during connection attempt.
2026-05-24 17:01:59 +02:00
Bartosz Taudul
ee37bb40f0 Merge pull request #1372 from wolfpld/slomp/nvcc-msvc-fix
NVCC (with MSVC/cl.exe) build fix
2026-05-24 16:29:58 +02:00
Bartosz Taudul
215199239f Merge pull request #1370 from siliceum/feature/custom-platform-hooks
Add `TRACY_PLATFORM_HEADER` hook for unsupported platforms
2026-05-24 15:48:43 +02:00
Clément Grégoire
f93d17a96f Add TRACY_PLATFORM_HEADER hook for unsupported platforms.
Extension point so private/unsupported platforms can plug in their own implementations of the kernel/libc primitives Tracy depends on, without patching the `#if`/`#elif` chains.

Projects supply a platform header via `-DTRACY_PLATFORM_HEADER="\"my_platform.h\""` at build time. Tracy includes it in any TU that needs the hooks. The header toggles per-category `TRACY_HAS_CUSTOM_*` macros and declares matching `tracy::Platform*` functions.

Available hooks:

- `TRACY_HAS_CUSTOM_THREAD_ID` → `PlatformGetThreadId`
- `TRACY_HAS_CUSTOM_USER_INFO` → `PlatformGetHostname`, `PlatformGetUserLogin`, `PlatformGetUserFullName`
- `TRACY_HAS_CUSTOM_SAFE_COPY` → `PlatformSafeMemcpy`
- `TRACY_HAS_CUSTOM_ALLOCATOR` → `PlatformMalloc`, `PlatformFree`, `PlatformRealloc`, `PlatformAllocatorInit`, `PlatformAllocatorThreadInit`, `PlatformAllocatorFinalize`, `PlatformAllocatorThreadFinalize`

Each hook is wired as the first arm of its respective `#if`/`#elif` chain, so existing supported platforms are unaffected.

Template files in `examples/CustomPlatform/` and a new subsection in `manual/tracy.tex` document the mechanism.
2026-05-24 15:42:42 +02:00
Clément Grégoire
84570487bf Move CMake option wrappers into cmake/options.cmake.
Move `tracy_set_option` and `tracy_set_option_value` from `CMakeLists.txt` into `cmake/options.cmake`. Add `tracy_set_option_value_as_string` for options whose value is embedded as a C string literal. All three accept an optional trailing target argument; when provided, the option is also propagated as a PUBLIC compile definition on that target.

Existing `set_option`/`set_option_value` are unchanged but will be replaced later by the `tracy_*` versions.
2026-05-24 15:42:42 +02:00
Bartosz Taudul
03227f7ae1 Update identify.cpp build instructions. 2026-05-24 15:35:43 +02:00
Bartosz Taudul
05c2638467 Remove option to build profiler GUI with no statistics. 2026-05-24 15:07:53 +02:00
Clément Grégoire
fd68959223 Rename InitRpmalloc to InitAllocator.
The function is about to dispatch between rpmalloc and a pluggable allocator hook, so the rpmalloc-specific name no longer fits. Pure rename plus a small consequence: the SymbolWorker call site no longer needs the TRACY_USE_RPMALLOC guard, since the no-op static-inline fallback in TracyAlloc.hpp makes InitAllocator() safe to call unconditionally.
2026-05-24 15:04:31 +02:00
Bartosz Taudul
5c0263c2f0 Disable display of hw samples by default. 2026-05-24 14:57:31 +02:00
Bartosz Taudul
5fd0dc569b Make impact option active only if hw samples are enabled. 2026-05-24 14:55:59 +02:00
Bartosz Taudul
ec1c2d4267 Display aggregation counts in bottom / up sample trees. 2026-05-24 14:23:59 +02:00