#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

#56 in #profiler

Download history 289/week @ 2026-03-03 2042/week @ 2026-03-10 1662/week @ 2026-03-17 1389/week @ 2026-03-24 1479/week @ 2026-03-31 1543/week @ 2026-04-07 1521/week @ 2026-04-14 2020/week @ 2026-04-21 1572/week @ 2026-04-28 1659/week @ 2026-05-05 2005/week @ 2026-05-12 1422/week @ 2026-05-19 2811/week @ 2026-05-26 1471/week @ 2026-06-02

7,975 downloads per month
Used in 66 crates (44 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.2–1.9MB
~34K SLoC