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

9568 Commits

Author SHA1 Message Date
Bartosz Taudul
f649943e93 Fix text formatting. 2025-12-28 16:03:44 +01:00
Bartosz Taudul
f43b86e3b3 Merge pull request #1180 from siliceum/feature/logging
Support source/severity for messages
2025-12-28 15:17:03 +01:00
Clément Grégoire
5ef64841cc Remove MessageMetadata type and replace by uint8_t everywhere 2025-12-28 15:04:18 +01:00
Clément Grégoire
2df7c53c26 Keep tracy::Profiler::Message in the stack frames that need to be ignored
This may still appear in saved traces.
2025-12-28 15:04:18 +01:00
Clément Grégoire
4cceab5ad8 Remove Profiler::Messsage since it's not part of the public API
This also replaces `___tracy_emit_message*` by `___tracy_emit_logString`.
The `TracyCMessage*` defines no long include the `;`, which may be a breaking change even though we did already require semi-colon since 0.9.0. See #493 and #592
2025-12-28 15:04:05 +01:00
Clément Grégoire
88c926d723 TracyMessage* Macros now use tracy::Profiler::LogString 2025-12-28 15:01:00 +01:00
Clément Grégoire
1a4cdef4b6 Add TracyLog to the test example 2025-12-28 15:01:00 +01:00
Clément Grégoire
f17bd3f444 TracyDebug now uses TracyInternalMessage by default unless TRACY_VERBOSE or TRACY_NO_INTERNAL_MESSAGE is defined 2025-12-28 15:00:59 +01:00
Clément Grégoire
13261b9bdc ETWErrorAction now uses message source and severity 2025-12-28 14:50:41 +01:00
Clément Grégoire
b2a7bb64ff Add tooltip for message source filters 2025-12-28 14:50:41 +01:00
Clément Grégoire
3e99b0e7c2 Add severity name tooltip 2025-12-28 14:50:41 +01:00
Clément Grégoire
a0016be7ff Allow filtering Messages by source and severity 2025-12-28 14:50:41 +01:00
Clément Grégoire
35a05aea62 Optimize message filtering a bit
Instead of decompressing and checking visibility of the thread all the time, cache the previous result.
2025-12-28 14:50:41 +01:00
Clément Grégoire
615db1a78c Refactor message filtering
This now uses a single path for all cases (filter/threads changed, new message).
Note this no longer discriminates against `m_messageFilter.IsActive()` to skip the message filter. `ImGui::PassFilter already` early outs, and if performance is a concern we might as well start by caching the result of `VisibleMsgThread` which always does a hashmap lookup.
2025-12-28 14:50:41 +01:00
Clément Grégoire
1e61dc88de Add source and severity to the server's MessageData + bump minor version for serialization
Note this does not change `sizeof(MessageData)` as there were 5 bytes left due to alignment. (now 3)
2025-12-28 14:50:38 +01:00
Clément Grégoire
f650b69591 tracy_force_inline for message metadata conversion 2025-12-28 14:44:40 +01:00
Clément Grégoire
f981330f66 Replace all messages text addr by TaggedUserlandAddress and send metadata over the network
There are two changes to the protocol:

- `QueueMessageLiteral*` were changed and what used to be addresses are now addresses+metadata
- Other messages now send `QueueMessage*Metadata` with added metadata.

