tracy/server
Bartosz Taudul 2e9d8f8215
Check if external threads are local.
For some unknown reason, local threads may be attributed to an external
process (at least when profiling on Windows). This causes some problems,
for example the CPU usage graph may show that CPU is pegged by some other
program, when it reality it is the profiled program that uses the CPU time.

Workaround by checking first, if the thread id is known to be local by the
profiler, i.e. if there were user-generated events originating from it.

This still leaves other things, such as the CPU data list, being wrong,
but the CPU data is meant to show raw TID -> PID mapping. If the source
data is wrong, there's not much to fix here.
2023-04-30 13:55:49 +02: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 Add plot type "power" and Watt format. 2023-03-10 01:25:41 +01: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 Pass function objects through const references. 2023-04-16 16:44:18 +02:00
TracyFileselector.hpp Pass function objects through const references. 2023-04-16 16:44:18 +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 Draw zigzags using bitmaps. 2023-04-27 23:17:35 +02:00
TracyImGui.hpp Draw zigzags using bitmaps. 2023-04-27 23:17:35 +02:00
TracyLockHelpers.hpp Move common lock helper functions to a separate header. 2023-04-15 22:56:43 +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 Allow setting short_ptr pointer. 2023-03-19 15:21:52 +01: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 Pass function objects through const references. 2023-04-16 16:44:18 +02:00
TracyTaskDispatch.cpp Name worker threads. 2023-03-25 22:14:34 +01:00
TracyTaskDispatch.hpp Name worker threads. 2023-03-25 22:14:34 +01:00
TracyTexture.cpp Load custom mip chain for zigzags. 2023-04-29 13:10:58 +02:00
TracyTexture.hpp Load custom mip chain for zigzags. 2023-04-29 13:10:58 +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 ThreadCompress::Load() doesn't need fileVer. 2023-04-16 17:17:07 +02:00
TracyThreadCompress.hpp ThreadCompress::Load() doesn't need fileVer. 2023-04-16 17:17:07 +02:00
TracyTimelineContext.hpp Provide small font height in TimelineContext. 2023-03-25 17:25:10 +01:00
TracyTimelineController.cpp Merge pull request #544 from simplyWiri/timeline-scrolling-tweak 2023-04-13 11:35:08 +02:00
TracyTimelineController.hpp Provide small font height in TimelineContext. 2023-03-25 17:25:10 +01:00
TracyTimelineDraw.hpp Change LockState to bitmask. 2023-04-15 22:56:44 +02:00
TracyTimelineItem.cpp Drawing is not finished until function return. 2023-03-23 22:09:19 +01:00
TracyTimelineItem.hpp Push yPos to TimelineItem::Preprocess(). 2023-04-05 18:07:09 +02:00
TracyTimelineItemCpuData.cpp Another fix for determining if there's CPU usage data to draw. 2023-04-15 22:56:44 +02:00
TracyTimelineItemCpuData.hpp Fix logic determining if there's CPU core usage data to draw. 2023-04-07 22:37:22 +02:00
TracyTimelineItemGpu.cpp Use TimelineContext for drawing GPU zones. 2023-03-19 00:28:14 +01:00
TracyTimelineItemGpu.hpp Move hover flag to TimelineContext. 2023-03-18 16:07:56 +01:00
TracyTimelineItemPlot.cpp Early exit on empty plots. 2023-04-25 00:35:53 +02:00
TracyTimelineItemPlot.hpp Push plot draw list to DrawPlot(). 2023-04-24 23:28:28 +02:00
TracyTimelineItemThread.cpp Don't use hacks to determine end time. 2023-04-28 00:00:20 +02:00
TracyTimelineItemThread.hpp PreprocessLocks() doesn't use yPos. 2023-04-26 00:47:50 +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 plot type "power" and Watt format. 2023-03-10 01:25:41 +01: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 Draw zigzags using bitmaps. 2023-04-27 23:17:35 +02:00
TracyView_CpuData.cpp Take DPI scaling into account when drawing thread migration lines. 2023-04-07 22:37:23 +02: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 GetFrameTreeItemNoGroup() doesn't need worker paramater. 2023-04-16 17:23:19 +02:00
TracyView_GpuTimeline.cpp Don't use delay and resolution when processing GPU zones. 2023-04-26 00:50:13 +02:00
TracyView_Locks.cpp Use draw list data to draw locks. 2023-04-15 22:56:44 +02:00
TracyView_Memory.cpp Remove redundant check. 2023-04-25 00:04:59 +02: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 Move TimelineContext struct definition to a separate header. 2023-03-18 17:03:23 +01: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 Remove missed plot vector sorting during draw. 2023-04-27 17:36:11 +02:00
TracyView_Ranges.cpp Update font awesome and migrate to v6 headers. 2022-08-17 12:07:38 +02:00
TracyView_Samples.cpp Rewrite samples folding. 2023-03-22 23:44: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 HandleTimelineMouse() doesn't need pxns parameter. 2023-04-16 17:36:04 +02:00
TracyView_TraceInfo.cpp Remove codeAddressToLocation map. 2022-10-12 00:13:07 +02:00
TracyView_Utility.cpp Simplify condition. 2023-04-25 00:03:48 +02:00
TracyView_ZoneInfo.cpp No need for GetZoneName() with GpuEvent + srcloc parameters. 2023-04-16 17:46:15 +02:00
TracyView_ZoneTimeline.cpp Remove error indicators for CPU zones. 2023-04-26 00:46:45 +02:00
TracyView.cpp View::InitTextEditor() doesn't need font parameter. 2023-04-16 17:21:03 +02:00
TracyView.hpp Draw plots using preprocessed draw lists. 2023-04-24 23:28:29 +02: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 Check if external threads are local. 2023-04-30 13:55:49 +02:00
TracyWorker.hpp Don't pass memname parameter to functions handling allocation changes. 2023-04-16 18:12:14 +02:00