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
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
807d3c42be
Use slab allocator for server allocations.
2017-10-21 13:01:57 +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
44cc0827d4
Store pointers to PlotItems.
2017-10-19 21:04:11 +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
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
8958780b18
Time must be signed.
2017-10-18 23:36:50 +02:00
Bartosz Taudul
4f3a64be9d
Optimize drawing plots.
2017-10-18 22:29:59 +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
acc1d9d834
Measurement of time period by LMB dragging.
2017-10-15 16:42:56 +02:00
Bartosz Taudul
5b9fcddfb3
String literal message transfer.
2017-10-15 13:06:49 +02:00
Bartosz Taudul
ad95813ba0
Message highlighting.
2017-10-14 15:47:06 +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
1aaab3c5e4
Use 32 bits to store lock id.
...
This makes queue item size 32 bytes. Queue operations can now be faster,
because multiplication by 33 is replaced by shift by 5.
2017-10-13 20:05:38 +02:00
Bartosz Taudul
40d7a26b37
Allow hiding plots.
2017-10-13 15:41:20 +02:00
Bartosz Taudul
591fbdf75a
Store min, max values in plot.
2017-10-13 15:32:59 +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
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
6fc0bc881c
Allow hiding threads.
2017-10-12 19:47:56 +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
02edbf54ff
Return signed value from GetLastTime().
2017-10-06 18:32:25 +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
d93c4bc271
Very crude drawing of lock events.
2017-10-04 21:27:06 +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
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
78f8425dc7
Announce lock creation.
2017-10-04 16:16:40 +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
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
4227d34599
Indicate zones with thread migration across CPU cores.
2017-10-01 19:58:53 +02:00
Bartosz Taudul
7365461ef4
Add function to get zone color.
2017-10-01 19:31:22 +02:00
Bartosz Taudul
fc8cd12088
Do not copy string map (DOH!).
2017-09-30 17:09:00 +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
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
3ac65a7524
Separate tooltip showing function.
2017-09-29 22:55:24 +02:00
Bartosz Taudul
366da56d99
Add interaction with displayed child nodes.
2017-09-29 22:40:49 +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
efda50acb1
Send timer resolution to server.
2017-09-29 18:32:07 +02:00
Bartosz Taudul
8ecb5de062
Store pointers to ThreadData.
...
This prevents moves of Vector<>.
2017-09-28 21:05:51 +02:00
Bartosz Taudul
8c1c395cec
Allow sending custom zone names.
2017-09-28 19:28:24 +02:00
Bartosz Taudul
7f865f3517
Use common function to send server query.
2017-09-27 02:44:16 +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
d1bbb731fc
Zone text (custom string) transfer.
2017-09-27 02:18:17 +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
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
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
7683da5f74
Send initial configuration as a single message.
2017-09-24 16:10:28 +02:00
Bartosz Taudul
6419cd5062
Parent vector retrieval.
2017-09-24 03:39:29 +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
3d6e85db4a
Take children into account when determining zone end.
2017-09-23 15:39:39 +02:00
Bartosz Taudul
2610004fa5
Store thread id in thread data.
2017-09-22 01:59:44 +02:00
Bartosz Taudul
3032745cce
Thread names boilerplate.
2017-09-22 01:30:57 +02:00
Bartosz Taudul
55fdc47418
Each thread has its own timeline.
2017-09-22 01:15:58 +02:00
Bartosz Taudul
5065743bf0
Store zone source location.
2017-09-21 21:57:40 +02:00
Bartosz Taudul
9da7e58ec5
String getter.
2017-09-21 02:10:20 +02:00
Bartosz Taudul
b725be87c7
Scrolling zone view.
2017-09-21 01:13:23 +02:00
Bartosz Taudul
c3df475de7
Draw frames in zone view.
2017-09-21 00:57:26 +02:00
Bartosz Taudul
ef317fa2be
Add frame time accessors.
2017-09-20 22:34:56 +02:00
Bartosz Taudul
efc7958ae0
Calculate zone area to display.
2017-09-20 21:21:21 +02:00
Bartosz Taudul
fc01be2138
Don't show profiler window before connection is established.
2017-09-20 20:38:12 +02:00
Bartosz Taudul
2ba44bc0bc
Allow pausing frame updates.
2017-09-19 00:26:40 +02:00
Bartosz Taudul
9a38302d4a
Conversion of nanoseconds to string.
2017-09-18 22:11:38 +02:00
Bartosz Taudul
da36ddd1c6
Refactor drawing frames.
2017-09-18 21:26:22 +02:00
Bartosz Taudul
2f7fa20e34
Draw frame graph.
2017-09-18 02:37:25 +02:00