Commit Graph

9653 Commits

Author SHA1 Message Date
Clément Grégoire
b890719fdd Remove stray newline in TracySysTrace.cpp 2026-02-09 11:44:16 +01:00
Clément Grégoire
e9073800d5 Remove extraneous newline in meson.build 2026-02-09 11:41:11 +01:00
Clément Grégoire
d089c3e1b0 CMake: Enforce TRACY_TIMER_FALLBACK when TRACY_DISALLOW_HW_TIMER is set. 2026-02-09 11:40:07 +01:00
Clément Grégoire
b778b67676 Fix trailing whitespace 2026-02-09 11:37:07 +01:00
Clément Grégoire
2b2fafbcfc Start cleaning TRACY_HW_TIMER checks.
Ideally I think we might want to have TRACY_HW_TIMER mean only TSC/CNTVCT, and define TRACY_TIMER_FALLBACK for platforms that don't have them or have a special case such as iOS.
But for now, keep the same behaviour.
2026-02-09 11:30:24 +01:00
Clément Grégoire
b27561c21e Add TRACY_DISALLOW_HW_TIMER for VMs / WSL2 2026-02-08 17:10:24 +01:00
Clément Grégoire
79cb60025d Monotonic clock fallback for systrace 2026-02-08 17:07:00 +01:00
Bartosz Taudul
ca5ef812a3 Apple is also busted. 2026-02-01 20:39:53 +01:00
Bartosz Taudul
a9ea7ec1c9 Workaround libc++ issues. 2026-02-01 18:57:49 +01:00
Bartosz Taudul
8f0c83dbf9 Fix View ptr assignment. 2026-02-01 18:55:53 +01:00
Bartosz Taudul
2b201e6f59 RetrieveThread() uses a cache that cannot be shared between threads.
Note: IsThreadFiber() uses the same functionality, but is only called from
the main thread.
2026-02-01 18:01:39 +01:00
Bartosz Taudul
c86549a3bb View is accessed concurrently. 2026-02-01 17:29:34 +01:00
Bartosz Taudul
aba3ae2869 View's m_wasActive is used concurrently. 2026-02-01 16:55:46 +01:00
Bartosz Taudul
d1e831f69d Proper way of setting sanitizer parameters. 2026-02-01 16:44:15 +01:00
Bartosz Taudul
1d2b6cca24 Pack source code attachments.
Example source file, glm-4.7-flash:

