Bartosz Taudul
|
8050622b0f
|
Read and decompress network data on a separate thread.
|
2019-10-28 23:22:50 +01:00 |
|
Bartosz Taudul
|
e0356ae01e
|
Cosmetics.
|
2019-10-28 22:53:06 +01:00 |
|
Bartosz Taudul
|
99b7e8ad92
|
Close socket when shutting down.
|
2019-10-28 22:52:52 +01:00 |
|
Bartosz Taudul
|
788ca2e5df
|
Spawn no-op network thread.
|
2019-10-28 22:45:10 +01:00 |
|
Bartosz Taudul
|
7f07f5beb4
|
Free child time stack.
|
2019-10-26 23:32:16 +02:00 |
|
Bartosz Taudul
|
01985f50ef
|
Cache source location zones counter search.
|
2019-10-26 16:33:40 +02:00 |
|
Bartosz Taudul
|
1d0084aa28
|
Add cache for last accessed source location zones.
|
2019-10-25 21:29:55 +02:00 |
|
Bartosz Taudul
|
b5419944aa
|
Only write to memory if value has changed.
|
2019-10-25 21:28:55 +02:00 |
|
Bartosz Taudul
|
779063a18b
|
Cache last shrinked source location.
|
2019-10-25 21:07:28 +02:00 |
|
Bartosz Taudul
|
294793367f
|
Cache last CheckSourceLocation query.
Just knowing that the query was performed is enough here -- this
function adds a new source location entry, if there already isn't one.
|
2019-10-25 21:01:33 +02:00 |
|
Bartosz Taudul
|
0f2503d334
|
Send time deltas in GPU time events.
|
2019-10-25 19:52:01 +02:00 |
|
Bartosz Taudul
|
1ce25d3aef
|
Init cache in-place.
|
2019-10-25 19:19:35 +02:00 |
|
Bartosz Taudul
|
8fa5188176
|
Send delta times for context switches.
|
2019-10-25 19:13:11 +02:00 |
|
Bartosz Taudul
|
c8e5489e99
|
Group caches together.
|
2019-10-25 18:16:27 +02:00 |
|
Bartosz Taudul
|
29c42cc8d7
|
Fix assert.
|
2019-10-25 01:00:32 +02:00 |
|
Bartosz Taudul
|
17a51c898e
|
No need to check if vector is empty.
|
2019-10-25 00:54:46 +02:00 |
|
Bartosz Taudul
|
b5e759bc5a
|
Don't calculate child index twice.
|
2019-10-25 00:54:46 +02:00 |
|
Bartosz Taudul
|
70f1074490
|
Don't iterate over children to calculate zone self time.
|
2019-10-25 00:33:44 +02:00 |
|
Bartosz Taudul
|
d6a8a8532f
|
Prevent storing variable on stack.
|
2019-10-24 23:40:21 +02:00 |
|
Bartosz Taudul
|
1fe76be955
|
Don't reconstruct lock event time on insert.
|
2019-10-24 23:25:04 +02:00 |
|
Bartosz Taudul
|
b83d0f46d9
|
Improve updating last time.
Avoid LHS, don't write if don't need to.
|
2019-10-24 23:23:52 +02:00 |
|
Bartosz Taudul
|
721f3c8925
|
Callstack is already zero-initialized.
|
2019-10-24 23:05:39 +02:00 |
|
Bartosz Taudul
|
45332fd837
|
Don't read memory when setting values.
|
2019-10-24 23:03:13 +02:00 |
|
Bartosz Taudul
|
c9da5f1474
|
Use cached thread retriever.
|
2019-10-24 22:34:18 +02:00 |
|
Bartosz Taudul
|
5873561b54
|
Add cached thread retriever.
|
2019-10-24 22:33:48 +02:00 |
|
Bartosz Taudul
|
06bc802107
|
Avoid load-hit-store.
|
2019-10-24 22:24:00 +02:00 |
|
Bartosz Taudul
|
01ceedb57a
|
Focus out labels in connection window.
|
2019-10-24 00:54:19 +02:00 |
|
Bartosz Taudul
|
c5a6c7bf63
|
Display transferred data size.
|
2019-10-24 00:47:25 +02:00 |
|
Bartosz Taudul
|
1cfb5adc44
|
Count transferred data size.
|
2019-10-24 00:47:16 +02:00 |
|
Bartosz Taudul
|
ba61a9ed84
|
Transfer time deltas, not absolute times.
This change significantly reduces network bandwidth requirements.
Implemented for:
- CPU zones,
- GPU zones,
- locks,
- plots,
- memory events.
|
2019-10-24 00:06:41 +02:00 |
|
Bartosz Taudul
|
5c92eae3ed
|
Add early exit for invalid times.
|
2019-10-20 18:47:50 +02:00 |
|
Bartosz Taudul
|
d592af9c2f
|
Fix TRACY_NO_STATISTICS build.
|
2019-10-20 17:32:20 +02:00 |
|
Bartosz Taudul
|
5816dc2b11
|
Don't cache timedist data if ctx switch data is incomplete.
|
2019-10-20 17:03:30 +02:00 |
|
Bartosz Taudul
|
ccdc102d5a
|
Cache zone time distribution data.
|
2019-10-20 03:24:58 +02:00 |
|
Bartosz Taudul
|
4d761def61
|
Microoptimize comparison.
|
2019-10-16 20:26:39 +02:00 |
|
Bartosz Taudul
|
bfbd09b619
|
Add CPU usage graph tooltip.
|
2019-10-15 21:47:37 +02:00 |
|
Bartosz Taudul
|
7a9d4aecd3
|
Fix graph height calculation.
|
2019-10-15 21:41:06 +02:00 |
|
Bartosz Taudul
|
4372ad1bc3
|
Allow disabling CPU usage graph.
|
2019-10-15 21:37:16 +02:00 |
|
Bartosz Taudul
|
c28bab59b5
|
Improve look of CPU usage graph.
|
2019-10-15 21:20:00 +02:00 |
|
Bartosz Taudul
|
5aeeefefbd
|
Draw CPU usage graph.
|
2019-10-15 16:55:15 +02:00 |
|
Bartosz Taudul
|
3ae5c125f6
|
Implement counting CPU usage (ctx switch) at a given time.
|
2019-10-15 16:54:43 +02:00 |
|
Bartosz Taudul
|
3ce6b1205f
|
Don't iterate over 256 CPUs.
|
2019-10-15 16:13:53 +02:00 |
|
Bartosz Taudul
|
eccb0b1e4a
|
Track max CPU present in context switch data.
|
2019-10-15 16:13:53 +02:00 |
|
Bartosz Taudul
|
bdb8516d04
|
Make sure context switch end time wasn't set already.
|
2019-10-15 14:54:28 +02:00 |
|
Bartosz Taudul
|
fefa3b4693
|
Improve options UI.
|
2019-10-15 01:49:36 +02:00 |
|
Bartosz Taudul
|
f0c77b4ef4
|
Add annotation list window.
|
2019-10-14 20:52:18 +02:00 |
|
Bartosz Taudul
|
c6207ed0e9
|
Move extra tools to main window button bar popup.
|
2019-10-14 20:07:55 +02:00 |
|
Bartosz Taudul
|
fc7f77eb7a
|
Add implementation of disablable button.
|
2019-10-14 20:06:57 +02:00 |
|
Bartosz Taudul
|
6de8e6987f
|
Sort annotations.
|
2019-10-14 19:04:37 +02:00 |
|
Bartosz Taudul
|
5c47467c88
|
Fix includes.
|
2019-10-13 17:13:15 +02:00 |
|
Bartosz Taudul
|
671a8f673e
|
Don't interact with unfocused annotations.
|
2019-10-13 17:01:55 +02:00 |
|
Bartosz Taudul
|
e462335f83
|
Save/load annotations.
|
2019-10-13 16:29:24 +02:00 |
|
Bartosz Taudul
|
c2f38d0db7
|
Implement removal of user data files.
|
2019-10-13 16:29:02 +02:00 |
|
Bartosz Taudul
|
9d0316342d
|
Move Annotation struct to a proper place.
|
2019-10-13 16:28:40 +02:00 |
|
Bartosz Taudul
|
20cf1d9f83
|
Implement color selection for annotation region.
|
2019-10-13 16:14:22 +02:00 |
|
Bartosz Taudul
|
f9e860f559
|
Display annotation text on timeline.
|
2019-10-13 15:59:48 +02:00 |
|
Bartosz Taudul
|
1527e7bc10
|
Add annotation modification window.
|
2019-10-13 15:50:37 +02:00 |
|
Bartosz Taudul
|
5fed86dae7
|
Allow adding annotations to timeline.
|
2019-10-13 15:28:52 +02:00 |
|
Bartosz Taudul
|
215dc8a804
|
More compact GpuEvent struct (save 4 bytes).
Memory usage reduction of various traces:
big 9011 -> 9007
frameimages 561 -> 552
fi-big 4144 -> 4139
long 5253 -> 5125
|
2019-10-13 14:42:52 +02:00 |
|
Bartosz Taudul
|
c044df6324
|
Display number of GPU zones.
|
2019-10-13 14:21:28 +02:00 |
|
Bartosz Taudul
|
1ae49c14a2
|
GPU zone count accessor.
|
2019-10-13 14:13:28 +02:00 |
|
Bartosz Taudul
|
5e1894dd79
|
Count GPU zones.
|
2019-10-13 14:13:04 +02:00 |
|
Bartosz Taudul
|
d4620b4157
|
Fix UI.
|
2019-10-09 22:33:02 +02:00 |
|
Bartosz Taudul
|
0a358ac1f0
|
Time distribution may now only include running time.
|
2019-10-09 22:13:52 +02:00 |
|
Bartosz Taudul
|
6ced346e08
|
Different sorting modes for zone time distribution.
|
2019-10-09 21:42:46 +02:00 |
|
Bartosz Taudul
|
ed1f722c51
|
Display trace file name in trace info window.
|
2019-10-07 21:36:19 +02:00 |
|
Bartosz Taudul
|
4c4099877d
|
Track trace file name in TracyView.
|
2019-10-07 21:36:19 +02:00 |
|
Bartosz Taudul
|
c6f320d2d8
|
Store file name in FileRead.
|
2019-10-07 21:32:27 +02:00 |
|
Bartosz Taudul
|
1cd5ccb3c1
|
Display zone time distribution.
|
2019-10-04 21:34:00 +02:00 |
|
Bartosz Taudul
|
5111275770
|
Highlight hovered zone on the find zone zones list.
|
2019-10-04 13:02:26 +02:00 |
|
Bartosz Taudul
|
b913c17f5b
|
Add "no grouping" mode to find zone zones list.
|
2019-10-04 12:42:05 +02:00 |
|
Bartosz Taudul
|
f2bb933f49
|
Use proper background color.
|
2019-10-02 00:49:30 +02:00 |
|
Bartosz Taudul
|
3b223c64d4
|
Darken to background color to hide overhang.
This only handles the root window case. When the profiler is embedded in
other application, the window background color is not matched.
|
2019-10-01 23:17:36 +02:00 |
|
Bartosz Taudul
|
db29d309a2
|
Lambda capture is not needed here.
|
2019-10-01 22:42:43 +02:00 |
|
Bartosz Taudul
|
68f476834f
|
Make sure TracyCountBits() always returns uint64_t.
|
2019-10-01 22:42:29 +02:00 |
|
Bartosz Taudul
|
65ea33a60f
|
Store memory callstack data as 24-bit ints.
This reduces MemEvent size from 40 to 38 bytes.
Memory usage reduction:
chicken 2027 -> 2019
mem 6468 -> 6308
q3bsp-mt 5304 -> 5283
|
2019-10-01 22:38:17 +02:00 |
|
Bartosz Taudul
|
f0b957ec56
|
Store callstacks on 24 bits.
ZoneEvent is now 27 bytes.
Memory usage reduction on selected traces (sizes in MB):
big 9224 -> 9011 (97%)
chicken 2044 -> 2027 (99%)
drl-l-b 1443 -> 1383 (95%)
long 5327 -> 5253 (98%)
q3bsp-mt 5400 -> 5304 (98%)
selfprofile 1403 -> 1382 (98%)
|
2019-10-01 22:38:17 +02:00 |
|
Bartosz Taudul
|
c631e33f81
|
Add 24-bit int implementation.
|
2019-10-01 21:48:34 +02:00 |
|
Bartosz Taudul
|
472959b29f
|
Remove irrelevant comment.
|
2019-10-01 01:15:43 +02:00 |
|
Bartosz Taudul
|
717a212563
|
Save another 2 bytes per ZoneEvent.
ZoneEvent is not 28 bytes.
Memory usage reduction on selected traces (sizes in MB):
big 9527 -> 9224 (96%)
chicken 2107 -> 2044 (97%)
drl-l-b 1479 -> 1443 (97%)
long 5412 -> 5327 (98%)
q3bsp-mt 5592 -> 5400 (96%)
selfprofile 1443 -> 1403 (97%)
|
2019-10-01 01:05:37 +02:00 |
|
Bartosz Taudul
|
4964aa9547
|
Assert on getting index only for active strings.
|
2019-10-01 00:40:58 +02:00 |
|
Bartosz Taudul
|
acfcfb09ce
|
Hide context switch options, if no data is available.
|
2019-09-30 23:46:10 +02:00 |
|
Bartosz Taudul
|
0e56682964
|
Darkening of inactive thread regions.
|
2019-09-30 23:37:36 +02:00 |
|
Bartosz Taudul
|
6e7e8eff87
|
Set extreme compression level to really be extreme.
|
2019-09-29 21:02:01 +02:00 |
|
Bartosz Taudul
|
2470936050
|
Don't perform background tasks during trace upgrade.
|
2019-09-29 20:52:25 +02:00 |
|
Bartosz Taudul
|
d228bcb622
|
Pack StringIdx in 24 bits.
This reduces ZoneEvent size from 32 to 30 bytes.
Memory usage reduction on selected traces (sizes in MB):
big 9902 -> 9527 (96%)
chicken 2172 -> 2107 (97%)
ctx-big 311 -> 309 (99%)
drl-l-b 1570 -> 1479 (94%)
long 5496 -> 5412 (98%)
mem 6468 -> 6468 (100%)
q3bsp-mt 5784 -> 5592 (96%)
selfprofile 1486 -> 1443 (97%)
|
2019-09-29 20:32:42 +02:00 |
|
Bartosz Taudul
|
781ebeb835
|
Add table initializing alloc to slab allocator.
|
2019-09-29 20:18:16 +02:00 |
|
Bartosz Taudul
|
59632f0d37
|
One more place to check if srcloc zones are ready.
|
2019-09-29 20:17:47 +02:00 |
|
Bartosz Taudul
|
873d536845
|
Display number of strings.
|
2019-09-29 19:22:50 +02:00 |
|
Bartosz Taudul
|
c91ae667d1
|
Add string count getter.
|
2019-09-29 19:22:15 +02:00 |
|
Bartosz Taudul
|
cb6a3f3334
|
Highlight CPU data timeline from thread tooltip.
|
2019-09-29 18:55:31 +02:00 |
|
Bartosz Taudul
|
3b8ab5715f
|
Highlight CPU data timeline from CPU data window.
|
2019-09-29 18:53:58 +02:00 |
|
Bartosz Taudul
|
cafb5d6a99
|
Highlight threads on CPU data timeline.
|
2019-09-29 18:49:48 +02:00 |
|
Aleksei Skriabin
|
c0c2f4536a
|
strstr_nocase() typo fix.
|
2019-09-28 14:20:29 +05:00 |
|
Bartosz Taudul
|
c09f3c0676
|
Add thread color boxes to CPU data window.
|
2019-09-25 02:12:35 +02:00 |
|
Bartosz Taudul
|
6c5627d8e4
|
Add thread color boxes to memory allocations listings.
|
2019-09-24 23:58:11 +02:00 |
|
Bartosz Taudul
|
581fd920a1
|
Add thread color boxes to lock info.
|
2019-09-24 23:52:52 +02:00 |
|
Bartosz Taudul
|
12e2bcb691
|
Add thread color boxes to zone info windows.
|
2019-09-24 23:51:47 +02:00 |
|
Bartosz Taudul
|
ad2dd09c25
|
Add thread color boxes to zone tooltips.
|
2019-09-24 23:50:00 +02:00 |
|
Bartosz Taudul
|
47f81d0ba4
|
Add thread color box to memory plot tooltip.
|
2019-09-24 23:47:51 +02:00 |
|
Bartosz Taudul
|
9c86102bad
|
Add thread color box to CPU data on timeline.
|
2019-09-24 23:46:54 +02:00 |
|
Bartosz Taudul
|
a7e3324eba
|
Add thread color boxes to GPU context tooltips.
|
2019-09-24 23:45:36 +02:00 |
|
Bartosz Taudul
|
6ffbd00b0c
|
Add thread color box to crash info.
|
2019-09-24 23:42:25 +02:00 |
|
Bartosz Taudul
|
c73a74b8d5
|
Add thread color boxes to memory allocation info.
|
2019-09-24 23:41:28 +02:00 |
|
Bartosz Taudul
|
e9b815a3b8
|
Show thread color boxes in find zone menu.
|
2019-09-24 23:38:29 +02:00 |
|
Bartosz Taudul
|
06fe469598
|
Add thread color boxes to messages thread list.
|
2019-09-24 23:33:33 +02:00 |
|
Bartosz Taudul
|
63184f8762
|
Better Vulkan thread heuristics.
|
2019-09-24 00:55:24 +02:00 |
|
Bartosz Taudul
|
a5ba74ed13
|
Handle multiple Vulkan threads.
|
2019-09-23 17:27:49 +02:00 |
|
Bartosz Taudul
|
82cd667b30
|
Allow specifying network port in server.
|
2019-09-21 15:43:01 +02:00 |
|
Bartosz Taudul
|
4c736aecfa
|
Use fibonacci hashing to determine thread colors.
|
2019-09-21 14:03:42 +02:00 |
|
Bartosz Taudul
|
7a1fb4e0bd
|
Proper message when call stack trees are not available.
|
2019-09-21 00:57:12 +02:00 |
|
Bartosz Taudul
|
46f7235e32
|
Display proper message when there are no active allocations.
|
2019-09-21 00:54:30 +02:00 |
|
Bartosz Taudul
|
d8e0853cd8
|
Multithreaded frame image compression.
|
2019-09-20 23:03:12 +02:00 |
|
Bartosz Taudul
|
6f5a23a198
|
Add task dispatcher to server.
|
2019-09-20 22:58:12 +02:00 |
|
Bartosz Taudul
|
e1e5d6bd47
|
Add const version of PackFrameImage().
Temporary buffer needs to be handled outside of the function.
|
2019-09-20 22:55:55 +02:00 |
|
Bartosz Taudul
|
b362baed5f
|
Minor UI improvements.
|
2019-09-19 01:10:33 +02:00 |
|
Bartosz Taudul
|
6a0512fe16
|
Allow comparing frame times.
|
2019-09-16 22:02:47 +02:00 |
|
Bartosz Taudul
|
8fe9b56b6f
|
Calculate frame statistics.
|
2019-09-16 22:02:47 +02:00 |
|
Bartosz Taudul
|
b99675ae60
|
Use thread color for collapsed zones.
|
2019-09-16 20:34:55 +02:00 |
|
Bartosz Taudul
|
36b2b8f71f
|
Always return static thread color if dynamic colors are disabled.
|
2019-09-16 20:31:32 +02:00 |
|
Bartosz Taudul
|
5796f19a3b
|
Focus out exact memory plot value.
|
2019-09-16 20:27:16 +02:00 |
|
Bartosz Taudul
|
7673028dba
|
Fix skipping memory data.
|
2019-09-16 15:42:25 +02:00 |
|
Bartosz Taudul
|
5429f04614
|
Don't use source location data before it's ready.
|
2019-09-16 15:37:57 +02:00 |
|
Bartosz Taudul
|
6d00a56c61
|
Draw thread migrations across CPU cores.
|
2019-09-12 20:08:57 +02:00 |
|
Bartosz Taudul
|
23b6e5156b
|
Display thread color in thread tooltip.
|
2019-09-11 19:01:27 +02:00 |
|
Bartosz Taudul
|
2872edce5d
|
Use thread colors in context switch graph.
|
2019-09-11 18:56:54 +02:00 |
|
Bartosz Taudul
|
8ddafe4153
|
Extract color highlight functionality.
|
2019-09-11 18:52:25 +02:00 |
|
Bartosz Taudul
|
0850145811
|
Disable color box drag and drop.
|
2019-09-11 18:48:28 +02:00 |
|
Bartosz Taudul
|
2cec6f5482
|
Add thread colors to options menu.
|
2019-09-11 18:44:06 +02:00 |
|
Bartosz Taudul
|
4ea62ecb06
|
Extract small color box drawing.
|
2019-09-11 18:38:10 +02:00 |
|
Bartosz Taudul
|
00409b0b94
|
Extract thread color getter.
|
2019-09-11 18:34:48 +02:00 |
|
Bartosz Taudul
|
a5a6b11b63
|
Zones can now have dynamic colors.
|
2019-09-08 14:33:30 +02:00 |
|
Bartosz Taudul
|
2714152f84
|
Allow calculating zone depth.
|
2019-09-08 14:16:12 +02:00 |
|
Bartosz Taudul
|
cdc4575dba
|
Setup tid -> thread data mapping when loading trace.
|
2019-09-08 14:15:40 +02:00 |
|
Bartosz Taudul
|
ea6a0a58a7
|
Thread data accessor.
|
2019-09-08 14:07:16 +02:00 |
|
Bartosz Taudul
|
c9a1d3d7e5
|
Display zone color in zone info window.
|
2019-09-08 13:19:43 +02:00 |
|
Bartosz Taudul
|
b7522ec4c1
|
Allow getting zone color sans higlights, etc.
|
2019-09-08 13:16:00 +02:00 |
|
Bartosz Taudul
|
17e6a97552
|
Let's leave this here.
|
2019-09-07 17:49:54 +02:00 |
|
Bartosz Taudul
|
a0814a2e5c
|
Correctly calculate discontinuous frames time.
|
2019-09-07 17:39:39 +02:00 |
|
Bartosz Taudul
|
aac0a36a2d
|
Don't use source location zones before they are ready.
|
2019-09-07 17:23:11 +02:00 |
|
Bartosz Taudul
|
3449f0777e
|
Display zone time on frames plot.
|
2019-09-07 16:55:49 +02:00 |
|
Bartosz Taudul
|
0b1a6047f6
|
Add different highlight for zones selected on histogram.
|
2019-09-07 15:33:11 +02:00 |
|
Bartosz Taudul
|
57a2b62edc
|
Display number of threads for pids in CPU data list.
|
2019-09-04 01:43:56 +02:00 |
|
Bartosz Taudul
|
aa2530d442
|
Display external thread name (if applicable) on CPU data timeline.
|
2019-08-31 19:37:05 +02:00 |
|
Bartosz Taudul
|
86cb477811
|
Pack ZoneThreadData.
This reduces struct size from 10 to 8 bytes. Assumes 48-bit pointers
(4-level paging)!
Memory savings (MB):
android 2766 -> 2757 (99%)
big 10.29 G -> 9902 (96%)
chicken 2244 -> 2172 (96%)
ctx-android 228 -> 224 (98%)
drl-l-b 1635 -> 1570 (96%)
gn-vulkan 244 -> 240 (98%)
long 5656 -> 5496 (97%)
q3bsp-mt 6043 -> 5784 (95%)
selfprofile 1554 -> 1486 (95%)
|
2019-08-31 00:55:51 +02:00 |
|
Bartosz Taudul
|
3ec534cdf3
|
Prevent "ntdll.dll" from appearing as a thread name.
|
2019-08-30 23:09:07 +02:00 |
|
Bartosz Taudul
|
1c0c6311ec
|
Fix skipping data when loading traces.
|
2019-08-30 01:16:42 +02:00 |
|
Bartosz Taudul
|
217a3781e6
|
Fix possible wrong process name for pid 0.
|
2019-08-30 00:59:54 +02:00 |
|
Bartosz Taudul
|
19f8f9f101
|
Use proper type.
|
2019-08-30 00:56:11 +02:00 |
|
Bartosz Taudul
|
a8d204821e
|
Signed left shift is undefined.
|
2019-08-29 18:42:29 +02:00 |
|