#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

#2 in Profiling

Download history 644/week @ 2018-06-14 701/week @ 2018-06-21 954/week @ 2018-06-28 877/week @ 2018-07-05 898/week @ 2018-07-12 1048/week @ 2018-07-19 652/week @ 2018-07-26 926/week @ 2018-08-02 1028/week @ 2018-08-09 882/week @ 2018-08-16 1033/week @ 2018-08-23 1187/week @ 2018-08-30 1204/week @ 2018-09-06

4,649 downloads per month
Used in 14 crates

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

~1.5MB
~24K SLoC