Bartosz Taudul
a4df805746
Allow filtering messages by thread.
2018-08-18 19:57:36 +02:00
Bartosz Taudul
410616f7f8
Allow viewing source from zone trace.
2018-08-18 14:26:10 +02:00
Bartosz Taudul
4c393a2b8d
Allow opening source files from withing call stack tree.
2018-08-17 22:51:26 +02:00
Bartosz Taudul
4e23ce9a24
Shared index for all call stack tree nodes.
2018-08-17 22:31:55 +02:00
Bartosz Taudul
07d2aaa1ad
Play a little animation when source file cannot be opened.
2018-08-17 22:23:16 +02:00
Bartosz Taudul
2b3490e6f7
Handle window title setter callback in View.
2018-08-17 17:24:18 +02:00
Bartosz Taudul
df7db3bd2b
Notify profiler about root window size.
2018-08-17 16:54:56 +02:00
Bartosz Taudul
facae0b9e1
Draw text editor with potential source code.
2018-08-17 15:33:12 +02:00
Bartosz Taudul
5cd61c4b07
Text editor needs fixed-width font.
2018-08-17 15:18:09 +02:00
Bartosz Taudul
5bd35eb34e
Open file preview in text editor.
2018-08-17 14:54:28 +02:00
Bartosz Taudul
9dbc56beb6
Initialize text editor.
2018-08-17 14:44:41 +02:00
Bartosz Taudul
df14cf5330
Implement callstack tree of memory allocations.
2018-08-14 18:37:06 +02:00
Bartosz Taudul
29c6498890
Add minimal trace info window.
2018-08-08 19:25:13 +02:00
Bartosz Taudul
2a08687afe
Left click on message marker displays it on the msg list.
2018-08-05 16:57:21 +02:00
Bartosz Taudul
1d0203ac17
Abstracted away one-frame-decay values.
2018-08-05 16:45:34 +02:00
Bartosz Taudul
44e027ad11
Highlight message markers on timeline.
2018-08-05 16:37:51 +02:00
Bartosz Taudul
1ea1cd57b3
Use proper frame names.
2018-08-04 21:19:24 +02:00
Bartosz Taudul
aad3e941e5
Draw multiple frame sets.
2018-08-04 21:10:45 +02:00
Bartosz Taudul
23dfc2e3fc
Multiple frame sets support.
2018-08-04 21:10:45 +02:00
Bartosz Taudul
b4f4fcfde9
Add zoom-to-middle-mouse-button-selection-range.
2018-07-29 20:15:49 +02:00
Bartosz Taudul
8ddf32bc6b
Highlight zones with the same srcloc on hover.
2018-07-28 19:53:11 +02:00
Bartosz Taudul
6a3a9c0bc5
Load second trace on a separate thread.
2018-07-28 18:47:33 +02:00
Bartosz Taudul
d1cef20c0b
Allow sorting groups by time.
2018-07-21 23:58:50 +02:00
Bartosz Taudul
cacbac8915
Calculate and display group times.
2018-07-21 23:53:11 +02:00
Bartosz Taudul
d03356c1f5
Rename "threads" to "groups" in find zone data structs.
2018-07-21 23:41:50 +02:00
Bartosz Taudul
9291a88020
Zones can be now also grouped by call stack.
2018-07-21 20:26:13 +02:00
Bartosz Taudul
389e0facd3
Draw memory allocation range on mouse hover on mem event.
2018-07-19 15:43:45 +02:00
Bartosz Taudul
cf3bf4378b
No need to return MemEvent ptr from DrawAddress().
2018-07-17 23:13:56 +02:00
Bartosz Taudul
0889334462
Add memory allocation info window.
2018-07-17 23:03:03 +02:00
Bartosz Taudul
6485a090ed
Separate small callstack button setup.
2018-07-17 22:53:38 +02:00
Bartosz Taudul
561d2dc360
Use the fastest mutex available.
...
The selection is based on the following test results:
MSVC:
=== Lock test, 6 threads ===
=> NonRecursiveBenaphore
No contention: 11.641 ns/iter
2 thread contention: 141.559 ns/iter
3 thread contention: 242.733 ns/iter
4 thread contention: 409.807 ns/iter
5 thread contention: 561.544 ns/iter
6 thread contention: 785.845 ns/iter
=> std::mutex
No contention: 19.190 ns/iter
2 thread contention: 39.305 ns/iter
3 thread contention: 58.999 ns/iter
4 thread contention: 59.532 ns/iter
5 thread contention: 103.539 ns/iter
6 thread contention: 110.314 ns/iter
=> std::shared_timed_mutex
No contention: 45.487 ns/iter
2 thread contention: 96.351 ns/iter
3 thread contention: 142.871 ns/iter
4 thread contention: 184.999 ns/iter
5 thread contention: 336.608 ns/iter
6 thread contention: 542.551 ns/iter
=> std::shared_mutex
No contention: 10.861 ns/iter
2 thread contention: 17.495 ns/iter
3 thread contention: 31.126 ns/iter
4 thread contention: 40.468 ns/iter
5 thread contention: 15.677 ns/iter
6 thread contention: 64.505 ns/iter
Cygwin (clang):
=== Lock test, 6 threads ===
=> NonRecursiveBenaphore
No contention: 11.536 ns/iter
2 thread contention: 121.082 ns/iter
3 thread contention: 396.430 ns/iter
4 thread contention: 672.555 ns/iter
5 thread contention: 1327.761 ns/iter
6 thread contention: 14151.955 ns/iter
=> std::mutex
No contention: 62.583 ns/iter
2 thread contention: 3990.464 ns/iter
3 thread contention: 7161.189 ns/iter
4 thread contention: 9870.820 ns/iter
5 thread contention: 12355.178 ns/iter
6 thread contention: 14694.903 ns/iter
=> std::shared_timed_mutex
No contention: 91.687 ns/iter
2 thread contention: 1115.037 ns/iter
3 thread contention: 4183.792 ns/iter
4 thread contention: 15283.491 ns/iter
5 thread contention: 27812.477 ns/iter
6 thread contention: 35028.140 ns/iter
=> std::shared_mutex
No contention: 91.764 ns/iter
2 thread contention: 1051.826 ns/iter
3 thread contention: 5574.720 ns/iter
4 thread contention: 15721.416 ns/iter
5 thread contention: 27721.487 ns/iter
6 thread contention: 35420.404 ns/iter
Linux (x64):
=== Lock test, 6 threads ===
=> NonRecursiveBenaphore
No contention: 13.487 ns/iter
2 thread contention: 210.317 ns/iter
3 thread contention: 430.855 ns/iter
4 thread contention: 510.533 ns/iter
5 thread contention: 1003.609 ns/iter
6 thread contention: 1787.683 ns/iter
=> std::mutex
No contention: 12.403 ns/iter
2 thread contention: 157.122 ns/iter
3 thread contention: 186.791 ns/iter
4 thread contention: 265.073 ns/iter
5 thread contention: 283.778 ns/iter
6 thread contention: 270.687 ns/iter
=> std::shared_timed_mutex
No contention: 21.509 ns/iter
2 thread contention: 150.179 ns/iter
3 thread contention: 256.574 ns/iter
4 thread contention: 415.351 ns/iter
5 thread contention: 611.532 ns/iter
6 thread contention: 944.695 ns/iter
=> std::shared_mutex
No contention: 20.805 ns/iter
2 thread contention: 157.034 ns/iter
3 thread contention: 244.025 ns/iter
4 thread contention: 406.269 ns/iter
5 thread contention: 387.985 ns/iter
6 thread contention: 468.550 ns/iter
Linux (arm64):
=== Lock test, 6 threads ===
=> NonRecursiveBenaphore
No contention: 20.891 ns/iter
2 thread contention: 211.037 ns/iter
3 thread contention: 409.962 ns/iter
4 thread contention: 657.441 ns/iter
5 thread contention: 828.405 ns/iter
6 thread contention: 1131.827 ns/iter
=> std::mutex
No contention: 50.884 ns/iter
2 thread contention: 103.620 ns/iter
3 thread contention: 332.429 ns/iter
4 thread contention: 620.802 ns/iter
5 thread contention: 783.943 ns/iter
6 thread contention: 834.002 ns/iter
=> std::shared_timed_mutex
No contention: 64.948 ns/iter
2 thread contention: 173.191 ns/iter
3 thread contention: 490.352 ns/iter
4 thread contention: 660.668 ns/iter
5 thread contention: 1014.546 ns/iter
6 thread contention: 1451.553 ns/iter
=> std::shared_mutex
No contention: 64.521 ns/iter
2 thread contention: 195.222 ns/iter
3 thread contention: 490.819 ns/iter
4 thread contention: 654.786 ns/iter
5 thread contention: 955.759 ns/iter
6 thread contention: 1282.544 ns/iter
2018-07-14 00:39:01 +02:00
Bartosz Taudul
f82e8aa98f
Adapt plot height to font size.
2018-06-29 00:38:56 +02:00
Bartosz Taudul
41e8648701
Adjust GPU zones to set time drift.
2018-06-28 01:12:25 +02:00
Bartosz Taudul
bab798c13c
GPU context time drift storage.
2018-06-28 01:08:08 +02:00
Bartosz Taudul
0b9559c05b
Retrieval of GPU context from GPU zone.
2018-06-28 01:07:21 +02:00
Bartosz Taudul
39eccd5b08
Extract "center view at time" function.
2018-06-22 20:21:02 +02:00
Bartosz Taudul
3404d191f0
Fix non-unique child ids in memory window.
2018-06-22 00:10:00 +02:00
Bartosz Taudul
15ff98b64a
Push detailed callstack to a separate window.
...
Only show function names (no source files or line numbers) in callstack
tooltip.
2018-06-20 13:23:08 +02:00
Bartosz Taudul
4ba95145da
Display raw callstack payload.
2018-06-19 22:19:33 +02:00
Bartosz Taudul
d49be792ba
Cache bin containers in compare view.
2018-06-06 23:09:46 +02:00
Bartosz Taudul
da5d35c364
Cache bin containers in find zone.
2018-06-06 23:06:00 +02:00
Bartosz Taudul
859bf01992
Support displaying self times in statistics view.
2018-06-06 00:47:16 +02:00
Bartosz Taudul
785a30a68b
Implement going to next/previous frame.
2018-06-02 22:27:35 +02:00
Bartosz Taudul
3ea5fd93ed
Simple and not so simple draw plot point functions.
2018-05-27 19:51:45 +02:00
Bartosz Taudul
1cc798cea3
Construct zone info stack.
2018-05-02 19:23:46 +02:00
Bartosz Taudul
e5934b409a
Don't use Vector for memory pages storage.
...
Vector has POT data size and we know exactly how much is needed.
2018-05-01 17:26:34 +02:00
Bartosz Taudul
4c521ce92a
Loaded traces may be unloaded.
2018-04-30 01:16:08 +02:00
Bartosz Taudul
afa432a087
Non-user plots must have predefined names.
2018-04-28 16:26:45 +02:00
Bartosz Taudul
ecabf24c4e
Optional normalization of compared data.
2018-04-22 02:19:22 +02:00
Bartosz Taudul
41738469f1
Add trace compare window.
2018-04-22 00:52:33 +02:00
Bartosz Taudul
2ef9fe0743
Enable log time in find zone menu by default.
2018-04-21 22:21:15 +02:00
Bartosz Taudul
6c2d7628ee
Don't draw off-screen gpu zones.
2018-04-20 23:28:19 +02:00
Bartosz Taudul
a2779eccaf
Don't draw off-screen zones.
2018-04-20 23:19:04 +02:00
Bartosz Taudul
9fc14d2faf
Don't draw off-screen plots.
2018-04-20 23:00:26 +02:00
Bartosz Taudul
cd7a1cffe8
Don't draw off-screen locks.
2018-04-20 22:53:31 +02:00
Bartosz Taudul
093787b3e8
Move find zone setup to a dedicated function.
2018-04-05 19:30:32 +02:00
Bartosz Taudul
f0573d68bd
Store memory pages in a contiguous memory area.
2018-04-03 19:17:32 +02:00
Bartosz Taudul
bf99bff87d
Store MemEvents directly in the vector.
2018-04-03 14:17:51 +02:00
Bartosz Taudul
78cd86dd69
Memory pages bitmap calculation.
2018-04-02 18:51:32 +02:00
Bartosz Taudul
e80891e36d
Allow restricting displayed allocs by time.
2018-04-02 16:07:33 +02:00
Bartosz Taudul
c4a36398f6
Move memory allocations table drawing to a separate function.
2018-04-02 02:39:12 +02:00
Bartosz Taudul
912cfdbc5e
Search for zone present in given thread at given time.
2018-04-01 21:47:08 +02:00
Bartosz Taudul
20824a200c
Implement search for memory address.
2018-04-01 21:24:30 +02:00
Bartosz Taudul
c686b86464
Add rudimentary memory information window.
2018-04-01 20:34:58 +02:00
Bartosz Taudul
16a98c8c17
Move benaphore to common directory.
2018-04-01 18:59:55 +02:00
Bartosz Taudul
ae274d8e37
Different ways of sorting of statistics data.
2018-03-24 17:28:10 +01:00
Bartosz Taudul
3a49e9a4be
Statistics window shell.
2018-03-24 14:40:48 +01:00
Bartosz Taudul
c0577fd5b2
Unordered map is no longer used.
2018-03-23 21:18:52 +01:00
Bartosz Taudul
4837ce31ff
Allow sorting zone groups by count.
2018-03-20 17:19:48 +01:00
Bartosz Taudul
37808ec4c7
Fix the horribly inefficient Visible() and ShowFull() methods.
2018-03-20 15:33:38 +01:00
Bartosz Taudul
ad37f0857b
Highlight selected zone group on histogram.
2018-03-20 14:37:58 +01:00
Bartosz Taudul
0f6ec65b65
GPU zone thread getter.
2018-03-19 16:11:37 +01:00
Bartosz Taudul
0d831e452b
Add ability to group zones by user text.
2018-03-19 16:01:36 +01:00
Bartosz Taudul
ce2bf7c207
Use Vector instead of std::vector for thread zone list.
2018-03-18 21:15:31 +01:00
Bartosz Taudul
77fa8f54a6
Restore per-thread zone list functionality.
2018-03-18 16:41:58 +01:00
Bartosz Taudul
d08c10c5b6
Add functionality for getting zone thread.
2018-03-18 16:38:42 +01:00
Bartosz Taudul
af3559afed
Only display results for a single source location match.
2018-03-18 16:07:07 +01:00
Bartosz Taudul
7a4e7cbf86
Reduce data collection if TRACY_NO_STATISTICS is defined.
...
Statistical data collection is only useful if it's meant to be used.
Otherwise it only incurs CPU and memory cost.
2018-03-18 12:55:54 +01:00
Bartosz Taudul
746df21ad9
Live updates of find zone data.
...
TODO: found zones list. Currently only histogram view is available.
2018-03-18 02:43:17 +01:00
Bartosz Taudul
f733758652
Time accumulation histogram mode.
2018-03-05 20:15:18 +01:00
Bartosz Taudul
f510d8d2e7
Update item counts in thread list.
2018-03-04 23:17:36 +01:00
Bartosz Taudul
f42d8cee38
Selection of time range on histogram.
2018-03-04 22:52:36 +01:00
Bartosz Taudul
dee7fd27be
Move mouse highlight data to a separate struct.
2018-03-04 22:21:35 +01:00
Bartosz Taudul
f7829a7eae
Store matches in a map.
2018-03-04 22:11:50 +01:00
Bartosz Taudul
754279d6f1
Allow narrowing down search results by source location.
2018-03-04 21:17:38 +01:00
Bartosz Taudul
2c508c1f79
Display list of matched source locations in search window.
2018-03-04 21:10:10 +01:00
Bartosz Taudul
80da271a2c
Don't match source location on a per-zone basis.
2018-03-04 16:53:13 +01:00
Bartosz Taudul
b09bae07c4
Change default find parameters to unlimited.
2018-03-04 16:07:10 +01:00
Bartosz Szreder
9e3f18a62a
Split data handling code from the view.
2018-02-21 16:41:37 +01:00
Bartosz Taudul
118d4b497f
Time Stamp Counter to time conversion function.
2018-02-20 12:40:12 +01:00
Bartosz Taudul
4611bc355f
Optional log time scale in histogram.
2018-02-16 15:34:22 +01:00
Bartosz Taudul
9678cc8afc
Support logarithmic scaling of values on search histogram.
2018-02-16 13:28:40 +01:00
Kamil Klimek
cb08990eff
"Find Zone" feature
...
- Simple text search with some limiting options
- Grouping by threads
- Easy access to "Zone Info" from search results
2018-01-18 12:35:30 +01:00
Bartosz Taudul
d0d3bb1141
Store shared lock bits only for shared locks.
2017-12-17 18:44:31 +01:00
Bartosz Taudul
bcf2bf1c5c
Shared lock events (still using old functionality).
2017-12-10 22:04:49 +01:00
Bartosz Taudul
3567d7edd8
Reintroduce lock announce events.
2017-12-10 21:40:48 +01:00
Bartosz Taudul
6942f84a99
Last time is now cached, not calculated.
2017-12-09 20:05:34 +01:00
Bartosz Taudul
081087b9ce
Drop an indirection level in plots.
2017-12-05 21:24:09 +01:00
Bartosz Taudul
dd8694350e
Add zoom-to-range animation.
2017-11-27 22:41:30 +01:00
Bartosz Taudul
ba80b0c16a
Use one common function for zooming to range.
2017-11-27 22:12:26 +01:00
Bartosz Taudul
cd26a6f8ff
Improve text legibility by drawing text shadow.
2017-11-25 15:45:16 +01:00
Bartosz Taudul
a515bf8878
Perform GPU to CPU resynchronization on each collect event.
2017-11-25 13:33:57 +01:00
Bartosz Taudul
f2a19c4593
Use flat_hash_map for source location payload map.
2017-11-24 01:10:12 +01:00
Bartosz Taudul
7a13892754
Split srcloc check and creation.
2017-11-24 01:05:42 +01:00
Bartosz Taudul
184039d500
One check in CheckSourceLocation.
2017-11-24 00:53:04 +01:00
Bartosz Taudul
ccb39ad4bd
Just one early exit check in CheckString/CheckThreadString.
2017-11-24 00:45:55 +01:00
Bartosz Taudul
79dec4eafe
Display compression ratio and uncompressed data throughput.
2017-11-23 01:23:40 +01:00
Bartosz Taudul
5d7fd5805a
Don't hash pointers and such.
2017-11-22 00:23:43 +01:00
Bartosz Taudul
d5ea8a86a4
Remove GPU context indirection.
2017-11-21 02:10:41 +01:00
Bartosz Taudul
63c070228c
Remove indirection in plot storage.
2017-11-21 02:06:17 +01:00
Bartosz Taudul
59c7cf2bcd
Force inline functions that have single path of execution.
2017-11-19 20:01:39 +01:00
Bartosz Taudul
47c23c9066
Force inline NewZone.
2017-11-19 19:39:25 +01:00
Bartosz Taudul
c1a79c0622
Force inline checker functions.
2017-11-19 19:23:07 +01:00
Bartosz Taudul
7a4c6b3d68
Split heavy used functions into check and add parts.
2017-11-19 17:58:56 +01:00
Bartosz Taudul
ff35f2960a
Remove a level of indirection.
2017-11-19 16:27:23 +01:00
Bartosz Taudul
b3e0d2660d
Properly use zone stack when inserting new zones.
...
CPU zones stack was also moved to thread data struct.
2017-11-19 01:16:21 +01:00
Bartosz Taudul
68f8bb906e
New context events are not serialized.
2017-11-18 01:49:44 +01:00
Bartosz Taudul
abd0676cea
Use flat_hash_map.
2017-11-15 23:15:59 +01:00
Bartosz Taudul
13d8d9255e
Use benaphore instead of mutex.
2017-11-15 21:49:41 +01:00
Bartosz Taudul
7187e1e5f5
Some strings are always indices.
...
This saves 4 bytes.
2017-11-15 10:56:27 +01:00
Bartosz Taudul
8b2af369ad
Store zone text in StringRef. Use name from source location.
2017-11-15 10:56:27 +01:00
Bartosz Taudul
c43eb29ce0
Don't send source location pointer in query reply.
...
Since reply order is the same as the query order, the server already
knows what source location it receives. This observation allows placing
zone name into the source location struct.
2017-11-14 23:06:45 +01:00
Bartosz Taudul
5c872b2137
Simplify GPU context handling.
2017-11-14 00:48:26 +01:00
Bartosz Taudul
cff8f9ebd7
GPU zone highlight.
2017-11-12 01:28:07 +01:00
Bartosz Taudul
e40f029b19
GPU info window.
2017-11-12 01:25:44 +01:00
Bartosz Taudul
dcc2b3fb09
Save/load GPU events.
2017-11-12 01:12:28 +01:00
Bartosz Taudul
d61e03f879
Show when GPU commands were issued.
2017-11-11 23:13:54 +01:00
Bartosz Taudul
af81d999e9
Draw GPU zones.
2017-11-11 22:56:05 +01:00
Bartosz Taudul
7ebaa46f75
GPU time transfer.
2017-11-11 22:08:47 +01:00
Bartosz Taudul
6fcdb924e8
CPU-side GPU event transfer.
2017-11-11 21:09:48 +01:00
Bartosz Taudul
3c00ce0958
GPU context registration.
2017-11-11 19:44:09 +01:00
Bartosz Taudul
ce35009c63
Move structs out of TracyView.
2017-11-11 19:21:25 +01:00
Bartosz Taudul
81735aea2f
Support for setting zone names in lua.
2017-11-11 17:56:41 +01:00
Bartosz Taudul
59ec40c045
Preemptive transfer of source location payload.
2017-11-11 15:59:30 +01:00
Bartosz Taudul
7f3b8f4647
Preemptive message text delivery.
2017-11-11 15:41:21 +01:00
Bartosz Taudul
76e11174dc
Preemptive sending of custom strings.
2017-11-11 15:22:55 +01:00
Bartosz Taudul
ca4483ecf5
Prevent source location payload duplication.
2017-11-11 02:31:51 +01:00
Bartosz Taudul
24084cbcd2
Standard way of string reference storage in SourceLocation.
...
StringRef::isptr was changed to isidx, as initialization of empty
SourceLocation zeroes the struct.
2017-11-11 02:02:47 +01:00
Bartosz Taudul
947cd04e5e
General solution for string pointer/index problem.
2017-11-11 01:39:34 +01:00
Bartosz Taudul
96ce90c6ed
Common storage for plot names.
2017-11-10 19:41:37 +01:00
Bartosz Taudul
5ec3ccd595
Store m_strings in common string storage.
2017-11-10 19:30:17 +01:00
Bartosz Taudul
b28fdc94ce
Use common string storage for thread names.
2017-11-10 19:24:12 +01:00
Bartosz Taudul
1baf7faf8f
Construct temporary in-place string.
2017-11-10 19:15:00 +01:00
Bartosz Taudul
51459d724c
Don't use std::string to pass strings.
2017-11-10 18:39:43 +01:00
Bartosz Taudul
8e78e38334
String map is not needed when reading timeline.
2017-11-10 18:22:41 +01:00
Bartosz Taudul
2887753b5d
Separate custom string processing from string storage.
2017-11-10 17:45:19 +01:00
Bartosz Taudul
f6af913fd3
Remove ability to disable LZ4 compression.
2017-11-10 17:34:11 +01:00
Bartosz Taudul
44ee282b6e
Store custom strings in an addressable vector.
2017-11-10 17:13:30 +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
0fb5f012ce
Lua profiling framework. No source location transfer yet.
2017-11-05 15:06:28 +01:00
Bartosz Taudul
39ac41bc19
Store source location on 32 bits, not 64.
2017-10-28 22:14:01 +02:00
Bartosz Taudul
2a6ccf8ee9
Fix some warnings.
2017-10-28 21:50:06 +02:00
Bartosz Taudul
5ebbf83eb3
Time variables should be signed.
2017-10-28 21:36:47 +02:00
Bartosz Taudul
339c177ee8
Sort lock map.
...
It is displayed in UI, so order is important.
2017-10-24 22:30:43 +02:00
Bartosz Taudul
73d23320ee
Move string helper functions out of tracy::View.
2017-10-22 17:47:40 +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
97b3cccb1a
64MB slab size.
2017-10-22 15:36:22 +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
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