Commit Graph
3821 Commits
Author SHA1 Message Date
Bartosz Taudul a70ebef673 Make sure pointers are correct. 2020-01-03 17:19:50 +01:00
Bartosz Taudul 422229bf1a Use new dequeue interface. 2020-01-03 16:54:35 +01:00
Bartosz Taudul c7944fda98 Blocks tail is already known. 2020-01-03 14:11:50 +01:00
Bartosz Taudul 235ac90b85 Set proper tail of blocks. 2020-01-03 01:24:11 +01:00
Bartosz Taudul ab91480f6d Store tail atomic variable in register.
Also: use macros for lock free queue prepare and commit.
2020-01-03 01:11:38 +01:00
Bartosz Taudul 9fed0ef938 Flush data after queue delay is calibrated. 2020-01-03 00:38:12 +01:00
Bartosz Taudul 7d68b16341 Implement flushing data from producer. 2020-01-03 00:37:54 +01:00
Bartosz Taudul 89254ab353 Allow just freeing blocks. 2020-01-03 00:37:40 +01:00
Bartosz Taudul 8588b8b4a6 Don't lock memory on fast path. 2020-01-03 00:25:01 +01:00
Bartosz Taudul a35e1e7a8c Keep lock free queue thread local data in one struct. 2020-01-02 23:55:56 +01:00
Bartosz Taudul be5c94ee09 Prevent inlining next block preparation. 2020-01-02 23:52:03 +01:00
Bartosz Taudul 9b0044838e Enqueue can be a static operation. 2020-01-02 23:42:38 +01:00
Bartosz Taudul 4af26880dd 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-02 22:45:21 +01:00
Bartosz Taudul e7cb1fe52b Remove concurrentqueue. 2020-01-02 22:45:21 +01:00
Bartosz Taudul 4355c686af Update memory requirements. 2020-01-02 22:45:21 +01:00
Bartosz Taudul 25a260dcd1 Missing header. 2020-01-02 22:45:21 +01:00
Bartosz Taudul a298c4333e Use new lock-free queue.
Only enqueue is implemented, no way to dequeue items yet. Expect lots of
bugs and reduced performance.
2020-01-02 22:45:21 +01:00
Bartosz Taudul 6054a301c2 Direct enqueue of QueueItems. 2020-01-02 22:23:58 +01:00
Bartosz Taudul 40186956f6 Add inlines required to not duplicate symbols. 2020-01-02 22:23:58 +01:00
Bartosz Taudul 92fded825e Lock-free queue enqueue. 2020-01-02 22:23:58 +01:00
Bartosz Taudul 6b64fbc3be Producers and data blocks plumbing for lock-free queue. 2020-01-02 22:23:58 +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
Bartosz Taudul 10f4dbef72 Update NEWS. 2019-12-28 15:49:17 +01:00
Bartosz Taudul 6c6b78bcbd Fix find zone selection time. 2019-12-28 15:48:45 +01:00
Alexander Bock d1917e1856 Merged in abock/tracy/Alexander-Bock/removed-unused-parameter-for-the-case-wh-1577543619722 (pull request #43)
Removed unused parameter for the case when the TracyOpenGL.hpp is included by TRACY_ENABLE is not defined
2019-12-28 14:36:03 +00:00
Alexander Bock ce8f10f2b1 Removed unused parameter for the case when the TracyOpenGL.hpp is included by TRACY_ENABLE is not defined 2019-12-28 14:33:47 +00:00
Bartosz Taudul 2b46e63c49 Update NEWS. 2019-12-25 15:08:30 +01:00
Bartosz Taudul 115c66324d Add inclusive time display to time distribution. 2019-12-25 15:07:52 +01:00
Bartosz Taudul 1032eb95d2 Set sane default window size for CPU data. 2019-12-19 17:45:55 +01:00
Bartosz Taudul ee83c89fae Notify about cleanup stage during import. 2019-12-19 17:31:13 +01:00
Bartosz Taudul f7f0ec0cec Fix memcpy from nullptr. 2019-12-19 17:30:37 +01:00