Skip to content

Instantly share code, notes, and snippets.

View indiv0's full-sized avatar

Nikita Pekin indiv0

View GitHub Profile
@indiv0
indiv0 / index.html
Last active October 3, 2019 18:50 — forked from spiermar/index.html
d3-flame-graph
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/gh/spiermar/[email protected]/dist/d3.flameGraph.min.css"
integrity="sha256-w762vSe6WGrkVZ7gEOpnn2Y+FSmAGlX77jYj7nhuCyY="
crossorigin="anonymous"
/>
</head>
@indiv0
indiv0 / Profile Rust on Linux.md
Created November 23, 2017 14:32 — forked from KodrAus/Profile Rust on Linux.md
Profiling Rust Applications

Profiling performance

Using perf:

$ perf record -g binary
$ perf script | stackcollapse-perf.pl | rust-unmangle | flamegraph.pl > flame.svg

This requires you have flamegraph available in your path. The rust-unmangle script is optional but nice.