1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
Commit Graph

7910 Commits

Author SHA1 Message Date
Matej Mulej db6128afe2 Grammar. 2024-03-12 20:59:52 +01:00
Matej Mulej 218d90fb3f Add documentation for the C lock API. 2024-03-12 20:56:56 +01:00
Matej Mulej 14438be242 Cleanup and define nice C macros for lock API. 2024-03-12 20:56:00 +01:00
Matej Mulej 2e7081e52a Expose lock API to TracyC.h 2024-03-11 21:06:11 +01:00
Matej Mulej 92511c9742 Add non-C++ lock API 2024-03-11 21:01:25 +01:00
Bartosz Taudul 1ddecd4b99 Merge pull request #745 from apache-hb/master
Fix build and configure warnings when compiling with clang-cl
2024-03-11 20:18:47 +01:00
Elliot a26f076a0e fix build warnings when compiling with clang-cl 2024-03-11 14:44:44 -04:00
Bartosz Taudul 082c13ac8e Put m_qpcToNs in a _WIN32 ifdef. 2024-03-09 23:25:49 +01:00
Bartosz Taudul c0789c20cb Add CppCon 2023 video. 2024-03-07 17:49:39 +01:00
Bartosz Taudul 7d813ec2c1 Merge pull request #733 from Razakhel/fix-clang-pedantic-windows
Added preprocessor checks for Clang on Windows
2024-03-05 18:07:03 +01:00
Bartosz Taudul 9ccc754143 Fix macos, 2024-03-02 00:30:50 +01:00
Bartosz Taudul 746b6c6246 Don't ignore user scale when DPI scale changes. 2024-03-02 00:21:08 +01:00
Bartosz Taudul b329eb1fcc Change way of updating fonts in View.
This makes the whole process more easy to follow. It also fixes a crash
bug that was occuring when Wayland output scale changed.
2024-03-01 23:43:53 +01:00
Bartosz Taudul bdfcc5b814 Add missing ImGui renderer shutdown to the Wayland backend. 2024-03-01 22:11:30 +01:00
Bartosz Taudul ec549c4831 Update ImGui to 1.90.4 + docking. 2024-03-01 22:09:08 +01:00
Bartosz Taudul ea0471f9d0 Fix wl_surface v6 listener. 2024-02-28 13:30:59 +01:00
Grégoire Roussel 0295ef2b3c [doc] Minor documentation updates (#737)
Co-authored-by: Grégoire Roussel <gregoire.roussel@wandercraft.eu>
2024-02-28 02:14:35 +01:00
Bartosz Taudul 0ca5e25c13 Update NEWS. 2024-02-27 22:14:04 +01:00
Bartosz Taudul 03c98a8d4c Show external frames by default. 2024-02-27 22:12:27 +01:00
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