This will later be used to store and transmit message sources, level, etc.
2025-12-28 14:44:40 +01:00
Clément Grégoire
9c57b229ea Introduce tracy::TaggedUserlandAddress to pack metadata with pointers 2025-12-28 14:42:40 +01:00
Bartosz Taudul
a602127edd Merge pull request #1242 from wvbbreu/cupti-driverapi-memtrace
Add CUDA Driver API memory operations to Tracy CUPTI profiling
2025-12-25 13:16:37 +01:00
Wiebe van Breukelen
66b23bb19a Add CUDA Driver API memory operations to Tracy CUPTI profiling
Extended Tracy's CUPTI callback registration to track CUDA Driver API
memory operations that were previously missing.
Registration of these events allow users to trace applications that directly
call the Driver API.
2025-12-24 12:05:51 +01:00
Bartosz Taudul
1ad248892d Fix time range limits button id overlap. 2025-12-23 14:03:54 +01:00
Bartosz Taudul
b63f605ec1 Merge pull request #1239 from slomp/slomp/macos-arm64-tsc
Apple Silicon / macOS: use ARM64 CNTVCT_EL0 instruction in GetTime()
2025-12-23 12:31:15 +01:00
Marcos Slomp
2d3fa2141e removing parentheses from define 2025-12-22 12:22:26 -08:00
Marcos Slomp
f55bd056a9 switch to using ARM64's CNTVCT_EL0 instruction instead of std::chrono::high_resolution_clock on macOS 2025-12-22 11:43:51 -08:00
Bartosz Taudul
6cd7751479 Merge pull request #1236 from siliceum/fix/frame-image-race-condition
Fix frame image race condition + refactor
2025-12-18 16:36:41 +01:00
Bartosz Taudul
9ced780715 Merge pull request #1235 from alexandergunnarson/master
A few minor Windows-specific fixes
2025-12-18 16:34:18 +01:00
Clément Grégoire
0eb9f4acb6 Fix frame image race condition + refactor
- In the connection state, retrieve the FrameImage while owning the data lock.
- Use actual image data pointer as caching key instead of the address of ImageCache which may change during executation (unstable).
- Fixes scale Messages image tooltip scale.
- Free the connection image
2025-12-18 15:44:58 +01:00
Alex Gunnarson
921d426488 Add conditional compilation option for MSVC 2025-12-17 15:26:58 -07:00
Alex Gunnarson
90bc94f237 Use builtins before MSVC intrinsics 2025-12-17 15:24:04 -07:00
Alex Gunnarson
dffa18378b Update IMAGEHLP_LINE to IMAGEHLP_LINE64
OfflineSymbolResolverDbgHelper.cpp uses IMAGEHLP_LINE but
SymGetLineFromAddr64 expects IMAGEHLP_LINE64. On 64-bit Windows these are typedef'd to the same thing, but on 32-bit they're different.
2025-12-17 15:19:00 -07:00
Bartosz Taudul
8b2019830a Merge pull request #1234 from siliceum/fix/etw-vsync
VSyncDPC events do not have the Keyword::DxgKrnlPresent bit set, so using it as MatchAllKeyword excluded it
2025-12-17 18:07:42 +01:00
Bartosz Taudul
2c19b82d72 Merge pull request #1233 from slomp/slomp/etw-happiness
Ensure all ETW StackWalk requests are satisfied
2025-12-17 18:07:26 +01:00
Clément Grégoire
d59e6cdfad VSyncDPC events do not have the Keyword::DxgKrnlPresent bit set, so using it as MatchAllKeyword excluded it 2025-12-17 17:45:52 +01:00
Marcos Slomp
4a6c75d8f8 ensure all stackwalk requests are satisfied 2025-12-17 08:03:34 -08:00
Bartosz Taudul
3ac8242d72 Merge pull request #1227 from WangFengtu1996/master
fixbug build cuda demo error
2025-12-17 16:43:27 +01:00
Fengtu Wang
4745db1553 Fix include statement for Tracy.hpp 2025-12-17 09:47:19 +08:00
Bartosz Taudul
3258599899 Merge pull request #1229 from slomp/slomp/etw-error-check-patch
ETW initialization: more explicit error check
2025-12-17 00:26:00 +01:00
Marcos Slomp
db745611c4 more explicit error check 2025-12-16 13:38:42 -08:00
Bartosz Taudul
1977beafe6 Merge pull request #1228 from siliceum/fix/test-memory-free
Fix unknown allocation message in debug due to alloc name litteral not pointing to the same location
2025-12-16 20:19:19 +01:00
Clément Grégoire
16558f2915 Fix unknown allocation message in debug due to alloc name litteral not pointing to the same location 2025-12-16 19:49:08 +01:00
Bartosz Taudul
7976e6ab0b Merge pull request #1213 from slomp/slomp/etw-refactor
Refactoring ETW kernel session
2025-12-16 18:59:56 +01:00
Marcos Slomp
2403438bd9 error flow control for VSync tracing 2025-12-16 09:11:11 -08:00
Marcos Slomp
bb3b5b6a4f reuse StopSession 2025-12-16 09:10:19 -08:00
Fengtu Wang
d2ffc9b9c6 fixbug build cuda demo error
1. fix bug build error can not find head file `#include <tracy/Tracy.hpp>`
2.  when not enable TRACY_ENABLE macro, build error  can not find  `tracy::CUDACtx` type
2025-12-16 18:32:10 +08:00
Marcos Slomp
a0092a793a abandoning the private kernel session for now 2025-12-15 16:21:42 -08:00
Marcos Slomp
c0ac36918a adding interfaces for singleton kernel logger session, and regular user sessions 2025-12-15 16:20:57 -08:00
Marcos Slomp
22d2b7407f emit ETW errors in english 2025-12-15 16:19:45 -08:00
Bartosz Taudul
0e3b3c57fc Merge pull request #1223 from siliceum/fix/fix-example-alloc-tracking
Test: Fix unknown allocation message in debug due to arena name litteral not pointing to the same location
2025-12-12 16:55:31 +01:00
Clément Grégoire
9c66d27777 Test: Fix unknown allocation message in debug due to arena name litteral not pointing to the same location 2025-12-12 16:40:14 +01:00
Bartosz Taudul
a7c6b7f02a Merge pull request #1221 from martymichal/wip/martymichal/fix-atomic-thread-init
public/client: Correctly initialize atomic thread reference
2025-12-12 12:21:34 +01:00