Skip to content

Instantly share code, notes, and snippets.

View VendettaReborn's full-sized avatar

V VendettaReborn

View GitHub Profile
@VendettaReborn
VendettaReborn / shadow-tls-bootstrap.sh
Last active November 27, 2024 04:52
shadow-tls install script(ubuntu/centos/arch)
#! /bin/bash
red='\033[0;31m'
yellow='\033[1;33m'
blue='\033[0;34m'
green='\033[0;32m'
NC='\033[0m' # No Color
function echo_color()
{
@HenningTimm
HenningTimm / rust_mem_profiling.md
Last active August 27, 2024 11:23
Memory profiling Rust code with heaptrack in 2019
@KodrAus
KodrAus / Profile Rust on Linux.md
Last active August 12, 2024 12:37
Profiling Rust Applications

Profiling performance

Using perf:

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

NOTE: See @GabrielMajeri's comments below about the -g option.