-
Notifications
You must be signed in to change notification settings - Fork 308
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 1.12 KB
/
Makefile
File metadata and controls
31 lines (23 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: all clean linux-perf
all: simple simple-terminates random forks
clean:
rm -f simple simple-terminates random forks
simple: simple.cpp
$(CXX) -Wall -g -o $@ $<
simple-terminates: simple-terminates.cpp
$(CXX) -Wall -g -o $@ $<
forks: forks.cpp
$(CXX) -Wall -g -o $@ $<
random: random.cpp
$(CXX) -Wall -g -o $@ $<
idle: idle.c
$(CC) -Wall -g -pthread -o $@ $<
linux-perf:
docker container prune -f
docker image rm speedscope-ubuntu || true
docker build -t speedscope-ubuntu .
docker run --privileged speedscope-ubuntu /bin/bash perf-script.sh idle > ../../profiles/linux-perf/idle.linux-perf.txt
# docker run --privileged speedscope-ubuntu /bin/bash perf-script.sh forks > ../../profiles/linux-perf/forks.linux-perf.txt
# docker run --privileged speedscope-ubuntu /bin/bash perf-script.sh with-header > ../../profiles/linux-perf/simple-with-header.linux-perf.txt
# docker run --privileged speedscope-ubuntu /bin/bash perf-script.sh with-pid > ../../profiles/linux-perf/simple-with-pid.linux-perf.txt
# docker run --privileged speedscope-ubuntu /bin/bash perf-script.sh > ../../profiles/linux-perf/simple.linux-perf.txt