tracy/server
Bartosz Taudul f428a5b52b
Fix popup of collapsed items near timeline start.
There are various changes involved into making this work:

1. Zone size (zsz) is no longer clamped to the timeline viewport area.
   This clamping has to be removed to prevent otherwise uncollapsed zones
   from apparently becoming small near the viewport borders. Such a small
   zone would then be collapsed, resulting in unwanted popping.
   Interesingly, only the CPU zones were clamped before. GPU zones were
   not.
2. Iteration over visible zones has to start before the visible timeline
   viewport area. Without this some zones that would be otherwise
   included in the collapsed area (started by a previous zone) may be
   fully visible. This causes child zones to be drawn and produces
   unwanted popping. (At this point threshold for continuing collapsed
   area is greater than threshold for starting it.)
3. Since the iteration now starts before timeline visible area, it may so
   happen that everything found will be in a small slice of timeline that
   is outside the screen. To fix this, the end time of last found item is
   checked against the viewport start time.
   It is always valid to access *(zitend-1), as it is in each case done
   after null set check (it == zitend).

Similar but simpler fix was also applied to per-thread call stack samples.
2023-03-09 00:38:23 +01:00
..
IconsFontAwesome6.h Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
tracy_pdqsort.h Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
tracy_robin_hood.h Drop support for old, broken compilers. 2022-09-29 20:59:31 +02:00
tracy_xxhash.h Update xxHash to 0.8.1. 2021-12-01 21:52:31 +01:00
TracyBadVersion.cpp Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
TracyBadVersion.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracyBuzzAnim.hpp BuzzAnim Update() returns whether it's active. 2022-09-28 01:12:03 +02:00
TracyCharUtil.hpp Update xxHash to 0.8.1. 2021-12-01 21:52:31 +01:00
TracyColor.cpp Move HSV color conversion to a separate source file. 2020-04-02 01:04:59 +02:00
TracyColor.hpp Color plot background. 2022-07-24 01:39:51 +02:00
TracyDecayValue.hpp Move DarkenColor() to a proper source file. 2022-07-24 01:29:52 +02:00
TracyEvent.hpp Switch plot drawing to the timeline items system. 2022-09-03 17:51:33 +02:00
TracyEventDebug.cpp Remove CodeLocation query and CodeInformation response. 2022-10-11 22:56:23 +02:00
TracyEventDebug.hpp Add event debug routine. 2021-11-04 22:30:16 +01:00
TracyFileHeader.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracyFileRead.hpp Implement reading 10 elements at once. 2022-07-24 13:40:06 +02:00
TracyFileselector.cpp Pressing cancel is not an error. 2022-10-30 00:44:30 +02:00
TracyFileselector.hpp Expose internal file selector failure state. 2022-10-30 00:36:07 +02:00
TracyFilesystem.cpp Don't depend on View in Worker. 2020-05-23 15:53:58 +02:00
TracyFilesystem.hpp Don't depend on View in Worker. 2020-05-23 15:53:58 +02:00
TracyFileWrite.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracyImGui.cpp Activity tracking global variable. 2022-09-28 00:36:00 +02:00
TracyImGui.hpp Mark activity when waiting dots are drawn. 2022-09-28 00:36:01 +02:00
TracyMemory.cpp Don't care about memory usage tracking data races. 2019-11-10 19:21:24 +01:00
TracyMemory.hpp Don't care about memory usage tracking data races. 2019-11-10 19:21:24 +01:00
TracyMicroArchitecture.cpp Update to official uops.info ZEN4 data. 2022-11-29 17:03:29 +01:00
TracyMicroArchitecture.hpp Add missing op description list definition. 2020-11-07 00:15:58 +01:00
TracyMmap.cpp Drop support for Cygwin. 2021-10-07 23:28:40 +02:00
TracyMmap.hpp Drop support for Cygwin. 2021-10-07 23:28:40 +02:00
TracyMouse.cpp Update TracyMouse.cpp 2021-05-17 12:07:06 +02:00
TracyMouse.hpp Do not use relative include path for ImGUI.h 2021-05-17 12:05:14 +02:00
TracyPopcnt.hpp Add common lzcnt implementation. 2021-06-09 20:29:43 +02:00
TracyPrint.cpp Fix time rounding logic. 2022-08-28 14:50:38 +02:00
TracyPrint.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracyProtoHistory.cpp Release 0.9.1. 2023-02-26 15:30:03 +01:00
TracyProtoHistory.hpp Add protocol -> version mapping table. 2022-07-13 00:44:02 +02:00
TracyShortPtr.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracySlab.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracySort.hpp No parallel execution on emscripten. 2022-08-08 18:41:06 +02:00
TracySortedVector.hpp Using push/pop in all pragma pack pair to avoid potential padding bugs 2022-08-03 18:39:42 +08:00
TracySourceContents.cpp Move source file parsing logic to a separate file. 2021-03-26 02:42:14 +01:00
TracySourceContents.hpp build with gcc 11 2021-05-20 17:30:54 +02:00
TracySourceTokenizer.cpp Make the ARM registers list more complete. 2022-09-17 23:31:42 +02:00
TracySourceTokenizer.hpp Dummy tokenization of asm operands. 2022-09-16 00:30:29 +02:00
TracySourceView.cpp Line stats may not exist, even if the line has attributed cost. 2023-03-01 19:28:58 +01:00
TracySourceView.hpp Remove support for AT&T assembly syntax. 2023-02-10 20:41:03 +01:00
TracyStorage.cpp Fix edge case in directory structure creation. 2020-06-19 17:17:26 +02:00
TracyStorage.hpp Trace-specific save path retrieval. 2019-07-26 23:15:12 +02:00
TracyStringDiscovery.hpp Allow external data insertion into string discovery vectors. 2022-07-30 18:35:50 +02:00
TracyTaskDispatch.cpp Add task dispatcher to server. 2019-09-20 22:58:12 +02:00
TracyTaskDispatch.hpp Add task dispatcher to server. 2019-09-20 22:58:12 +02:00
TracyTexture.cpp Add software S3TC decoder. 2022-10-15 13:06:08 +02:00
TracyTexture.hpp Detect if hardware supports S3TC. 2022-10-15 12:56:19 +02:00
TracyTextureCompression.cpp Use zstd dict for packing/unpacking frame images. 2021-05-15 18:06:44 +02:00
TracyTextureCompression.hpp Add missing includes. 2022-04-26 22:01:09 +02:00
TracyThreadCompress.cpp Drop legacy code for reading long unsupported traces. 2021-05-18 02:24:56 +02:00
TracyThreadCompress.hpp Move all client headers and sources to public/ directory. 2022-07-17 15:47:38 +02:00
TracyTimelineController.cpp More correct shouldUpdateCenterItem. 2023-01-31 20:35:17 +01:00
TracyTimelineController.hpp Centering around the mouse pointer. 2023-01-29 19:20:26 +01:00
TracyTimelineItem.cpp Add key to TimelineItem. 2023-01-27 20:00:05 +01:00
TracyTimelineItem.hpp Add key to TimelineItem. 2023-01-27 20:00:05 +01:00
TracyTimelineItemCpuData.cpp Add key to TimelineItem. 2023-01-27 20:00:05 +01:00
TracyTimelineItemCpuData.hpp Add key to TimelineItem. 2023-01-27 20:00:05 +01:00
TracyTimelineItemGpu.cpp Add key to TimelineItem. 2023-01-27 20:00:05 +01:00
TracyTimelineItemGpu.hpp Add GPU index accessor. 2022-09-04 13:52:17 +02:00
TracyTimelineItemPlot.cpp Calculate plot timeline taking active time span into account. 2023-03-03 22:36:04 +01:00
TracyTimelineItemPlot.hpp Limit access to internal methods. 2022-09-03 23:17:57 +02:00
TracyTimelineItemThread.cpp Include first time in CPU thread lifetime calculation. 2023-03-03 22:46:25 +01:00
TracyTimelineItemThread.hpp Migrate drawing CPU threads to the new timeline item system. 2022-09-03 23:28:54 +02:00
TracyUserData.cpp Cosmetics. 2023-01-03 13:56:56 +01:00
TracyUserData.hpp Save/load source substitutions. 2020-04-18 14:25:04 +02:00
TracyUtility.cpp Add non-View-dependent thread color getter. 2022-09-03 19:28:50 +02:00
TracyUtility.hpp Add non-View-dependent thread color getter. 2022-09-03 19:28:50 +02:00
TracyVarArray.hpp Using push/pop in all pragma pack pair to avoid potential padding bugs 2022-08-03 18:39:42 +08:00
TracyVector.hpp Using push/pop in all pragma pack pair to avoid potential padding bugs 2022-08-03 18:39:42 +08:00
TracyView_Annotations.cpp Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
TracyView_Callstack.cpp Remove unused variable. 2022-09-29 21:02:05 +02:00
TracyView_Compare.cpp Show diff direction and allow reversal. 2022-12-30 20:33:17 +01:00
TracyView_ConnectionState.cpp Change file selector to work with callbacks. 2022-10-06 18:12:50 +02:00
TracyView_ContextSwitch.cpp Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
TracyView_CpuData.cpp Calculate CPU data percentages relative to active time span. 2023-03-03 22:18:08 +01:00
TracyView_FindZone.cpp Fix out-of-bounds reference. 2023-02-24 23:06:12 +01:00
TracyView_FrameOverview.cpp Only retrieve frame offset internally in GetFrameNumber(). 2023-03-04 00:32:15 +01:00
TracyView_FrameTimeline.cpp Don't pass GetFrameOffset() results to GetFrameText(). 2023-03-04 00:29:00 +01:00
TracyView_FrameTree.cpp Normalize frame names in memory callstack tree. 2022-08-15 21:29:21 +02:00
TracyView_GpuTimeline.cpp Fix popup of collapsed items near timeline start. 2023-03-09 00:38:23 +01:00
TracyView_Locks.cpp Mark activity when lock is highlighting. 2022-09-28 01:12:05 +02:00
TracyView_Memory.cpp Use fixed-width font to draw addresses. 2023-01-05 22:20:56 +01:00
TracyView_Messages.cpp Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
TracyView_Navigation.cpp More navigation extraction. 2022-07-02 13:43:46 +02:00
TracyView_NotificationArea.cpp Remove VisData. 2022-09-04 14:46:51 +02:00
TracyView_Options.cpp Update imgui to f87e891f. 2022-10-14 19:48:38 +02:00
TracyView_Playback.cpp Only retrieve frame offset internally in GetFrameNumber(). 2023-03-04 00:32:15 +01:00
TracyView_Plots.cpp Check if plot is in drawing range. 2022-09-03 21:46:00 +02:00
TracyView_Ranges.cpp Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
TracyView_Samples.cpp Fix popup of collapsed items near timeline start. 2023-03-09 00:38:23 +01:00
TracyView_Statistics.cpp Calculate statistics percentages relative to active time span. 2023-03-03 22:19:43 +01:00
TracyView_Timeline.cpp Dim timeline before first time. 2023-03-03 22:25:07 +01:00
TracyView_TraceInfo.cpp Remove codeAddressToLocation map. 2022-10-12 00:13:07 +02:00
TracyView_Utility.cpp Only retrieve frame offset internally in GetFrameNumber(). 2023-03-04 00:32:15 +01:00
TracyView_ZoneInfo.cpp Fix: Don't let make_unique initialise data unnecessarily 2023-01-03 13:09:26 +01:00
TracyView_ZoneTimeline.cpp Fix popup of collapsed items near timeline start. 2023-03-09 00:38:23 +01:00
TracyView.cpp Make view mode heuristic work correctly in on demand mode. 2023-03-04 00:37:38 +01:00
TracyView.hpp Only retrieve frame offset internally in GetFrameNumber(). 2023-03-04 00:32:15 +01:00
TracyViewData.hpp Start extracting timeline height control logic. 2022-08-15 13:29:45 +02:00
TracyWeb.cpp Support opening web pages on emscripten. 2022-10-05 01:22:35 +02:00
TracyWeb.hpp Move OpenWebpage() to a separate source file. 2021-06-04 15:17:14 +02:00
TracyWorker.cpp Use on demand flag in GetFirstTime(). 2023-03-04 00:33:52 +01:00
TracyWorker.hpp Add on demand mode flag accessor. 2023-03-04 00:19:58 +01:00