Commit Graph

618 Commits

Author SHA1 Message Date
Bartosz Taudul
a8c219dd88 Display number of collapsed zones. 2017-09-29 19:13:53 +02:00
Bartosz Taudul
23c71116e3 Draw timer resolution uncertainty. 2017-09-29 18:55:21 +02:00
Bartosz Taudul
7a992517e1 Print queue delay and timer resolution. 2017-09-29 18:46:08 +02:00
Bartosz Taudul
3f9143d491 Double the TimeToString buffer pool. 2017-09-29 18:44:42 +02:00
Bartosz Taudul
28912ca2e6 Display delay caused by zone name and zone text events. 2017-09-29 18:40:55 +02:00
Bartosz Taudul
efda50acb1 Send timer resolution to server. 2017-09-29 18:32:07 +02:00
Bartosz Taudul
6a2cb2c14e Calculate timer resolution. 2017-09-29 18:29:39 +02:00
Bartosz Taudul
445d2831ed Explicit conversion. 2017-09-29 18:29:32 +02:00
Bartosz Taudul
183f5f9d28 Fix itemization. 2017-09-29 00:24:45 +02:00
Bartosz Taudul
037b8ea0a9 Add README. 2017-09-29 00:21:50 +02:00
Bartosz Taudul
e9e848ecbd Add AUTHORS, LICENSE. 2017-09-28 21:33:23 +02:00
Bartosz Taudul
b9aa10913a Rename internal enum to avoid #define conflicts. 2017-09-28 21:20:33 +02:00
Bartosz Taudul
6ae62e6e5a Missing include. 2017-09-28 21:10:02 +02:00
Bartosz Taudul
599a9be37c Try to conserve as much memory as possible. 2017-09-28 21:08:36 +02:00
Bartosz Taudul
8ecb5de062 Store pointers to ThreadData.
This prevents moves of Vector<>.
2017-09-28 21:05:51 +02:00
Bartosz Taudul
556e085f2c memcpy source can't be null. 2017-09-28 20:47:57 +02:00
Bartosz Taudul
608cb912a1 Enable custom vector. 2017-09-28 20:20:10 +02:00
Bartosz Taudul
2161c23eee Display custom zone names. 2017-09-28 19:31:27 +02:00
Bartosz Taudul
8c1c395cec Allow sending custom zone names. 2017-09-28 19:28:24 +02:00
Bartosz Taudul
362a37a705 Add no-payload queue items description. 2017-09-28 19:28:05 +02:00
Bartosz Taudul
a572ded1cc Add missing define in disabled section. 2017-09-28 19:20:19 +02:00
Bartosz Taudul
91e6210e34 Store zone text data in a separate structure. 2017-09-28 19:06:39 +02:00
Bartosz Taudul
7f865f3517 Use common function to send server query. 2017-09-27 02:44:16 +02:00
Bartosz Taudul
e683a59360 Use color to display custom zone text. 2017-09-27 02:40:24 +02:00
Bartosz Taudul
c2926f2a0d Store custom strings as const char*, not std::string.
It would seem that std::string is not moved, but copied, thus
invalidating the pointer.
2017-09-27 02:36:14 +02:00
Bartosz Taudul
537542f682 Add character utilities. 2017-09-27 02:35:59 +02:00
Bartosz Taudul
d65d957272 Display zone text. 2017-09-27 02:21:51 +02:00
Bartosz Taudul
d1bbb731fc Zone text (custom string) transfer. 2017-09-27 02:18:17 +02:00
Bartosz Taudul
3c0ce01954 Simplify access to queue producer token.
Note that calibration loop needs separate token, as the thread_local
instance is created after the profiler (and its calibration loop).
2017-09-27 01:03:29 +02:00
Bartosz Taudul
842721a754 Make profiler instance static. 2017-09-27 01:03:01 +02:00
Bartosz Taudul
3cc7cc596e Remove GetNewId() from Profiler interface. 2017-09-27 01:02:04 +02:00
Bartosz Taudul
f584bf76e8 Profiler ID can be static (one less instruction). 2017-09-27 00:30:02 +02:00
Bartosz Taudul
ffa5930a23 Don't draw frame separator lines, if too close together. 2017-09-26 22:17:10 +02:00
Bartosz Taudul
1fa778891c Allow zooming to collapsed zones. 2017-09-26 22:08:58 +02:00
Bartosz Taudul
6cf1ebec04 Pause zone view after zooming to zone. 2017-09-26 22:08:31 +02:00
Bartosz Taudul
8ad7ba1dd0 Middle click to zoom to zone. 2017-09-26 21:49:50 +02:00
Bartosz Taudul
e076d1d475 Send source location answer in stream, not as separate packet. 2017-09-26 19:00:25 +02:00
Bartosz Taudul
e90a86e06e Store zone color in source location struct. 2017-09-26 18:54:48 +02:00
Bartosz Taudul
7424077d70 Store source location in a single object.
Source file, function name and line number are now stored in a const
static container object. This has the following benefits:
- Slightly lighter profiling workload (3 instructions less).
- Profiling queue event size is significantly reduced, by 12 bytes. This
  has an effect on all queue event types.
- Source location grouping has now no cost, as it's performed at the
  compilation stage. This allows simplification of server code.
The downside is that the full source location resolution is now
performed in two steps, as the server has to query both source location
container and strings contained within. This has almost no real impact
on profiler operation.
2017-09-26 02:39:08 +02:00
Bartosz Taudul
9cb12a05b3 Silence warning. 2017-09-26 02:38:07 +02:00
Bartosz Taudul
809d98162b Do the same trick as concurrentqueue.h for GetCurrentThreadId(). 2017-09-26 00:46:46 +02:00
Bartosz Taudul
1c4dcf7e52 Use consistent ifdefs. 2017-09-26 00:42:47 +02:00
Bartosz Taudul
e5ad7d9ac4 GetTime() call can be now inlined.
No dependencies on either windows.h, or static instance of Profiler.
2017-09-26 00:42:09 +02:00
Bartosz Taudul
11a790a18f Offload TSC -> time conversion to server. 2017-09-26 00:13:24 +02:00
Bartosz Taudul
27e1952cc5 Display total zone count. 2017-09-25 23:38:49 +02:00
Bartosz Taudul
d797099076 Don't merge zones of different color. 2017-09-25 23:17:33 +02:00
Bartosz Taudul
fb970170e0 Increase zone zoom in/out speed. 2017-09-25 23:15:00 +02:00
Bartosz Taudul
84052c622f Implement tracy::Vector::erase(). 2017-09-25 23:11:56 +02:00
Bartosz Taudul
f39c2d5e70 Fix tracy::Vector::insert(). 2017-09-25 23:01:22 +02:00
Bartosz Taudul
b33b9fd4ed Do not draw test window. 2017-09-25 22:54:54 +02:00