Bartosz Taudul
3ea5fd93ed
Simple and not so simple draw plot point functions.
2018-05-27 19:51:45 +02:00
Bartosz Taudul
0a79243332
Display thread from which message originated on msg list.
2018-05-25 21:14:15 +02:00
Bartosz Taudul
8118e41559
Use columns to display message list.
2018-05-25 21:10:38 +02:00
Bartosz Taudul
dbc963d55c
Drop template argument from std::lock_guard.
2018-05-08 01:25:16 +02:00
Bartosz Taudul
7d32ef8c8b
Restrict mem events list size.
2018-05-02 19:40:35 +02:00
Bartosz Taudul
f2cb04ea8d
Allow going back to the previous zone info.
2018-05-02 19:25:52 +02:00
Bartosz Taudul
1cc798cea3
Construct zone info stack.
2018-05-02 19:23:46 +02:00
Bartosz Taudul
e28022f735
Don't display alloc, free threads on two lines.
2018-05-02 19:07:34 +02:00
Bartosz Taudul
f2f712b8db
Optional display of each mem event in zone info window.
2018-05-02 19:03:34 +02:00
Bartosz Taudul
dac6a65156
Infer total mem usage change from alloc and free changes.
2018-05-02 18:41:11 +02:00
Bartosz Taudul
bbf1e9f111
Only include memory events from zone thread.
2018-05-02 18:13:13 +02:00
Bartosz Taudul
4584ef9e88
Use memory events to calculate zone memory changes.
2018-05-02 18:06:27 +02:00
Bartosz Taudul
ce1f56ea0f
Display zone memory statistics.
...
Note that this information is incorrect, as it accounts for memory
events in all threads.
2018-05-02 17:46:09 +02:00
Bartosz Taudul
fd59ac0125
Only calculate zone child data if child list is displayed.
2018-05-02 17:23:32 +02:00
Bartosz Taudul
1512f3584c
Show appropriate message when there's no memory data collected.
2018-05-01 17:28:02 +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
76f0c8fafe
Sort source location zones on a separate thread.
2018-04-30 03:54:09 +02:00
Bartosz Taudul
4c521ce92a
Loaded traces may be unloaded.
2018-04-30 01:16:08 +02:00
Bartosz Taudul
925b6c2617
Display y-range of plots.
2018-04-28 16:44:36 +02:00
Bartosz Taudul
afa432a087
Non-user plots must have predefined names.
2018-04-28 16:26:45 +02:00
Bartosz Taudul
2a427ba87a
Fix typo.
2018-04-22 02:24:34 +02:00
Bartosz Taudul
ecabf24c4e
Optional normalization of compared data.
2018-04-22 02:19:22 +02:00
Bartosz Taudul
d06890b55d
Add missing tree pop.
2018-04-22 01:28:55 +02:00
Bartosz Taudul
470bfb5c02
Don't load unneeded data.
2018-04-22 01:00:17 +02:00
Bartosz Taudul
41738469f1
Add trace compare window.
2018-04-22 00:52:33 +02:00
Bartosz Taudul
1d044b494b
Don't enforce main window buttons width.
2018-04-21 22:42:32 +02:00
Bartosz Taudul
880eb7cbdd
Don't display zone names in find zone menu zones list.
2018-04-21 22:34:19 +02:00
Bartosz Taudul
adf8a126c6
More space for text on main window buttons.
2018-04-21 19:30:49 +02:00
Bartosz Taudul
a4e1bb05f3
Use proper format strings.
2018-04-21 19:26:55 +02:00
Bartosz Taudul
ade97b7ab6
Add hours to time-to-string conversion.
2018-04-21 17:01:10 +02:00
Bartosz Taudul
ad91b9b002
Expand maximum view span from 1 minute to 1 hour.
2018-04-21 16:53:17 +02:00
Bartosz Taudul
3793a37b2b
Use small buttons in statistics window.
2018-04-21 14:17:42 +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
723fad84a7
Don't draw off-screen zone timeline labels.
2018-04-20 22:45:29 +02:00
Bartosz Taudul
6120b3e922
Change -1 comparisons to "0" comparisons.
2018-04-14 16:50:04 +02:00
Bartosz Taudul
d0d5528e99
Disable histogram highlight using right mouse button.
2018-04-14 15:21:22 +02:00
Bartosz Taudul
fd41b4927a
Allow selecting/unselecting all locks for display.
2018-04-09 16:15:40 +02:00
Bartosz Taudul
d4bfbc2797
Allow displaying global statistics of a zone.
2018-04-05 19:31:04 +02:00
Bartosz Taudul
093787b3e8
Move find zone setup to a dedicated function.
2018-04-05 19:30:32 +02:00
Bartosz Taudul
0f95d7fd21
Use lookup table to get memory decay color.
2018-04-05 12:14:26 +02:00
Bartosz Taudul
bb299a5074
Desaturate older allocations on memory map.
2018-04-03 20:38:50 +02:00
Bartosz Taudul
189a4a2e32
Page chunk mask is not needed anymore.
2018-04-03 19:41:11 +02:00
Bartosz Taudul
1182a3fcb8
Stop processing allocations if already at time end.
2018-04-03 19:40:06 +02:00
Bartosz Taudul
b78dc70b70
No need to split address into page and chunk.
2018-04-03 19:39:19 +02:00
Bartosz Taudul
22bd2923eb
Keep mem.low in a register.
2018-04-03 19:35:43 +02:00
Bartosz Taudul
a3dd90529c
Rearrange memory reads.
2018-04-03 19:35:28 +02:00
Bartosz Taudul
197e513727
Add a separate time restriction code path.
2018-04-03 19:34:48 +02:00
Bartosz Taudul
f0573d68bd
Store memory pages in a contiguous memory area.
2018-04-03 19:17:32 +02:00
Bartosz Taudul
5ce3e44c77
Calculate chunks in one place in code.
2018-04-03 18:27:50 +02:00
Bartosz Taudul
bf99bff87d
Store MemEvents directly in the vector.
2018-04-03 14:17:51 +02:00
Bartosz Taudul
bc27c99a1e
Move page init to a non-inlined function.
2018-04-03 13:30:56 +02:00
Bartosz Taudul
6d40502068
Execute direct write to memory, if only one byte.
2018-04-03 13:23:53 +02:00
Bartosz Taudul
81c84025a2
Fix calculation of lines.
2018-04-02 20:11:55 +02:00
Bartosz Taudul
1bb1cf9e6c
Display memory map information.
2018-04-02 20:00:05 +02:00
Bartosz Taudul
78ebf37039
Use proper values for page map calculation.
2018-04-02 19:57:46 +02:00
Bartosz Taudul
a2a6386491
Allow time restricting memory map.
2018-04-02 18:57:24 +02:00
Bartosz Taudul
1c441824fd
Display memory map.
2018-04-02 18:51:32 +02:00
Bartosz Taudul
78cd86dd69
Memory pages bitmap calculation.
2018-04-02 18:51:32 +02:00
Bartosz Taudul
bf249de266
Display memory usage by active allocations.
2018-04-02 16:30:03 +02:00
Bartosz Taudul
670744f852
Move alloc cutoff to middle of timeline.
2018-04-02 16:21:24 +02:00
Bartosz Taudul
7b194d2349
Don't use std::sort.
2018-04-02 16:09:44 +02:00
Bartosz Taudul
e80891e36d
Allow restricting displayed allocs by time.
2018-04-02 16:07:33 +02:00
Bartosz Taudul
c1aaec32d6
Sort active allocations by appearance time.
2018-04-02 15:45:11 +02:00
Bartosz Taudul
38edf308fa
Display memory span.
2018-04-02 14:58:40 +02:00
Bartosz Taudul
aa8980aacc
Put memory allocations list into a child area.
2018-04-02 14:44:45 +02:00
Bartosz Taudul
8cc446b578
Highlight zones with opened zone info window.
2018-04-02 14:38:08 +02:00
Bartosz Taudul
50eb5c4b84
Highlight same zone alloc+free.
2018-04-02 14:36:07 +02:00
Bartosz Taudul
f7ce3e795f
Display zone if which allocation was freed.
2018-04-02 14:29:56 +02:00
Bartosz Taudul
e1682c7675
Draw active allocations list.
2018-04-02 02:39:12 +02:00
Bartosz Taudul
c4a36398f6
Move memory allocations table drawing to a separate function.
2018-04-02 02:39:12 +02:00
Bartosz Taudul
5824b47a66
Display memory usage.
2018-04-02 00:02:45 +02:00
Bartosz Taudul
e3509b6eee
Display total number of allocations.
2018-04-01 23:57:18 +02:00
Bartosz Taudul
8efc0a0a71
Display proper hex value.
2018-04-01 22:00:57 +02:00
Bartosz Taudul
3f7abd478e
Display zone in which memory allocation took place.
2018-04-01 21:50:35 +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
2d00d95743
Missing initializer.
2018-04-01 20:34:58 +02:00
Bartosz Taudul
c7a5e25c87
Display parent times.
2018-03-28 19:35:33 +02:00
Bartosz Taudul
9d798789a9
Fix broken behavior on duplicate names in zone info window.
2018-03-28 01:57:53 +02:00
Bartosz Taudul
d6bf19a762
Standard zone list behavior in zone trace.
2018-03-28 01:53:59 +02:00
Bartosz Taudul
bf52b3bc98
Add zone trace.
2018-03-28 01:47:28 +02:00
Bartosz Taudul
4d0396fa06
No auto-expand of child zones.
2018-03-28 01:47:20 +02:00
Bartosz Taudul
aebbefde2a
Rename exclusive time to self time.
2018-03-28 01:47:08 +02:00
Bartosz Taudul
f6d4728494
Move child zones into an expandable tree.
2018-03-28 01:34:12 +02:00
Bartosz Taudul
871633cbaf
Adapt button size to font size.
2018-03-25 00:10:31 +01:00
Bartosz Taudul
3567089278
Provide default size for main profiler window.
...
This prevents a crash when loading saved trace with plot.
2018-03-24 22:07:41 +01:00
Bartosz Taudul
1219b72577
Check if match table has content.
2018-03-24 17:32:27 +01:00
Bartosz Taudul
d559da932f
Highlight source location displayed in find zone window.
2018-03-24 17:29:25 +01:00
Bartosz Taudul
ae274d8e37
Different ways of sorting of statistics data.
2018-03-24 17:28:10 +01:00
Bartosz Taudul
b65824d116
Show source location details when one is selected.
2018-03-24 15:20:39 +01:00
Bartosz Taudul
3012817da4
Source location statistics.
2018-03-24 15:16:43 +01:00
Bartosz Taudul
27c66c3765
Remove unused variable.
2018-03-24 15:04:44 +01:00
Bartosz Taudul
aa9d9575e0
Allow raw access to source location zones data.
2018-03-24 14:48:52 +01:00
Bartosz Taudul
cb4c1dac24
Don't show pause/resume button if data is static.
2018-03-24 14:45:01 +01:00
Bartosz Taudul
225423bd21
Cosmetics.
2018-03-24 14:42:48 +01:00
Bartosz Taudul
3a49e9a4be
Statistics window shell.
2018-03-24 14:40:48 +01:00
Bartosz Taudul
40a14292b3
Matched source locations and histogram default to open.
2018-03-24 02:45:24 +01:00
Bartosz Taudul
fea0234a60
Change zone end "-1" comparisons to "0" comparisons.
2018-03-24 02:00:20 +01:00
Bartosz Taudul
910ce8b8ef
Display number of matched source locations.
2018-03-20 20:18:23 +01:00
Bartosz Taudul
4837ce31ff
Allow sorting zone groups by count.
2018-03-20 17:19:48 +01:00
Bartosz Taudul
64f3c55ba5
Display zone group time.
2018-03-20 16:56:11 +01:00
Bartosz Taudul
e6d5f3f5fc
Store common variables in registers to prevent aliasing.
2018-03-20 16:49:29 +01:00
Bartosz Taudul
720e5a0468
First check if valid, then search in map.
2018-03-20 15:41:06 +01:00
Bartosz Taudul
ad37f0857b
Highlight selected zone group on histogram.
2018-03-20 14:37:58 +01:00
Bartosz Taudul
64e05e4726
Put found zones list into a subchild.
2018-03-20 12:56:26 +01:00
Bartosz Taudul
ce3f0bd596
Add separator to zone tooltips.
2018-03-19 16:14:01 +01:00
Bartosz Taudul
d5e0858982
Display thread in GPU zone tooltip.
2018-03-19 16:13:12 +01:00
Bartosz Taudul
4d34ccc30c
Unify zone info window thread retrieval.
2018-03-19 16:11:44 +01:00
Bartosz Taudul
0f6ec65b65
GPU zone thread getter.
2018-03-19 16:11:37 +01:00
Bartosz Taudul
5a32cd7984
Show zone thread in zone info popup.
2018-03-19 16:08:50 +01:00
Bartosz Taudul
0d831e452b
Add ability to group zones by user text.
2018-03-19 16:01:36 +01:00
Bartosz Taudul
1fbe1621e7
Display zone exclusive time as progress bar.
2018-03-19 02:30:40 +01:00
Bartosz Taudul
3b34ebf544
Unify GPU info window child selection with the rest of lists.
2018-03-19 02:25:24 +01:00
Bartosz Taudul
efe3eda845
Display thread in zone info windows.
2018-03-19 02:22:08 +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
8dabe47602
Stop processing new zones on invalid time span.
...
When processing will resume in the next frame, the zone will hopefully
have a proper end time.
2018-03-18 21:06:26 +01:00
Bartosz Taudul
8b3e53bfad
Don't ignore first thread.
2018-03-18 20:53:31 +01:00
Bartosz Taudul
d0519499f4
Store thread id next to zone ptr in source location zone list.
2018-03-18 20:45:49 +01:00
Bartosz Taudul
3ac98beb5a
Use precalculated min/max time spans.
2018-03-18 20:20:24 +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
616269e849
Display zone counts in matched source locations.
2018-03-18 16:11:08 +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
67774698af
Only use direct zone end time for find zone data.
...
This prevents temporary timing artifacts from affecting histogram graph.
Previously the graph would flicker, because some shorter than usual
timing data was reported and the graph tried to compensate for a single
frame when such data was present.
2018-03-18 02:53:41 +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
79418d0c57
Move locks, zones, etc in options menu out of view.
2018-03-15 23:33:05 +01:00
Bartosz Szreder
124170b804
Fix compile warnings.
2018-03-14 00:30:57 +01:00
Bartosz Taudul
a14ff62e64
Decrease minimum spacing between tick labels on linear histogram.
2018-03-05 20:33:04 +01:00
Bartosz Taudul
f361d7484d
Put selection information next to each other.
2018-03-05 20:30:21 +01:00
Bartosz Taudul
f39d4c415d
Count time spent in histogram selection.
2018-03-05 20:23:58 +01:00
Bartosz Taudul
e9e3e46ea2
Display time instead of counts in cumulate time mode.
2018-03-05 20:19:05 +01:00
Bartosz Taudul
f733758652
Time accumulation histogram mode.
2018-03-05 20:15:18 +01:00
Bartosz Taudul
4005f22ecf
Clear selection only on right mouse click. Add tooltip.
2018-03-05 20:05:20 +01:00
Bartosz Taudul
3e931432cf
Don't calculate logarithms more than once.
2018-03-05 13:20:24 +01:00
Bartosz Taudul
68f652c40f
Put total time and max counts on the same line.
2018-03-04 23:25:33 +01:00
Bartosz Taudul
3a8c976285
Clear histogram range selection by right mouse click.
2018-03-04 23:20:35 +01:00
Bartosz Taudul
f510d8d2e7
Update item counts in thread list.
2018-03-04 23:17:36 +01:00
Bartosz Taudul
3dd14c9e01
Filter found zones according to selection.
2018-03-04 23:07:38 +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
5c1aec723d
Fix thread name clashes in ImGui.
2018-03-04 18:52:32 +01:00
Bartosz Taudul
fa46445537
Add label to separate found zones from rest of find dialog.
2018-03-04 18:44:33 +01:00