-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (14 loc) · 576 Bytes
/
Makefile
File metadata and controls
17 lines (14 loc) · 576 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SHELL := /bin/bash
ts := $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
.PHONY: build-profile
build-profile:
cd profiling && cargo build --release
# Setup instructions here:
# https://gist.github.com/dlaehnemann/df31787c41bd50c0fe223df07cf6eb89
.PHONY: profile
profile: OUTPUT_PATH = measurements/flame-$(ts).svg
profile: FLAGS=DecodeCar --iterations 1000
profile: build-profile
perf record --call-graph dwarf,16384 -e cpu-clock -F 997 target/release/profiling $(FLAGS)
time perf script | stackcollapse-perf.pl | c++filt | flamegraph.pl > $(OUTPUT_PATH)
@echo "$(OUTPUT_PATH)"