Commit Graph
11248 Commits
Author SHA1 Message Date
Simon BoorerandClaude Opus 5.5 ab8a33cdfa Return OS thread ids from the server bindings.
get_samples_for_symbol, get_zone_occurrences_with_thread and get_messages
returned the worker's compressed thread index where the other bindings
(get_threads, get_thread_name, get_thread_zone_stats) take an OS thread id,
and where get_zone_occurrences_with_thread documents one.
get_zone_occurrences_with_thread also looked the index up by position in
GetThreadData(), which isn't ordered by it, so zones were attributed to
another thread. Decompress the index with Worker::DecompressThread, as
get_thread_zone_stats and the profiler do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 11:34:02 +00:00
Bartosz Taudul 26a27896ff Merge pull request #1507 from fknorr/econnrefused
Use poll()/getsockopt() to detect ECONNREFUSED
2026-11-17 17:34:34 +01:00
Bartosz Taudul aa5240ca19 Use LZ4_initStream instead of deprecated reset calls. 2026-11-14 13:55:43 +01:00
Bartosz Taudul 2ce0e5ad9b Bump LZ4 to 1.11.1. 2026-11-14 13:55:43 +01:00
Fabian Knorr aa8a4c1264 Socket: Use poll()/select() + getsockopt() to reliably detect ECONNREFUSED
On macOS, calling connect() twice on a non-blocking socket does not allow distinguishing between successful and unsuccessful completion.

poll() / WSAPoll() would be the correct cross-platform API to check for socket readiness, however on Windows before 10 2004 WSAPoll() never completes on a failed connect().
https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-connect documents that select() should be used instead. select() is an inferior choice on Unices,
where descriptors (ints) in fd_set are limited to < FD_SETSIZE (1024).
2026-11-13 09:53:05 +01:00
Bartosz Taudul 8a173237c8 Merge pull request #1519 from Lectem/monitor-client-options
Build tracy-monitor's client through the root project.
2026-11-12 12:30:36 +01:00
Clément Grégoire a4a083771a Build tracy-monitor's client through the root project.
This exposes all TRACY_* client options instead of only TRACY_ON_DEMAND.
2026-11-12 09:40:39 +01:00
Bartosz Taudul 29c4f5a8d4 Merge pull request #1518 from alandtse/fix/python-bindings-linux
build(python): fix Linux bindings build
2026-11-11 22:52:51 +01:00
Alan TseandClaude Sonnet 5.5 f7adbfa2b8 build(python): fix Linux bindings build
The Python bindings have failed to build on Linux since the server
bindings were added:

- The server dependencies (zstd, Capstone, getopt) contain C sources,
  but only CXX was enabled. Enable C in python/CMakeLists.txt.
- An empty CMAKE_INSTALL_BINDIR makes zstd's install() rules fail.
  Use "." so the client DLL still lands in the wheel root on Windows.
- TracyServer is linked into a shared module, which needs
  position-independent code. Set CMAKE_POSITION_INDEPENDENT_CODE.

All changes are inside python/ and only apply when TRACY_CLIENT_PYTHON
is ON.

Closes #1517

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LPZxBTTREb1SnkZkapQibr
2026-11-11 12:21:52 -08:00
Bartosz Taudul a9c2c41539 Merge pull request #1516 from Lectem/messages-selection
Messages selection from the timeline marker
2026-11-10 21:56:59 +01:00
Clément Grégoire 51b9084b6f Use designated initializers for MessagesDraw. 2026-11-10 21:55:32 +01:00
Clément Grégoire 0e8cc9c865 Keep the message clicked on the timeline selected.
Clicking a message marker on the timeline now selects that message, in addition to opening the messages window and scrolling to it. The selection persists until another message is clicked, and is only shown while the messages window is open.

