Commit Graph

8041 Commits

Author SHA1 Message Date
Bartosz Taudul
77f8ec0b2f
Implement hiding external stack frames. 2024-02-27 02:04:30 +01:00
Bartosz Taudul
a1aa87df87
Add ellipsis to standard font. 2024-02-27 02:04:29 +01:00
Bartosz Taudul
4226f7888e
Manually allocate and free s_di_known.
Otherwise destructor will be called when main() returns while symbol
retrieval may still want to actively use the vector.
2024-02-26 23:03:37 +01:00
Bartosz Taudul
133d52a6dd
Make external name retrieval high priority. 2024-02-25 15:13:29 +01:00
Bartosz Taudul
408ef4c06e
Update NEWS. 2024-02-25 13:57:51 +01:00
Bartosz Taudul
c514a5caca
Implement sorting instrumentation statistics by location. 2024-02-25 13:52:37 +01:00
Bartosz Taudul
b6562f1784
Merge pull request #715 from YaLTeR/fix-wayland-scale
Fix and update Wayland scale handling
2024-02-24 11:45:35 +01:00
Razakhel
cef21ef035 Added preprocessor checks for Clang on Windows
- MSVC-specific code is used in some places and compiled only if _MSC_VER is set; however, Clang under Windows also defines this, which reports errors on this non-standard code if the -pedantic-errors compiler flag is set
2024-02-21 22:54:44 +01:00
Bartosz Taudul
a2dd51ae4c
Merge pull request #727 from idbrii/fix-warn-conversion
Fix warning: Cast thread id to uint32_t
2024-02-17 02:22:04 +01:00
David Briscoe
7d8432bbec Cast thread id to uint32_t
Fix MSVC Warning C4244: 'argument': conversion from 'uint64_t' to
'uint32_t', possible loss of data

We only store 32 bit thread ids in ThreadNameData.

Trying to follow existing style instead of static_cast.
2024-02-16 16:29:36 -08:00
Bartosz Taudul
5ce238e9b4
Merge pull request #724 from idbrii/fix-mem-callstacktree-active
Memory: correctly filter active allocations in call stack tree
2024-02-15 20:12:22 +01:00
David Briscoe
255e3d2829 Correctly filter allocations in memory call tree
Fix #723: Memory: active allocations are incorrectly displayed in call stack tree

The range we were looking for was wrong (should be Active instead of
Inactive), but I also reworked to make the comparison clearer.

Test

Using the repro app from the bug:
1. Click "Free + Allocate" once
1. Call stack tree shows 2 entries under "Active allocations", 1 active
   allocation, 0 inactive allocations in the call stack tree.
1. Click "Free + Allocate" several times
1. Call stack tree shows 1 KB of active allocations and many KB of
   inactive.
2024-02-15 10:38:48 -08:00
Bartosz Taudul
3c4b06dff5
Merge pull request #722 from waywardmonkeys/ci-update-actions
ci: Update to current versions of actions.
2024-02-12 12:31:05 +01:00
Bruce Mitchener
793d1d08c8 ci: Update to current versions of actions.
This should remove the warnings within the GitHub Actions UI about
using the deprecated Node 12 and 16 versions.
2024-02-12 16:50:36 +07:00
Bartosz Taudul
3c313e9e73
Update manual. 2024-02-11 18:07:18 +01:00
Bartosz Taudul
7f04c66ef1
Bump meson version requirement to 1.1. 2024-02-11 17:32:42 +01:00
Bartosz Taudul
8731f3bc73
Drop shared_libs meson option. 2024-02-11 17:26:48 +01:00
Bartosz Taudul
783bc7c939
Drop tracy_ prefix from meson options. 2024-02-11 17:20:43 +01:00
Bartosz Taudul
0762d4bbd1
Rename meson_options.txt -> meson.options. 2024-02-11 17:16:58 +01:00
Bartosz Taudul
5f661bf767
Update NEWS. 2024-02-11 16:33:58 +01:00
Bartosz Taudul
bf76f57716
Add formatted variants for ZoneText and ZoneName. 2024-02-11 16:24:37 +01:00
Bartosz Taudul
c03884d20c
Add TracyNoop macro. 2024-02-09 14:51:25 +01:00
Bartosz Taudul
5e4eae5c2e
Avoid creation of a temporary object. 2024-02-09 01:27:33 +01:00
Bartosz Taudul
5037742ab0
Fix file access race condition. 2024-02-07 17:14:31 +01:00
Bartosz Taudul
312713b83c
Free allocated memory in case of read failure. 2024-02-07 17:14:04 +01:00
Bartosz Taudul
d46ffb4e9f
Add verbose and debuginfod to meson options. 2024-02-05 02:12:31 +01:00
Bartosz Taudul
5461427493
Print error message when opening a trace from command line fails. 2024-02-03 16:25:01 +01:00
Bartosz Taudul
1354205db8
Merge pull request #716 from gedalia/gpasternak/crash_handler_fix
This change makes the crash handler only install when tracy is connected.
2024-01-24 21:12:17 +01:00
Gedalia Pasternak
4ebbd15894 add win32 fix. 2024-01-24 11:27:08 -05:00
Gedalia Pasternak
9515a824fd This change makes the crash handler only install when tracy is connected.
This avoids the issue that an end user has their own crash handler which
gets ignored when tracy is on even if there is nothing to capture the crash.
2024-01-24 09:25:57 -05:00
Ivan Molodetskikh
fcdc96748e wayland: Use preferred_buffer_scale when available
On wl_compositor >= 6 we bind v6 and use preferred_buffer_scale.
Otherwise we bind 4 and do as before.

