Commit Graph

9787 Commits

Author SHA1 Message Date
Bartosz Taudul
eca9609f52 Shut up about anonymous namespaces. 2026-03-31 01:18:50 +02:00
Bartosz Taudul
739123d005 Add a way to override profiled program name and PID. 2026-03-31 01:18:50 +02:00
Bartosz Taudul
53439ea5e2 Add external image cache machinery. 2026-03-31 01:18:50 +02:00
Bartosz Taudul
c53d94f538 Set color diagnostics in test CMakeLists.txt. 2026-03-30 21:47:45 +02:00
Bartosz Taudul
b3aaac43ca Move ELF headers definition to a separate header file. 2026-03-30 20:56:45 +02:00
Bartosz Taudul
7974a74580 Add external_file support to libbacktrace
- Add external_file field to backtrace_state struct
- Add backtrace_create_state_for_file() function that marks
  state for external ELF files not loaded in current process
- In backtrace_initialize, use external_file flag to:
  - Pass exe=0 to elf_add for ET_DYN files (allows DWARF loading)
  - Skip dl_iterate_phdr enumeration (avoids noise from current process)

This enables symbol resolution from arbitrary ELF files on disk,
with caller responsible for address translation.
2026-03-30 19:52:12 +02:00
Bartosz Taudul
2f1fc19f88 libbacktrace: use correct names in #undef of ELF macros (b9e4006) 2026-03-30 19:40:30 +02:00
Bartosz Taudul
52607f70fe libbacktrace: add casts to avoid undefined shifts (78af4ff, 0034e33) 2026-03-30 19:38:45 +02:00
Bartosz Taudul
d79b7d4176 libbacktrace: don't get confused by overlapping address ranges (3d0be55) 2026-03-30 19:33:37 +02:00
Bartosz Taudul
6010770879 Update uops.info data. 2026-03-30 02:23:33 +02:00
Bartosz Taudul
c8a93adb01 Add merge utility to CI builds for linux, macos, and windows 2026-03-28 22:43:07 +01:00
Bartosz Taudul
1dee03e4f2 Rename workflow job names for uniqueness across workflows 2026-03-28 22:30:29 +01:00
Bartosz Taudul
0312a77390 Add GIT_REV to tools config in CI setup. 2026-03-28 21:59:10 +01:00
Bartosz Taudul
fddbb5d990 Print tracy version in all tools. 2026-03-28 21:38:47 +01:00
Bartosz Taudul
8bd49317ca Set include list for GitRef. 2026-03-28 21:38:27 +01:00
Bartosz Taudul
1b34592d80 Move git ref CMake extractor to a separate file. 2026-03-28 19:23:15 +01:00
Bartosz Taudul
6f91104542 Include git ref in profiler's --help output. 2026-03-28 12:44:12 +01:00
Bartosz Taudul
e300d56f68 Force resort of possibly broken plots. 2026-03-27 20:16:27 +01:00
Bartosz Taudul
8351daea73 Add ability to mark the SortedVector unsorted. 2026-03-27 20:16:27 +01:00
Bartosz Taudul
b5a322d122 Fix SortedVector regression.
Sort unsorted part of the vector, not the already sorted part.
2026-03-27 17:49:49 +01:00
Bartosz Taudul
77a53e2b5b No need to do strcmp here. 2026-03-24 23:47:40 +01:00
Bartosz Taudul
ef41e12ba8 Fix missing outer loop exit. 2026-03-24 22:51:02 +01:00
Bartosz Taudul
e1143fd985 Try to remove excess frames from reconstructed callstack. 2026-03-24 01:14:38 +01:00
Bartosz Taudul
fb9912db5c Merge pull request #1315 from slomp/slomp/d3d12-opsie
D3D12 opsie
2026-03-23 23:45:51 +01:00
Marcos Slomp
a59ff2dcbb Update TracyD3D12.hpp
opsie
2026-03-23 15:43:36 -07:00
Bartosz Taudul
e792752104 Ignore completely non-local samples. 2026-03-22 17:04:31 +01:00
Bartosz Taudul
3c283187c3 Extract functionality for counting local frames in a callstack. 2026-03-22 17:00:15 +01:00
Bartosz Taudul
1967f2c79b Do proper frame matching instead of relying just on callstack size. 2026-03-22 16:51:55 +01:00
Bartosz Taudul
f5df9f9c24 Remove dead code. 2026-03-21 23:36:15 +01:00
Bartosz Taudul
5040412813 Simplify search for max-local call stack root. 2026-03-21 22:35:25 +01:00
Bartosz Taudul
9326227bcd Display reconstructed callstack in zone info window. 2026-03-21 01:48:00 +01:00
Bartosz Taudul
b52af15504 Change DrawCallstackTable interface to accept data + size pair. 2026-03-21 01:47:26 +01:00
Bartosz Taudul
e1381d1beb Draw reconstructed callstack trace in zone tooltips. 2026-03-21 01:27:12 +01:00
Bartosz Taudul
c4f42b1bc9 Basic heuristics for reconstruction of zone callstack from sample data. 2026-03-21 01:26:40 +01:00
Bartosz Taudul
d0222ef7d9 Worker::GetZoneEnd() can be const. 2026-03-19 19:53:58 +01:00
Bartosz Taudul
87781fd75c Merge pull request #1312 from YaLTeR/patch-1
Add missing cstdint include
2026-03-19 18:18:50 +01:00
Ivan Molodetskikh
16af373a7e Add missing cstdint include
Fixes build on new gcc on Fedora 44.
2026-03-19 17:57:57 +03:00
Amy
e9314add15 clang visibility for TRACY_API (#1310) 2026-03-18 23:59:33 +01:00
Bartosz Taudul
145efd63c9 Change GetCallstackJson interface to data ptr + size. 2026-03-18 00:52:34 +01:00
Bartosz Taudul
0905e203e3 Add DrawCallstackCalls( data, size, ... ) interface. 2026-03-18 00:42:21 +01:00
Bartosz Taudul
4fbbfb410d Merge pull request #1307 from slomp/slomp/d3d12-callstack-patch
Fix callstack and transient zones in D3D12
2026-03-17 21:20:08 +01:00
Marcos Slomp
36aaa19ae9 instrumenting relevant events of D3D12 2026-03-17 13:14:15 -07:00
Marcos Slomp
8b1e413db5 fix handling of D3D12 callstacks and/or transient zones 2026-03-17 13:13:24 -07:00
Bartosz Taudul
54f778c204 Display ellipsis in single-line callstack printout, when frames remain. 2026-03-17 02:29:12 +01:00
Bartosz Taudul
3876d33a15 Display callstacks in zone tooltips. 2026-03-17 01:32:24 +01:00
Bartosz Taudul
94e5ff2cfb Add inline callstack display to zone info window. 2026-03-17 01:00:21 +01:00
Bartosz Taudul
79d165190a Improve parent zones display. 2026-03-17 00:07:47 +01:00
Bartosz Taudul
83b7d3a267 Simplify "zone trace" into "parent zones". 2026-03-16 01:44:57 +01:00
Bartosz Taudul
a51efcc974 Proper CMake setup for TRACY_CALLSTACK. 2026-03-15 22:17:26 +01:00
Bartosz Taudul
1476afb992 Do not force enable CMake configure on open in VS Code. 2026-03-15 22:17:18 +01:00