#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

#6 in Profiling

Download history 1011/week @ 2018-12-04 1360/week @ 2018-12-11 1204/week @ 2018-12-18 500/week @ 2018-12-25 920/week @ 2019-01-01 1074/week @ 2019-01-08 838/week @ 2019-01-15 720/week @ 2019-01-22 768/week @ 2019-01-29 625/week @ 2019-02-05 875/week @ 2019-02-12 627/week @ 2019-02-19 822/week @ 2019-02-26 759/week @ 2019-03-05 721/week @ 2019-03-12

4,649 downloads per month
Used in 17 crates (16 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

~1.5MB
~25K SLoC