1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00
Commit Graph

619 Commits

Author SHA1 Message Date
Bartosz Taudul 1c5d90c98a Require attention after load / connect. 2022-10-13 20:47:02 +02:00
Bartosz Taudul 8dec765f5f Require attention on failure popups. 2022-10-13 20:39:43 +02:00
Bartosz Taudul 94fd3b664e Add attention callback helper. 2022-10-13 20:36:54 +02:00
Bartosz Taudul 0a7ae94fcb View::Draw() is no longer static. 2022-10-13 19:50:35 +02:00
Bartosz Taudul c89c4f46ea Hook up attention callback. 2022-10-13 19:31:47 +02:00
Bartosz Taudul 575f627136 All View ctor parameters need to be explicitly stated. 2022-10-13 19:30:15 +02:00
Bartosz Taudul c0c3b58955 Remove dead code. 2022-10-13 19:25:36 +02:00
Bartosz Taudul 8117d7d4d4 Mark activity when buzz anim is enabled. 2022-09-28 01:12:04 +02:00
Bartosz Taudul a8276c41c3 Allow checking whether View was active.
Currently this only checks if client connection is active.
2022-09-27 22:31:53 +02:00
Bartosz Taudul 44efb15df1 Remove VisData.
Its functionality is now incorporated into TimelineItem. For purposes of
maintaining visibility of frame sets and locks a much simpler ptr -> bool map
is now used.
2022-09-04 14:46:51 +02:00
Bartosz Taudul ad2fc03125 Migrate CPU data to timeline item system. 2022-09-04 14:31:02 +02:00
Bartosz Taudul 827b390e34 Add mutable ViewData accessor. 2022-09-04 14:31:01 +02:00
Bartosz Taudul 60579d6334 Migrate drawing GPU data to the new timeline item system. 2022-09-04 13:39:20 +02:00
Bartosz Taudul ec3e88ce53 Manage GPU index counter in View. 2022-09-04 13:37:19 +02:00
Bartosz Taudul ec3dcaeef3 Migrate drawing CPU threads to the new timeline item system. 2022-09-03 23:28:54 +02:00
Bartosz Taudul 0e94ed8fc6 DrawContents reports if anything was drawn. 2022-09-03 21:41:38 +02:00
Bartosz Taudul 0c4ca4cd69 Add function for highlighting a thread. 2022-09-03 19:25:02 +02:00
Bartosz Taudul b481bb367c Switch plot drawing to the timeline items system. 2022-09-03 17:51:33 +02:00
Bartosz Taudul 427dc4fffa Make View::ZoomToRange() public. 2022-09-03 17:51:26 +02:00
Bartosz Taudul c2d527e2e7 Cosmetics. 2022-08-28 13:17:29 +02:00
Bartosz Taudul 74789d1049 Merge pull request #446 from simplyWiri/master
Add WASD panning/zooming functionality to timeline.
2022-08-28 13:13:21 +02:00
simplyWiri d2e3856724 Add WASD panning/zooming functionality to timeline. 2022-08-22 17:23:57 +10:00
Bartosz Taudul 655d8a01ea Move vis data to timeline controller. 2022-08-20 17:02:29 +02:00
Bartosz Taudul 4d974da290 Add shorten name accessor. 2022-08-15 21:21:50 +02:00
Bartosz Taudul 8531ef6591 Extract ShortenZoneName() function to a separate file. 2022-08-15 16:34:37 +02:00
Bartosz Taudul 07a1383304 Expose zone name normalization as a separate setting. 2022-08-15 16:24:44 +02:00
Bartosz Taudul 47a2512957 Change namespace shortening to zone name shortening.
Namespace shortening was kinda ok for function names produced by MSVC, which
are generally clean looking. However, gcc/clang like to produce function names
which include template arguments, function parameters, return values, etc. In
such cases the old algorithm simply didn't work, because removal of everything
before the last :: could as well happen in midst of function parameters list.
The result was certainly not an usable function name.

With this new approach namespaces are no longer explicitly mentioned and this
functionality is simply called zone name shortening.

The user-selectable options were changed to make the shortening always
enabled, disabled, or to apply as needed. Note that the "as needed" approach
will be dynamic, trying to gradually remove more and more from the name, until
it fits in the requested area.

Current implementation is only the first step into making this work. In this
first step the function parameters are reduced to () and the template
arguments are reduced to <>. This alone greatly improves readability of the
zone names.

The option to reduce namespaces to one letter (i.e. std::tr1::hash would
become s:t:hash) will no longer be present, now or in the future.
2022-08-15 14:19:57 +02:00
Bartosz Taudul c01ad38d46 Start extracting timeline height control logic. 2022-08-15 13:29:45 +02:00
Bartosz Taudul 7dbfed9aea Drop access to native window.
The new NFD library is not using this information, and the old one was using
it only on Windows. Oh well.

Removal of this functionality also removes some build-time decisions.
2022-08-12 21:44:24 +02:00
Bartosz Taudul b19f9e1f4d Use common functionality to get frame set name. 2022-07-30 19:32:25 +02:00
Bartosz Taudul 27a98a3cc2 Make user plot color depend on its name. 2022-07-24 01:26:20 +02:00
Bartosz Taudul f7598d2431 Implement direct children search. 2022-07-23 13:31:41 +02:00
Bartosz Taudul 57f03dfe9a Implement children messages filtering in zone tooltip. 2022-07-23 13:19:30 +02:00
Bartosz Taudul edad2d7e35 Monitor send queue size. 2022-07-03 14:52:18 +02:00
Bartosz Taudul 2331ee04d2 Cleanup TracyView includes. 2022-07-02 17:00:08 +02:00
Bartosz Taudul d9ce848bb0 Also extract (and rename) timeline mouse handling. 2022-07-02 15:42:01 +02:00
Bartosz Taudul 9fb618c12d Rename DrawZone* -> DrawTimeline*. 2022-07-02 15:38:10 +02:00
Bartosz Taudul 0d41a6c48b Move DrawHistogramMinMaxLabel() to TracyImGui.cpp. 2022-07-02 15:27:08 +02:00
Bartosz Taudul c427214f46 Move DrawHelpMarker to TracyImGui.hpp. 2022-07-02 15:07:40 +02:00
Bartosz Taudul f3fe8b27e8 Extract plot drawing from View. 2022-07-02 14:36:54 +02:00
Bartosz Taudul c9f77ee5fa Move zone info UI out of View. 2022-07-02 13:37:04 +02:00
Bartosz Taudul b602d61944 Extract options UI from View. 2022-07-02 13:23:52 +02:00
Bartosz Taudul d19b337573 Split View navigation functions. 2022-07-02 13:16:06 +02:00
Bartosz Taudul 2473760c04 Extract Find Zone UI to a separate file. 2022-07-02 13:12:29 +02:00
thedmd 9ed9e18bc8 Add ability to filter callstacks in memory tab by inactive allocations.
Filtering by inactive allocations helps to pin point wasteful allocations
in an app.
2022-06-06 06:45:35 +02:00
Bartosz Taudul 1e762c246a Don't show callstack column in messages, if no callstacks. 2022-04-18 15:06:23 +02:00
Bartosz Taudul f17a579753 Move adding annotations to a separate function. 2022-03-15 17:25:28 +01:00
Bartosz Taudul f4043d9bb8 Display GPU zone statistics. 2022-01-29 15:35:25 +01:00
Bartosz Taudul 563daed10f Add bottom/top tree to callstack parents. 2021-12-31 15:01:06 +01:00
Bartosz Taudul 04f045b22b Replace "restrict time" with time range limits in memory. 2021-11-29 19:20:56 +01:00