5519 -> 4699 tokens (85%)
2026-02-01 16:37:42 +01:00
Bartosz Taudul
d71a38632c Nice formatting for host info. 2026-02-01 14:53:22 +01:00
Bartosz Taudul
d4d9339d95 Provide name of the profiled program to LLM. 2026-02-01 14:53:22 +01:00
Bartosz Taudul
0ad8767903 Explicitly mark non-inline frames as non-inline in LLM attachment. 2026-02-01 14:53:19 +01:00
Bartosz Taudul
1c383d8589 Merge pull request #1268 from siliceum/reenable-tracy-debug-as-log
Reenable TracyDebug LogString except under TRACY_DELAYED_INIT and not TRACY_MANUAL_LIFETIME
2026-02-01 14:53:02 +01:00
Clément Grégoire
55ce01c69e Reenable TracyDebug LogString except under TRACY_DELAYED_INIT and not TRACY_MANUAL_LIFETIME 2026-02-01 14:50:37 +01:00
Bartosz Taudul
e1fa883fbb Merge pull request #1267 from siliceum/fix/test-suppport-manual-lifetime
Tests should work under TRACY_MANUAL_LIFETIME.
2026-02-01 14:46:13 +01:00
Clément Grégoire
be78dc4bfb Tests should work under TRACY_MANUAL_LIFETIME.
This calls tracy::StartupProfiler(); before any other tracy call (in static init) if TRACY_MANUAL_LIFETIME is set
2026-02-01 14:45:00 +01:00
Bartosz Taudul
bc122d5c3d Do not call Glue() in PrintTextExt(). 2026-02-01 02:35:26 +01:00
Bartosz Taudul
b60ab86fa5 Extend link support to code sections, separators, etc. 2026-02-01 02:14:42 +01:00
Bartosz Taudul
32fae40c4e Extract link hover functionality to a separate function. 2026-02-01 02:05:08 +01:00
Bartosz Taudul
324ecdcb99 Change source code separator in LLM attachments. 2026-02-01 01:48:55 +01:00
Bartosz Taudul
c886c8fa00 Remove remains of vision in tool replies. 2026-01-31 19:21:24 +01:00
Bartosz Taudul
925732914a Draw source code preview in source file link tooltip. 2026-01-31 19:17:44 +01:00
Bartosz Taudul
d1ae380cc2 Make View::DrawSourceTooltip() public. 2026-01-31 19:17:07 +01:00
Bartosz Taudul
9d33668c9d Proper check for source file validity. 2026-01-31 18:54:43 +01:00
Bartosz Taudul
903b6b198f Retrieve source file string index and line number only once. 2026-01-31 18:42:07 +01:00
Bartosz Taudul
30ea4ed341 Print a nice tooltip for source links. 2026-01-31 18:35:37 +01:00
Bartosz Taudul
5b7a6bf447 Add instructions for providing source file links. 2026-01-31 18:03:31 +01:00
Bartosz Taudul
4fe8d16a20 Add support for source file links in markdown renderer. 2026-01-31 18:03:11 +01:00
Bartosz Taudul
7cc7e484b9 Make source search results more compact. 2026-01-30 22:55:55 +01:00
Bartosz Taudul
cfcc8af5c3 Remove indentation from tool replies. 2026-01-30 22:37:50 +01:00
Bartosz Taudul
3ce2905582 Default value does not need to be repeated. 2026-01-30 22:36:16 +01:00
Bartosz Taudul
67b75ac7fb Restore attachment indentation when viewing contents in UI. 2026-01-30 22:31:25 +01:00
Bartosz Taudul
99b70f7a6e Remove indentation from LLM attachments.
This has quite large effect on number of tokens. Example assembly attachment:

glm-4.7-flash: 7452 -> 5799 (77%)
gpt-oss-20b:   6896 -> 5245 (76%)
2026-01-30 22:27:55 +01:00
Bartosz Taudul
de002ed071 Update NEWS. 2026-01-30 21:49:17 +01:00
Bartosz Taudul
50eae09cda Source location may be missing a line number.
The valid check here is for the source file index being set (active).
The line number might be zero.

This fixes the "black" unknown source location in assembly listing.
2026-01-30 21:44:24 +01:00
Bartosz Taudul
b9a4bf4f7b Use the intended weighting order in ManageContext(). 2026-01-30 20:58:56 +01:00
Bartosz Taudul
d6e62b3c1f Spell out (long!) source file names in assembly attachments only once. 2026-01-30 01:38:20 +01:00
Bartosz Taudul
e017f504c6 Split source_file parameter context into context and context_back. 2026-01-30 01:07:15 +01:00
Bartosz Taudul
81e8b1a4d8 Update NEWS. 2026-01-29 23:05:40 +01:00
Bartosz Taudul
b7c54253ff Include TracyCrashHandler in a list of frames to cut on crash on Linux. 2026-01-29 22:44:23 +01:00
Bartosz Taudul
eb18dafb22 Check for a substring match in CutCallstack. 2026-01-29 22:44:13 +01:00
Bartosz Taudul
3ddb96b9af Change CutCallstack/SendCallstack interface to accept an array. 2026-01-29 22:41:21 +01:00
Bartosz Taudul
0c6b551afa Make TracyCrashHandler visible externally. 2026-01-29 22:39:24 +01:00
Bartosz Taudul
5a1ff2496c Rename CrashHandler to TracyCrashHandler. 2026-01-29 22:19:50 +01:00