- The selected message is drawn in yellow, both as a row in the messages and zone info lists and as a bouncing marker on the timeline. Hover keeps its red color and takes priority.
- Clicking a row in the messages list or in the zone info message list also selects it.
2026-11-10 18:32:09 +01:00
Clément Grégoire 5aa31f077c Don't scroll messages to bottom when focusing a message.
While connected, the messages list sticks to the bottom when it is already scrolled there, which is always the case for a window that was just opened. This would override the scroll to the message clicked on the timeline.
2026-11-10 17:45:56 +01:00
Clément Grégoire 6dbc87ffc4 Always decay the message focus request.
The request was only decayed when the row of the message to focus was drawn. If the message was filtered out of the messages list, the request would never expire and the whole list would be drawn without clipping on every frame.
2026-11-10 17:45:56 +01:00
Bartosz Taudul 5402534f4a Merge pull request #1514 from Lectem/tracy-python-program-name-overflow
Client: don't overflow the broadcast program name
2026-11-09 18:29:50 +01:00
Clément GrégoireandClaude Opus 5.5 6fddfdbe22 Client: don't overflow the broadcast program name
GetBroadcastMessage is given strlen(m_programName), which can exceed
WelcomeMessageProgramNameSize when the program name is set with a long
string (e.g. by the Python bindings). Clamp the length inside
GetBroadcastMessage, which owns the fixed-size buffer.

Also null-terminate names stored in the Python NameBuffer and reject
names that leave no room for the terminator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:19:40 +01:00
Bartosz Taudul 2f418252bc Always remove the return type in name shortening. 2026-11-08 15:38:29 +01:00
Bartosz Taudul ba019c3df2 Fix operator names broken by name shortening.
The '<' of operator< and friends is part of the name, not the start of a
template argument list. ns::Foo::operator<(ns::Foo const&) shortens to
ns::Foo::operator<(), not ns::Foo::operator<>. The '::' inside a conversion
operator's type-id is part of the name as well.
ns::Widget::operator ns::Handle() shortens to operator ns::Handle(), not
Handle().
2026-11-08 15:38:28 +01:00
Bartosz Taudul f264919609 Merge pull request #1512 from Lectem/emscripten-keyboard-layout
Use the keyboard layout for shortcut letters in the Emscripten build
2026-11-07 20:44:21 +01:00
Clément Grégoire c10baf286c Use the keyboard layout for shortcut letters in the Emscripten build.
The shortcut letters were mapped from the physical key, so Ctrl+A needed the key where QWERTY has A, which is Q on AZERTY. Letters now come from `key`, so Ctrl+A is where the layout has A.

Other keys, and letters outside of the Latin alphabet, still use the physical key.

The character of a key can change before it is released (releasing AltGr first), so the key sent on the press is remembered for each physical key and released on key up. This works in every browser.
2026-11-07 15:50:05 +01:00
Bartosz Taudul fe72c165f7 Merge pull request #1510 from Lectem/emscripten-clipboard
Fix pasting in the Emscripten build.
2026-11-06 21:49:55 +01:00
Clément Grégoire e9613e1f83 Make Ctrl+Shift+V paste in the Emscripten build.
Dear ImGui only pastes on exactly Ctrl+V, so the chord was ignored even when the browser sent the paste event, which Chrome does. Don't treat Shift or Alt with Ctrl+V as the shortcut, and release the other modifiers when faking Ctrl+V. Firefox sends no paste event for this chord, so nothing changes there.
2026-11-06 21:07:41 +01:00
Clément Grégoire d03b00915f Fix pasting with a lost key up in the Emscripten build.
The paste shortcut flag was only cleared by the key up. Browsers don't send it after a window switch, and macOS drops it while Cmd is held, so the next paste from the browser menu did nothing. Clear the flag when the paste event arrives instead.
2026-11-06 20:04:27 +01:00
Clément Grégoire c137ee9830 Fix pasting in the Emscripten build.
The paste shortcut did nothing. Its key event was default-prevented, so the browser sent no paste event. The text of that event was also typed in as characters, which text inputs ignore while Ctrl is held.

