#profiler #trace

thread_profiler

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

5 unstable releases

Uses old Rust 2015

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

#313 in Profiling

Download history 2037/week @ 2023-01-25 2093/week @ 2023-02-01 1721/week @ 2023-02-08 1913/week @ 2023-02-15 1878/week @ 2023-02-22 1758/week @ 2023-03-01 1972/week @ 2023-03-08 1782/week @ 2023-03-15 1815/week @ 2023-03-22 1565/week @ 2023-03-29 1147/week @ 2023-04-05 1265/week @ 2023-04-12 1338/week @ 2023-04-19 1475/week @ 2023-04-26 1309/week @ 2023-05-03 1789/week @ 2023-05-10

6,180 downloads per month
Used in fewer than 44 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–1.3MB
~26K SLoC