File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 43
43
"inherits" : [" ci-ubuntu" ],
44
44
"cacheVariables" : {
45
45
}
46
+ },
47
+ {
48
+ "name" : " perf-analysis" ,
49
+ "displayName" : " Performance Analysis Build" ,
50
+ "description" : " Release build with perf support for performance analysis" ,
51
+ "binaryDir" : " ${sourceDir}/build/perf-analysis" ,
52
+ "inherits" : [" ci-sanitize" ],
53
+ "cacheVariables" : {
54
+ }
46
55
}
47
56
],
48
57
"buildPresets" : [
70
79
"name" : " ci-linux-local" ,
71
80
"configurePreset" : " ci-linux-local" ,
72
81
"configuration" : " Debug"
82
+ },
83
+ {
84
+ "name" : " perf-analysis" ,
85
+ "configurePreset" : " perf-analysis" ,
86
+ "configuration" : " Debug"
73
87
}
74
88
],
75
89
"testPresets" : [
Original file line number Diff line number Diff line change 1
1
2
- .PHONY : git_clean cmake_clean debug release sanitize ci-ubuntu
2
+ .PHONY : git_clean cmake_clean debug release sanitize ci-ubuntu perf
3
3
4
4
all : debug
5
5
@@ -39,3 +39,11 @@ ci-ubuntu:
39
39
cmake --preset=ci-linux-local
40
40
cmake --build --preset=ci-linux-local
41
41
ln -sf build/ci-linux-local/compile_commands.json .
42
+
43
+ perf :
44
+ cmake --preset=perf-analysis
45
+ cmake --build --preset=perf-analysis
46
+ ln -sf build/perf-analysis/compile_commands.json .
47
+ @echo " Build complete. To run perf analysis, use:"
48
+ @echo " perf record -g ./build/perf-analysis/your_application"
49
+ @echo " perf report"
You can’t perform that action at this time.
0 commit comments