Let the browser handle the shortcut. Cache the text from the paste event, and let Dear ImGui paste it like on other platforms. Pastes without the shortcut (e.g. from the menu of the browser) are turned into one, so the text is filtered the same. A newline in a single line input becomes a space instead of being dropped.
2026-11-06 09:01:52 +01:00
Bartosz Taudul f2a4f2529e Release 0.15.0. v0.15.0 2026-11-05 21:02:56 +01:00
Bartosz Taudul bd25c94ba0 Update manual. 2026-11-05 20:08:27 +01:00
Bartosz Taudul 1b490b9f09 Update NEWS. 2026-11-05 19:51:59 +01:00
Bartosz Taudul 22ddc1cdb2 Include getopt.h after the server headers in csvexport. 2026-11-05 17:05:22 +01:00
Bartosz Taudul e82a69b7c3 Add section frame statistics to csvexport. 2026-11-05 16:04:15 +01:00
Bartosz Taudul f48247126e Add frame statistics export to csvexport. 2026-11-05 16:04:15 +01:00
Bartosz Taudul 14a8c8b328 Cleanup cvsexport. 2026-11-05 16:04:13 +01:00
Bartosz Taudul 3dced9c241 Bump LZ4 to 1.11.0. 2026-11-05 00:58:54 +01:00
Bartosz Taudul 7c6f7b637c Rearrange achievements. 2026-11-04 20:33:54 +01:00
Bartosz Taudul be917984f5 Advance the system time deadline on failed samples. 2026-11-04 19:06:16 +01:00
Bartosz Taudul 094be55320 Handle system time sampling failures safely. 2026-11-04 19:06:15 +01:00
Bartosz Taudul 453ecc3b74 Add GpuContextNone enumerator. 2026-11-04 19:06:13 +01:00
Bartosz Taudul 02a825b393 Add a time range achievement. 2026-11-04 01:29:15 +01:00
Bartosz Taudul f86bdf7bb1 Add a wait stacks achievement. 2026-11-04 01:29:15 +01:00
Bartosz Taudul 458faecb34 Add a timeline navigation achievement. 2026-11-04 01:29:13 +01:00
Bartosz Taudul 0766a5ce7e Fix the sanitizer detection on older preprocessors. 2026-11-02 20:40:03 +01:00
Bartosz Taudul e2600f0314 Use raw write syscall for safe copy under AddressSanitizer.
The sanitizer's write() interceptor aborts the process when the buffer
touches poisoned bytes, even if the pages are mapped. Global redzones
are such bytes, and clang counts them in the global's symbol size, so
a symbol code query can request a range spanning the redzone and kill
the profiled app. syscall() is not intercepted; the kernel does the
copy and fails unmapped pages with EFAULT, like without the sanitizer.
2026-11-02 20:09:51 +01:00
Bartosz Taudul 3430cd8db8 Add a Tracy Assist achievement. 2026-11-02 01:05:43 +01:00
Bartosz Taudul 2e9dfb8fdf Add visibility predicates to achievements. 2026-11-02 00:59:04 +01:00
Bartosz Taudul 41ea9b8b31 Add a hardware counters achievement. 2026-11-02 00:59:04 +01:00
Bartosz Taudul 0342049936 Add a crash survival achievement. 2026-11-02 00:59:04 +01:00
Bartosz Taudul a6cb6ec3c2 Add an annotations achievement. 2026-11-02 00:59:04 +01:00
Bartosz Taudul d3fcf981c9 Add a frame statistics achievement. 2026-11-02 00:59:04 +01:00
Bartosz Taudul 000ae58203 Add a CPU data achievement. 2026-11-02 00:59:03 +01:00
Bartosz Taudul ecf9d08643 Add a context switches achievement. 2026-11-02 00:59:01 +01:00
Bartosz Taudul 18240d9212 Use a PNG image for the AppImage .DirIcon.
appimagetool now treats an SVG .DirIcon as a fatal packaging error.
2026-10-31 18:34:39 +01:00