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

3830 Commits

Author SHA1 Message Date
Bartosz Taudul ad3f37aec6 No need for two same check. 2020-01-24 02:16:29 +01:00
Bartosz Taudul cf07e2564d Update manual. 2020-01-23 22:09:18 +01:00
Bartosz Taudul 443771ecff Only display zone "statistics" button if data is available. 2020-01-23 19:49:23 +01:00
Bartosz Taudul f4fdd0221b Update NEWS. 2020-01-23 19:11:21 +01:00
Bartosz Taudul 1c1e5d5ee7 Don't check for invalid zones in source location data. 2020-01-23 19:10:56 +01:00
Bartosz Taudul e31b529b4a Count zones at zone end, not zone begin.
This makes sure only finished, non-zero-timespan zones are counted in
the statistics.
2020-01-23 19:10:56 +01:00
Bartosz Taudul 23601904cd Replace one more end validity check. 2020-01-23 18:50:13 +01:00
Bartosz Taudul 54a767bf81 Use just sign bit to check end value validity. 2020-01-22 22:25:04 +01:00
Bartosz Taudul 9420234a98 Force inline flat_hash_map wrappers. 2020-01-22 22:06:35 +01:00
Bartosz Taudul 3010c7ce63 Don't use proxy for a pointer. 2020-01-22 01:54:25 +01:00
Bartosz Taudul ea424a4c8d Use custom vector. 2020-01-20 23:58:36 +01:00
Bartosz Taudul e5ae1ea2cc Only perform search, if necessary. 2020-01-20 23:53:04 +01:00
Bartosz Taudul 6de489a34f Use flat_hash_map for groups. 2020-01-20 23:43:10 +01:00
Bartosz Taudul 6358b4588d Preserve groups order. 2020-01-20 23:40:07 +01:00
Bartosz Taudul 6b3165d3cc Perform map lookup in one place. 2020-01-20 23:34:48 +01:00
Bartosz Taudul 38e7d12b0b Use parallel sort in find zone menu. 2020-01-20 23:21:43 +01:00
Bartosz Taudul 7d78923967 Move parallel sort header mumbo jumbo to a separate file. 2020-01-20 23:21:43 +01:00
Bartosz Taudul 6f31eb2a9d Disable MSVC idiocy. 2020-01-20 22:49:03 +01:00
Bartosz Taudul 46dc85c10c Fix parent identifier extension to 64 bits.
Source location identifiers are signed 16 bits. Extending this value to
64 bits without first casting it to unsigned 16 bit caused bit extension
of the sign bit, making the value clash with "unselected" group
identifier.
2020-01-19 15:25:45 +01:00
Bartosz Taudul 55d03cb03e Hide async queue setup/commit behind macros. 2020-01-19 15:06:11 +01:00
Bartosz Taudul 77a6039e54 Force inline small functions in LZ4. 2020-01-17 01:08:06 +01:00
Bartosz Taudul cb501298b5 Make QueueDataSize constexpr. 2020-01-14 19:42:11 +01:00
Bartosz Taudul 25082b2bec Don't report CPU topology if delayed init is active.
Reporting topology requires producer to be available, which creates a
deadlock during delayed init data structures construction.

Calling GetProducer() results in a call to GetProfilerThreadData(),
which in turn calls GetProfilerData() to construct its thread local
variable. However, at this point we already are calling
GetProfilerData() (to construct the profiler itself). This would result
in an incorrect double construction of data, but the code already
prevents this by allowing init code to be entered only once. Hence the
deadlock.

Currently this is a non-issue, as no platform which can report CPU
topology needs to use delayed init.
2020-01-14 19:41:34 +01:00
Bartosz Taudul d272e19bfa Update NEWS. 2020-01-14 02:07:04 +01:00
Bartosz Taudul 91f86ce5b5 Tid to pid mapping may be already known. 2020-01-14 02:06:36 +01:00
Bartosz Taudul 4f8eb53e8b Capture exact tid to pid mapping on windows. 2020-01-14 02:06:22 +01:00
Bartosz Taudul 3ecad1095a Update NEWS. 2020-01-10 02:13:44 +01:00
Bartosz Taudul 727ac634a9 Redraw window contents during resize. 2020-01-10 02:13:44 +01:00
Bartosz Taudul 5f48b08215 Move profiler render to a separate function. 2020-01-10 02:13:44 +01:00
Bartosz Taudul 2f718b57c1 Add TODO. 2020-01-08 18:16:17 +01:00
Bartosz Taudul fa3811ef61 Bump date. 2020-01-02 00:33:01 +01:00
Bartosz Taudul 3a460d3183 Use _mm_pause() instead of std::this_thread::yield() if possible. 2019-12-31 14:59:54 +01:00
Bartosz Taudul 8b56386ccd Keep atomics on separate cache lines. 2019-12-31 14:46:01 +01:00
Bartosz Taudul ede90710e5 Release 0.6.2. v0.6.2 2019-12-30 13:23:10 +01:00
Bartosz Taudul f3d2ca29dd Update manual. 2019-12-30 12:57:44 +01:00
Bartosz Taudul ed5f534bbb Use proper data type size. 2019-12-28 18:28:37 +01:00
Bartosz Taudul 1d97efa059 Update NEWS. 2019-12-28 18:17:34 +01:00
Bartosz Taudul 24727175d7 Implement copying user data location to clipboard. 2019-12-28 18:17:06 +01:00
Bartosz Taudul 9e76ddb9fd User data directory location getter. 2019-12-28 18:16:45 +01:00
Bartosz Taudul 36942a5ddb Resetting groups should also unselect group. 2019-12-28 18:03:30 +01:00
Bartosz Taudul 0ff6d6364b Don't operate on empty vector. 2019-12-28 18:03:13 +01:00
Bartosz Taudul bb121b29e3 Update NEWS. 2019-12-28 17:51:50 +01:00
Bartosz Taudul 17afcbce4f Highlight zone from zone list on histogram. 2019-12-28 17:50:54 +01:00
Bartosz Taudul 086c9ce4c8 Update manual. 2019-12-28 17:43:20 +01:00
Bartosz Taudul cdede08ad6 Update NEWS. 2019-12-28 17:43:13 +01:00
Bartosz Taudul 46ed2fb802 Enhance time distribution zone search.
When the find zone menu is opened from the zone time distribution list,
time range limit will be enabled, preventing display of zones outside of
the selected zone range. This allows much easier finding of child zones
within the selected zone scope.

Limiting zone search to a specified thread(s) might also be helpful
here, but it can be worked around by looking only at zones in a single
thread group.
2019-12-28 17:28:39 +01:00
Bartosz Taudul e083b2773a Add icon to zone time range display. 2019-12-28 17:24:11 +01:00
Bartosz Taudul 870c9c734f Draw range limit highlight. 2019-12-28 17:23:09 +01:00
Bartosz Taudul 46f3390365 Allow limiting zone time range in find zone menu. 2019-12-28 17:18:07 +01:00
Bartosz Taudul 33e7d175d4 Add zone time range limit controls. 2019-12-28 15:57:07 +01:00