Bartosz Taudul
bb59eafda4
Remove zone block rounding.
2017-11-07 21:48:24 +01:00
Bartosz Taudul
d34a01eb96
Remove lock block rounding.
2017-11-07 21:46:17 +01:00
Bartosz Taudul
e869b6ead9
Proper drawing of lock inaccuracy indicators.
2017-11-07 01:51:30 +01:00
Bartosz Taudul
5d2f2beb53
Increase zoom speed.
2017-11-06 01:04:49 +01:00
Bartosz Taudul
58ef34ce42
Save/load source location payloads.
2017-11-05 21:36:22 +01:00
Bartosz Taudul
c6a7bcb086
Store source location payloads.
...
No saving yet. No detection of duplicate entries.
2017-11-05 21:24:50 +01:00
Bartosz Taudul
8178b61973
Wrap access to source location function and file.
2017-11-05 21:03:08 +01:00
Bartosz Taudul
3d2450fc10
Store source locations in a proper data structure.
2017-11-05 20:54:49 +01:00
Bartosz Taudul
bc77aa8d26
Source location payload transfer. No storage yet.
2017-11-05 16:46:00 +01:00
Bartosz Taudul
1323596ab2
Use switch instead of if ladder.
2017-11-05 16:14:51 +01:00
Bartosz Taudul
0fb5f012ce
Lua profiling framework. No source location transfer yet.
2017-11-05 15:06:28 +01:00
Bartosz Taudul
9524b6447e
Pack LockEvent data, saving one byte.
2017-10-29 16:49:22 +01:00
Bartosz Taudul
34123de977
Reduce custom vector size 16 -> 13 bytes.
2017-10-28 23:12:11 +02:00
Bartosz Taudul
1a117b330f
Prevent lock event overdraw.
...
If two lock events would overdraw (and they were), it was very easy for
a non-blocking zone to completely hide a blocking one.
2017-10-28 22:44:41 +02:00
Bartosz Taudul
0edbe38334
Improve locks visibility.
2017-10-28 22:34:52 +02:00
Bartosz Taudul
2988dda68f
Fix for missing unended zones.
2017-10-28 22:20:39 +02:00
Bartosz Taudul
39ac41bc19
Store source location on 32 bits, not 64.
2017-10-28 22:14:01 +02:00
Bartosz Taudul
fb6c91b552
Simplify switch.
2017-10-28 22:11:24 +02:00
Bartosz Taudul
db16aecf64
Try to display only frame time, if no space for full text.
2017-10-28 21:55:01 +02:00
Bartosz Taudul
2a6ccf8ee9
Fix some warnings.
2017-10-28 21:50:06 +02:00
Bartosz Taudul
6aea2a0348
Enforce minimum size for zones and locks.
2017-10-28 16:14:52 +02:00
Bartosz Taudul
b6244d1180
Reorder checks.
2017-10-28 15:48:05 +02:00
Bartosz Taudul
f89713b7c6
Proper tooltip for condensed lock events.
2017-10-28 15:33:34 +02:00
Bartosz Taudul
32fc88de7b
Disable rounding on proper rectangle.
2017-10-28 15:30:20 +02:00
Bartosz Taudul
6832a4ae57
Better lock merging.
2017-10-28 15:29:25 +02:00
Bartosz Taudul
958e472751
Better lock combining.
2017-10-28 15:24:25 +02:00
Bartosz Taudul
3e0b1f0ad5
Lock drawing optimization.
2017-10-28 15:15:07 +02:00
Bartosz Taudul
fcc76412fe
Move common variables out of loop.
2017-10-28 14:25:35 +02:00
Bartosz Taudul
591da109a8
Outer loop check is no longer needed.
2017-10-28 14:15:18 +02:00
Bartosz Taudul
25e9ae4b68
Simplify code.
2017-10-28 14:14:26 +02:00
Bartosz Taudul
d1789f1e3a
Stay in fast loop until there's something to draw.
2017-10-28 14:08:10 +02:00
Bartosz Taudul
257f9818ed
Fast iteration until state != Nothing.
2017-10-28 13:56:35 +02:00
Bartosz Taudul
433a80c2df
Move lock state progression to a separate function.
2017-10-28 13:44:46 +02:00
Bartosz Taudul
09c9502061
Condense code.
2017-10-28 13:19:32 +02:00
Bartosz Taudul
a2a314678b
Helper function for determining if other threads are waiting.
2017-10-28 12:48:05 +02:00
Bartosz Taudul
71504c4e53
Document lock state colors.
2017-10-28 12:40:25 +02:00
Bartosz Taudul
e5865cb23e
Optimize drawing messages.
2017-10-28 12:37:34 +02:00
Bartosz Taudul
3163563a27
Fix crash on unended lock highlight.
2017-10-26 02:06:30 +02:00
Bartosz Taudul
db48cd6c1f
Display threads that have acquired a lock.
2017-10-26 00:42:16 +02:00
Bartosz Taudul
f3bac060a6
Same thing for contended locks.
2017-10-25 23:45:53 +02:00
Bartosz Taudul
016048a761
Properly detect and show recursive lock release.
2017-10-25 23:39:56 +02:00
Bartosz Taudul
f013dfe706
Properly label recursive lock wait sections.
2017-10-25 23:37:10 +02:00
Bartosz Taudul
01b2e64985
Properly show recursive lock wait sections.
2017-10-25 23:36:08 +02:00
Bartosz Taudul
e16f784617
Proper handling of recursive mutices.
2017-10-25 23:30:51 +02:00
Bartosz Taudul
742e4e2893
Use proper type.
2017-10-25 22:56:02 +02:00
Bartosz Taudul
011253ac47
Display lock and wait counts.
2017-10-25 22:35:12 +02:00
Bartosz Taudul
8f814b2537
Optimize drawing zone frames.
2017-10-22 17:48:01 +02:00
Bartosz Taudul
73d23320ee
Move string helper functions out of tracy::View.
2017-10-22 17:47:40 +02:00
Bartosz Taudul
262dfa53e9
Display lock number on lock list in options.
2017-10-22 17:30:02 +02:00
Bartosz Taudul
1967ce871a
Fix getting parent of not ended zone.
2017-10-22 17:09:33 +02:00
Bartosz Taudul
cc8683a399
Store TextData pointer as an index in array.
...
This further reduces ZoneEvent size by 4 bytes.
2017-10-22 16:40:15 +02:00
Bartosz Taudul
2e6350877d
Remove parent pointer from ZoneEvent.
2017-10-22 16:15:27 +02:00
Bartosz Taudul
b72d4b05de
Remove dead code.
2017-10-22 15:40:56 +02:00
Bartosz Taudul
7345ca5aa6
Rename Event to ZoneEvent.
2017-10-22 15:37:24 +02:00
Bartosz Taudul
eff6015aad
Fix combo list.
2017-10-22 15:27:07 +02:00
Bartosz Taudul
5b20f0008f
Optional namespace shortening.
2017-10-22 13:56:05 +02:00
Bartosz Taudul
caec31731f
Add ability to hide uncontended locks.
2017-10-22 13:32:27 +02:00
Bartosz Taudul
92a38a43d5
Add ability to hide individual locks.
2017-10-22 13:26:11 +02:00
Bartosz Taudul
ba5312f429
Ability to completely hide plots.
2017-10-22 13:17:34 +02:00
Bartosz Taudul
133db4c68e
Ability to completely hide threads.
2017-10-22 13:13:26 +02:00
Bartosz Taudul
bd8d423d16
Use small temporary buffer instead of growing one.
2017-10-21 14:27:38 +02:00
Bartosz Taudul
31dec96d0c
Don't calculate min-max range of a large point quantity.
2017-10-21 14:27:38 +02:00
Bartosz Taudul
5f7dad1889
Don't do unnecessary hover checks.
2017-10-21 14:27:38 +02:00
Bartosz Taudul
c28b3a420f
Delay insertion of postponed plot items.
...
This further reduces number of memmoves that need to be performed on a
vector, which results in net increased throughput.
2017-10-21 13:32:51 +02:00
Bartosz Taudul
75e3dd175a
One function for adding threads.
2017-10-21 13:14:20 +02:00
Bartosz Taudul
fa985940f7
Check thread name when adding messages.
2017-10-21 13:05:37 +02:00
Bartosz Taudul
807d3c42be
Use slab allocator for server allocations.
2017-10-21 13:01:57 +02:00
Bartosz Taudul
07cb693cbb
Separate slab init/noinit allocation functions.
2017-10-21 12:54:12 +02:00
Bartosz Taudul
ad338a7cfd
Fix message literals.
2017-10-21 12:39:26 +02:00
Bartosz Taudul
b7800be627
Perform bulk insertion of plot points.
2017-10-19 23:26:21 +02:00
Bartosz Taudul
cf94b1d2e8
Add missing locks.
2017-10-19 23:10:47 +02:00
Bartosz Taudul
476597f5ed
Adaptive display compression range.
2017-10-19 21:05:59 +02:00
Bartosz Taudul
44cc0827d4
Store pointers to PlotItems.
2017-10-19 21:04:11 +02:00
Bartosz Taudul
7329eb6e99
Display plot points count with separators.
2017-10-19 20:34:48 +02:00
Bartosz Taudul
6e4343c043
Use custom vector to store plot items.
2017-10-19 20:14:31 +02:00
Bartosz Taudul
0519df4dfc
Reduce accuracy to decrease memory load.
2017-10-19 19:56:13 +02:00
Bartosz Taudul
5278bb29e6
Don't sort all values in a compressed range.
2017-10-19 19:43:27 +02:00
Bartosz Taudul
fd22fed773
Manually manage temporary plot buffer.
2017-10-19 19:09:40 +02:00
Bartosz Taudul
6e5ccf8391
Store values, not pointers to PlotItems.
2017-10-19 18:28:11 +02:00
Bartosz Taudul
c5eef172f1
Adapt "recording" circle size to font size.
2017-10-18 23:25:35 +02:00
Bartosz Taudul
4f3a64be9d
Optimize drawing plots.
2017-10-18 22:29:59 +02:00
Bartosz Taudul
58ef271356
Add separator to zone count.
2017-10-18 20:35:01 +02:00
Bartosz Taudul
ac71622c0c
Add separators to printed values.
2017-10-18 20:33:49 +02:00
Bartosz Taudul
cdde2ea2a3
Cut off trailing zeros when printing floating point values.
2017-10-18 20:18:33 +02:00
Bartosz Taudul
7c47edc64f
Terminate connection handshake.
2017-10-18 18:48:51 +02:00
Bartosz Taudul
6d48404934
4KB is too small for some messages. Use 64KB buffer.
...
OpenGL extensions list bites in the ass again.
2017-10-17 01:21:00 +02:00
Bartosz Taudul
c0e5dd0369
Visual differentiation of tracy init from other frames.
2017-10-17 01:17:55 +02:00
Bartosz Taudul
1e3476cf36
Transfer profiler initialization time.
2017-10-17 01:10:38 +02:00
Bartosz Taudul
acc1d9d834
Measurement of time period by LMB dragging.
2017-10-15 16:42:56 +02:00
Bartosz Taudul
84abfadc72
Horizontal zone view dragging with RMB.
2017-10-15 16:20:45 +02:00
Bartosz Taudul
5b9fcddfb3
String literal message transfer.
2017-10-15 13:06:49 +02:00
Bartosz Taudul
eb95d65622
Fix types in std::max.
2017-10-14 18:48:44 +02:00
Bartosz Taudul
ad95813ba0
Message highlighting.
2017-10-14 15:47:06 +02:00
Bartosz Taudul
bf8f369e33
Increase plot point active hover area.
2017-10-14 15:29:04 +02:00
Bartosz Taudul
503ef8bcbc
Save message data.
2017-10-14 15:26:02 +02:00
Bartosz Taudul
bd7f8111a6
Lock id size changed in data dump.
2017-10-14 15:21:15 +02:00
Bartosz Taudul
30fd899a90
Display messages in threads.
2017-10-14 15:03:28 +02:00
Bartosz Taudul
317b23c7c3
Assign messages to threads.
2017-10-14 14:46:03 +02:00
Bartosz Taudul
3ba349565a
Message list window.
2017-10-14 14:36:30 +02:00
Bartosz Taudul
fa8030009f
Store messages.
2017-10-14 14:28:04 +02:00
Bartosz Taudul
ec789d60e8
Store source location color in 24 bits.
2017-10-13 19:59:18 +02:00
Bartosz Taudul
ed55fbfacb
Save/load plot data.
2017-10-13 16:04:20 +02:00
Bartosz Taudul
348661c9df
Display number of plot points per second.
2017-10-13 15:55:09 +02:00
Bartosz Taudul
e3abc8b52a
Fix min, max value setting.
2017-10-13 15:46:00 +02:00
Bartosz Taudul
4066b9ae30
Add plot information tooltip.
2017-10-13 15:44:24 +02:00
Bartosz Taudul
40d7a26b37
Allow hiding plots.
2017-10-13 15:41:20 +02:00
Bartosz Taudul
4ed905ca88
Plot can't be empty.
2017-10-13 15:36:16 +02:00
Bartosz Taudul
591fbdf75a
Store min, max values in plot.
2017-10-13 15:32:59 +02:00
Bartosz Taudul
5deb1c51dd
Can't modify both variables.
2017-10-13 15:31:38 +02:00
Bartosz Taudul
d1c43ef917
Draw vertical line on mouse position in zone view.
2017-10-13 15:26:18 +02:00
Bartosz Taudul
b217e6ab30
Add lousy plot values tooltip.
2017-10-13 15:15:57 +02:00
Bartosz Taudul
f32114cb35
Draw plot points in a separate function.
2017-10-13 15:09:01 +02:00
Bartosz Taudul
d05827135d
Draw plots.
2017-10-13 14:54:32 +02:00
Bartosz Taudul
ee60fc6885
Allow disabling zone/lock drawing.
2017-10-13 13:32:23 +02:00
Bartosz Taudul
fe0366c792
Receive plot data.
2017-10-13 03:36:59 +02:00
Bartosz Taudul
d9feeb3486
Disable scroll bar on profiler window.
2017-10-12 23:44:35 +02:00
Bartosz Taudul
97360c0c4c
Always save dumps with .tracy extension.
2017-10-12 22:38:11 +02:00
Bartosz Taudul
1b4a9379cc
Vertical scrolling of zone area.
2017-10-12 22:27:17 +02:00
Bartosz Taudul
737671adbf
Remove lock announce message.
...
This removes problem with static initialization order of mutices vs
tracy.
Lock source location is now transferred in lock wait message.
2017-10-12 20:14:17 +02:00
Bartosz Taudul
8634c48c9f
Check for thread existence when adding a lock.
2017-10-12 19:52:18 +02:00
Bartosz Taudul
3df0abd164
Only check thread string when adding a new thread.
2017-10-12 19:52:06 +02:00
Bartosz Taudul
6fc0bc881c
Allow hiding threads.
2017-10-12 19:47:56 +02:00
Bartosz Taudul
c1090a3116
Fix zone depth calculation.
2017-10-12 19:14:03 +02:00
Bartosz Taudul
cc8b357f09
Avoid excessive stack operations for cpu query.
2017-10-10 23:21:30 +02:00
Bartosz Taudul
75457c1465
Remove +x flag from files.
2017-10-10 21:56:15 +02:00
Bartosz Taudul
a6c5993401
Fix locks with more than two threads.
2017-10-08 23:03:38 +02:00
Bartosz Taudul
45cb4b144f
Add bit counter.
2017-10-08 21:02:09 +02:00
Bartosz Taudul
fbe7e59319
Allow zooming to zones without end.
2017-10-08 11:38:03 +02:00
Bartosz Taudul
42595014a1
Fix issue with missing lock display.
...
This was caused by a logic error concerning a lock state when thread t1
was waiting for a lock, thread t2 released the lock and thread t1 didn't
yet acquire a lock. High zoom level was needed.
(Threads are performing Wait, Obtain, Release operations on locks.)
t1 W |O R
t2 WO R|
--------------+----> t
↑
Problem
In the region marked by the problem line the lock count was 0, which
didn't trigger the appropriate code branch.
2017-10-06 18:58:54 +02:00
Bartosz Taudul
34030bf3d4
Prevent crash when no locks to display.
2017-10-06 18:52:52 +02:00
Bartosz Taudul
02edbf54ff
Return signed value from GetLastTime().
2017-10-06 18:32:25 +02:00
Bartosz Taudul
9bc80941c7
Draw timer uncertainties on locks.
2017-10-06 18:25:30 +02:00
Bartosz Taudul
6488ba6e0f
Display lock event location (if available).
2017-10-06 18:12:13 +02:00
Bartosz Taudul
71e16d069e
Store lock mark locations.
2017-10-06 18:04:17 +02:00
Bartosz Taudul
cbf5ddece1
Don't wait for lock to be announced before processing events.
2017-10-06 17:09:15 +02:00
Bartosz Taudul
695b0426bf
Lock mark processing skeleton.
2017-10-06 17:05:31 +02:00
Bartosz Taudul
21c1533d8b
Highlight threads contending for a lock.
2017-10-06 02:19:25 +02:00
Bartosz Taudul
21bebc1695
Display lock subzone time.
2017-10-05 23:57:27 +02:00
Bartosz Taudul
b965a1c936
Show which threads are blocking/blocked.
2017-10-05 23:47:51 +02:00
Bartosz Taudul
182f6533f3
Fix detection of blocking lock before viewport start.
2017-10-05 23:40:08 +02:00
Bartosz Taudul
e572c655c1
Add tooltips for locks.
2017-10-05 23:35:21 +02:00
Bartosz Taudul
efb7f0a31c
Show blocking locks.
...
A blocking lock is when a thread has lock, but other thread is waiting
for that lock.
2017-10-05 23:25:25 +02:00
Bartosz Taudul
9689d8014f
Proper lock visualization.
2017-10-05 23:18:24 +02:00
Bartosz Taudul
78067eb35e
Calculate lock wait counts.
2017-10-05 14:02:08 +02:00
Bartosz Taudul
2582f04977
Remove code leftovers.
2017-10-05 12:52:57 +02:00
Bartosz Taudul
4accd9ae8f
There can be many locks with the same name, print id.
2017-10-05 02:46:35 +02:00
Bartosz Taudul
956bcb9b17
Save lock source location.
2017-10-04 21:38:25 +02:00
Bartosz Taudul
d93c4bc271
Very crude drawing of lock events.
2017-10-04 21:27:06 +02:00
Bartosz Taudul
486f0999a7
Save/load lock events.
2017-10-04 20:10:54 +02:00
Bartosz Taudul
87ae5eccde
No need for id in LockMap.
2017-10-04 20:10:54 +02:00
Bartosz Taudul
a99fc01707
Store which threads access any given lock.
2017-10-04 19:57:06 +02:00
Bartosz Taudul
4c8e9f7d5d
Track number of held locks.
2017-10-04 19:42:44 +02:00
Bartosz Taudul
39bb9a3ad1
Insert lock events into timeline.
2017-10-04 19:24:24 +02:00
Bartosz Taudul
9904ebb4b6
Lock time correction.
2017-10-04 19:24:06 +02:00
Bartosz Taudul
54735bacea
Lock events dispatch.
2017-10-04 18:51:50 +02:00
Bartosz Taudul
110e5971d1
Store pending lock events, if lock was not yet announced.
2017-10-04 18:32:53 +02:00
Bartosz Taudul
c2bccf7126
Move towards proper data structures.
2017-10-04 18:32:53 +02:00
Bartosz Taudul
8c90eab044
Let's not worry about lock memory reuse.
2017-10-04 16:51:51 +02:00
Bartosz Taudul
0011573fa9
Send lock events.
2017-10-04 16:45:46 +02:00
Bartosz Taudul
78f8425dc7
Announce lock creation.
2017-10-04 16:16:40 +02:00
Bartosz Taudul
ff21b74e7a
Add missing locks.
2017-10-04 16:07:20 +02:00
Bartosz Taudul
2f14704143
Save and load capture name.
2017-10-03 23:29:48 +02:00
Bartosz Taudul
b2252de9c8
Send and display program execution date.
2017-10-03 23:26:41 +02:00
Bartosz Taudul
7526ac83b5
Display program name in profiler window title.
2017-10-03 23:18:07 +02:00
Bartosz Taudul
d1edd30ca6
Zone ids are unnecessary.
2017-10-03 16:41:32 +02:00
Bartosz Taudul
3fcf39ec58
More dead code removal.
2017-10-03 16:26:58 +02:00
Bartosz Taudul
e61e2718cb
Remove dead timeline reconstruction code.
...
Queue items from a single producer are always FIFO. There's no need to
account for an impossible use case.
2017-10-03 15:53:49 +02:00
Bartosz Taudul
f74a313d12
Fix thread spacing.
2017-10-01 20:37:35 +02:00
Bartosz Taudul
621b6a8c49
Don't clip text vertically.
2017-10-01 20:16:02 +02:00
Bartosz Taudul
65e89e6e80
Fix collapsed zones height.
2017-10-01 20:00:53 +02:00
Bartosz Taudul
4227d34599
Indicate zones with thread migration across CPU cores.
2017-10-01 19:58:53 +02:00
Bartosz Taudul
dc72010bd5
Increase separation of zones.
2017-10-01 19:47:22 +02:00
Bartosz Taudul
35562ed6e2
Make zone highlight color a derivative of zone color.
2017-10-01 19:38:45 +02:00
Bartosz Taudul
79073383b4
No transparency in zone colors.
2017-10-01 19:32:20 +02:00
Bartosz Taudul
7365461ef4
Add function to get zone color.
2017-10-01 19:31:22 +02:00
Bartosz Taudul
3dc4fc4796
Display CPU id in zone tooltips.
2017-10-01 19:21:25 +02:00
Bartosz Taudul
91fd171b60
Store CPU id in zones.
2017-10-01 19:17:29 +02:00
Bartosz Taudul
8f862b3271
Reserve memory for loaded data.
2017-10-01 01:54:40 +02:00
Bartosz Taudul
616f501a97
Set nullptrs where necessary.
2017-09-30 19:21:51 +02:00
Bartosz Taudul
fc8cd12088
Do not copy string map (DOH!).
2017-09-30 17:09:00 +02:00
Bartosz Taudul
f387a16e61
Count read zones.
2017-09-30 16:59:03 +02:00
Bartosz Taudul
06949e2f99
Reading saved trace.
2017-09-30 16:58:02 +02:00
Bartosz Taudul
f9ee2b853c
Writing traces.
2017-09-30 16:20:08 +02:00
Bartosz Taudul
e4c5e5c097
Save trace file selector.
2017-09-30 14:56:23 +02:00
Bartosz Taudul
0de755124d
Small cleanup.
2017-09-30 14:56:23 +02:00
Bartosz Taudul
d7bd8885fe
Make zone highlight more visible.
2017-09-30 13:45:02 +02:00
Bartosz Taudul
077585ba4d
Allow switching to zone parent.
2017-09-30 13:41:03 +02:00
Bartosz Taudul
e6a32c1af5
Add zoom-to-frame.
2017-09-29 23:08:10 +02:00
Bartosz Taudul
dd0c283a3b
More condensed child zone time graph.
2017-09-29 22:59:11 +02:00
Bartosz Taudul
9864ef70c9
Show child zone info popups.
2017-09-29 22:57:22 +02:00
Bartosz Taudul
852e163b72
Use correct variable.
2017-09-29 22:56:12 +02:00
Bartosz Taudul
3ac65a7524
Separate tooltip showing function.
2017-09-29 22:55:24 +02:00
Bartosz Taudul
5dc5500065
Display child zone times graphically.
2017-09-29 22:50:25 +02:00
Bartosz Taudul
366da56d99
Add interaction with displayed child nodes.
2017-09-29 22:40:49 +02:00
Bartosz Taudul
2c0d4d2817
Display child zone times.
2017-09-29 22:40:45 +02:00
Bartosz Taudul
1cd86cb30f
Display exclusive zone time.
2017-09-29 22:13:22 +02:00
Bartosz Taudul
d4d28e841a
Display basic timing info.
2017-09-29 22:06:31 +02:00
Bartosz Taudul
fb80ac9488
Allow zooming to zone from zone info window.
2017-09-29 22:01:30 +02:00
Bartosz Taudul
b386e51edc
Highlight selected zone.
2017-09-29 21:57:00 +02:00
Bartosz Taudul
c5f6ca9656
Add basic zone info window.
2017-09-29 21:49:14 +02:00
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
b9aa10913a
Rename internal enum to avoid #define conflicts.
2017-09-28 21:20:33 +02:00
Bartosz Taudul
8ecb5de062
Store pointers to ThreadData.
...
This prevents moves of Vector<>.
2017-09-28 21:05:51 +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
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
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
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
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
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
b33b9fd4ed
Do not draw test window.
2017-09-25 22:54:54 +02:00
Bartosz Taudul
519cb8dff3
Allow adding custom colors to zones.
2017-09-25 22:46:14 +02:00
Bartosz Taudul
93fc85a639
Try to always display zone text.
2017-09-25 22:05:13 +02:00
Bartosz Taudul
0d24a2739d
Missed one valid case.
2017-09-25 01:52:42 +02:00
Bartosz Taudul
71b6e81500
Don't reverse item order.
2017-09-25 01:37:03 +02:00
Bartosz Taudul
3aeea69eba
No dragons here.
2017-09-25 01:31:54 +02:00
Bartosz Taudul
192493a2c3
Store proper children in edge-case code.
2017-09-25 01:20:22 +02:00
Bartosz Taudul
d427e937d3
Zone can begin right after another one.
...
This happens when the timer has not enough precision.
2017-09-24 23:52:08 +02:00
Bartosz Taudul
61b7496cef
Display number of collapsed small zones.
2017-09-24 16:56:57 +02:00
Bartosz Taudul
a835e0f121
Display execution time minus profiling delay.
2017-09-24 16:45:22 +02:00
Bartosz Taudul
29d5b8d4e9
Support formatting of negative time.
2017-09-24 16:45:08 +02:00
Bartosz Taudul
36ffaec1df
Display profiling delay on zone chart.
2017-09-24 16:40:16 +02:00
Bartosz Taudul
86b1e4fd64
Group small zones together.
2017-09-24 16:25:07 +02:00
Bartosz Taudul
7683da5f74
Send initial configuration as a single message.
2017-09-24 16:10:28 +02:00
Bartosz Taudul
9a46cbeb84
Clamp rect coordinates to prevent bad rendering.
2017-09-24 03:44:52 +02:00
Bartosz Taudul
d98e08b37a
Implement zone update code.
2017-09-24 03:39:30 +02:00
Bartosz Taudul
6419cd5062
Parent vector retrieval.
2017-09-24 03:39:29 +02:00
Bartosz Taudul
1005fa0c91
Implement rest of zone insertion code.
2017-09-24 03:29:48 +02:00
Bartosz Taudul
060cd90c81
Draw nested zones.
2017-09-24 00:12:26 +02:00
Bartosz Taudul
c9a982360f
Move drawing of a single zone line to a separate function.
2017-09-24 00:07:06 +02:00
Bartosz Taudul
73df330dd5
Recursive, incomplete zone insertion into timeline.
2017-09-23 23:59:56 +02:00
Bartosz Taudul
a68b0921b1
Add parent pointer to Event.
2017-09-23 15:41:26 +02:00
Bartosz Taudul
cdab2297ef
Non-recursive version of GetZoneEnd.
2017-09-23 15:41:10 +02:00