#profiler #trace

thread_profiler

A thread profiling library that outputs profiles in the chromium trace format

5 unstable releases

0.3.0 Apr 29, 2018
0.2.2 Jan 6, 2018
0.1.3 May 21, 2017
0.1.1 Feb 13, 2017
0.1.0 Feb 9, 2017

#13 in Profiling

Download history 2129/week @ 2019-10-07 2261/week @ 2019-10-14 2383/week @ 2019-10-21 1864/week @ 2019-10-28 1791/week @ 2019-11-04 1804/week @ 2019-11-11 3021/week @ 2019-11-18 1485/week @ 2019-11-25 1411/week @ 2019-12-02 2183/week @ 2019-12-09 1692/week @ 2019-12-16 882/week @ 2019-12-23 1090/week @ 2019-12-30 1683/week @ 2020-01-06 1492/week @ 2020-01-13

8,800 downloads per month
Used in 61 crates (43 directly)

Apache-2.0/MIT

7KB
139 lines

Build Status Documentation

Thread Profiler

This is a simple CPU profiler for WebRender. It can write out the resutls in Trace Event Format.

Read more about the usage and associated tools at https://aras-p.info/blog/2017/01/23/Chrome-Tracing-as-Profiler-Frontend/

Hookup

Call register_thread_with_profiler for each thread.

Call write_profile when you need to save the results.

View results

With Chrome: go to chrome://tracing and click on "Load".

Standalone: check out and compile catapult, then call trace2html.

Dependencies

~0.7–1MB
~23K SLoC