No other changes are needed for the version bump as Tracy doesn't use
wl_surface_attach() with nonzero coordinates.
2024-01-24 12:43:42 +04:00
Ivan Molodetskikh
16434f116c Add a way for Backend to signal scale changes
On Wayland the scale now changes to the correct value as the Tracy
window is moved across monitors.

If the scale is overridden from environment, it does not change, just
like before.
2024-01-24 12:34:23 +04:00
Ivan Molodetskikh
bf3bd28bfa wayland: Keep track of entered outputs for scale
Wayland kindly informs us which outputs the surface is on, to be used
for scale computation (at least on wl_compositor < 6). On mixed DPI
setups this fixes Tracy potentially using a higher scale than the output
it's displayed on.

However, as is, this commit results in Tracy always using scale 1,
because at the point of backend creation (which is when the scale is
queried) the surface is not yet displayed on any outputs, so a scale of
1 is assumed.
2024-01-24 12:19:52 +04:00
Bartosz Taudul
c4863d4324
Bump ImGui to 1.90.1. 2024-01-11 13:21:19 +01:00
Bartosz Taudul
a9288cd759
Merge pull request #710 from c-cube/bound-checks-import-fuchsia
import fuchsia: check bounds to handle truncated traces
2024-01-08 22:16:25 +01:00
Simon Cruanes
dff6ea5821
import fuchsia: check bounds to handle truncated traces
the last record might be partially written so it's important to
check bounds and dump the last record if that happens.
2024-01-08 16:02:17 -05:00
Bartosz Taudul
747a3cdea2
Merge pull request #708 from phsilva/fix-typo
Fix typo on Chapter 1 opening sentence.
2024-01-02 23:09:32 +01:00
Paulo Henrique Silva
ef55ad6c8d Fix typo
Typo introduced on revision a13b04669.
2024-01-02 18:19:21 -03:00
Bartosz Taudul
0fd1840523
Update NEWS. 2024-01-02 20:09:25 +01:00
Bartosz Taudul
fc8fc80900
Drop support for pre-0.9.0 traces. 2024-01-02 20:08:41 +01:00
Bartosz Taudul
90c7a43e8a
Less verbose CPU data table header labels. 2024-01-02 20:08:18 +01:00
Bartosz Taudul
2ac0173c91
Update manual. 2024-01-02 17:18:31 +01:00
Bartosz Taudul
f74ade31f4
Update NEWS. 2024-01-02 17:04:02 +01:00
Bartosz Taudul
680174685b
Pass function names to ViewSource() calls. 2024-01-02 17:04:01 +01:00
Bartosz Taudul
4757d101fc
Optional ctrl key mod check when running view source with function name. 2024-01-02 17:04:01 +01:00
Bartosz Taudul
9a5fb0bb51
Implement search for symbol matching function name when opening source view. 2024-01-02 16:15:12 +01:00
Bartosz Taudul
cf412bfb2e
Change microarchitecture fallback to ZEN4. 2024-01-02 14:56:00 +01:00
Bartosz Taudul
38dc0d83d7
Bump copyright year. 2024-01-01 13:54:12 +01:00
Bartosz Taudul
426c8cef39
Merge pull request #706 from c-cube/fix-import-fuchsia-string-ref
fix import-fuchsia: handle string references properly
2024-01-01 13:53:40 +01:00
Simon Cruanes
bafc86326a
check for the presence of the initialization record 2023-12-31 22:52:13 -05:00