Frame profiler
Go to file
2018-08-17 18:08:47 +02:00
capture Fix capture utility. 2018-08-04 23:53:21 +02:00
client Add possibility to explicitly avoid logging 2018-08-13 14:47:52 +02:00
common Add support for discontinuous frames. 2018-08-05 02:15:54 +02:00
doc Update profiler screenshot. 2017-11-12 00:53:19 +01:00
extra X11 colors conversion program. 2018-07-04 18:26:57 +02:00
imgui Update imgui to 1.61. 2018-05-22 20:49:05 +02:00
imguicolortextedit Always scroll source to selected line. 2018-08-17 15:28:56 +02:00
manual Document that extended font now includes icons. 2018-08-17 18:08:47 +02:00
nfd Workaround in nfd_win.cpp for MSVC problem in combaseapi.h. 2018-08-01 14:44:39 +02:00
profiler Merge font awesome into the default font. 2018-08-17 17:56:55 +02:00
server Use exclamation icon instead of ascii representation. 2018-08-17 17:57:13 +02:00
test Static initialization order test. 2018-08-13 12:13:28 +02:00
update Display trace update summary. 2018-07-29 15:37:45 +02:00
.appveyor.yml Rename "standalone" to "profiler". 2018-08-07 22:26:37 +02:00
.gitignore Initial draft of the user manual. 2018-08-01 23:45:40 +02:00
AUTHORS Update AUTHORS, NEWS. 2018-08-01 19:26:10 +02:00
FAQ.md Mention on-demand mode in FAQ. 2018-07-12 13:32:49 +02:00
LICENSE Add better version of tl;dr license. 2018-08-17 14:23:49 +02:00
NEWS Update NEWS. 2018-08-17 17:05:32 +02:00
README.md Remove usage instructions from README, redirect to user manual. 2018-08-02 22:57:37 +02:00
Tracy.hpp Reduce the amount of macros, add docs 2018-08-13 18:32:27 +02:00
TracyClient.cpp Fixed compiler warnings. 2018-08-01 14:07:30 +02:00
TracyClientDLL.cpp Support for multi-DLL projects. 2018-07-31 12:06:04 +02:00
TracyLua.hpp Fix lua zone state init. 2018-07-13 20:21:50 +02:00
TracyOpenGL.hpp Rename client's SourceLocation to SourceLocationData. 2018-07-28 00:34:04 +02:00
TracyVulkan.hpp Rename client's SourceLocation to SourceLocationData. 2018-07-28 00:34:04 +02:00

Tracy Profiler

Build status

Tracy is a real time, nanosecond resolution frame profiler that can be used for remote or embedded telemetry of your application. It can profile CPU (C++, Lua), GPU (OpenGL, Vulkan) and memory. It also can display locks held by threads and their interactions with each other.

Tracy requires compiler support for C++11, Thread Local Storage and a way to workaround static initialization order fiasco. There are no other requirements. The following platforms are confirmed to be working (this is not a complete list):

  • Windows (x86, x64)
  • Linux (x86, x64, ARM, ARM64)
  • Android (ARM, x86)
  • FreeBSD (x64)
  • Cygwin (x64)
  • WSL (x64)
  • OSX (x64)

The following compilers are supported:

  • MSVC
  • gcc
  • clang

Introduction to Tracy Profiler v0.2
New features in Tracy Profiler v0.3

A quick FAQ.
List of changes.

High-level overview

Tracy is split into client and server side. The client side collects events using a high-efficiency queue and awaits for an incoming connection. The server part connects to client and receives collected data from the client, which is then reconstructed into a viewable timeline. The transfer is performed using a TCP connection.

Performance impact

To check how much slowdown is introduced by using Tracy, I have profiled etcpak, which is the fastest ETC texture compression utility there is. I used an 8192×8192 test image as input data and instrumented everything down to the 4×4 pixel block compression function (that's 4 million blocks to compress). It should be noted that Tracy needs to calibrate its internal timers at each run. This introduces a delay of 115 ms (on my machine), which is negligible when doing lengthy profiling runs, but it skews the results of etcpak timing. The following times have this delay subtracted, to give focus on zone collection impact, which is the thing that really matters here.

Scenario Zones Clean run Profiling run Difference
Compression of an image to ETC1 format 4194568 0.94 s 1.003 s +0.063 s
Compression of an image to ETC2 format, with mip-maps 5592822 1.034 s 1.119 s +0.085 s

In both scenarios the per-zone time cost is at ~15 ns. This is in line with the measured 8 ns single event collection time (each zone has to report start and end event).

Usage instructions

The user manual for Tracy is available at the following address. It provides information about the integration process, required code markup and so on.

Features

Marking locks

Plotting data

Message log

Approximation of capture cost