-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflamegraph.json
More file actions
27 lines (27 loc) · 1.44 KB
/
Copy pathflamegraph.json
File metadata and controls
27 lines (27 loc) · 1.44 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
{
"Content-Type" : "image/svg+xml",
"Method" : "GET",
"Query": "api.pmccabe_collector.restapi.org/cyclomatic_complexity/statistic/view/flamegraph",
"Params": {
"view" : {
"statistic" : {
"watch_list" : {
"-regex": "\".*\\.\\(hpp\\|cpp\\|c\\|h\\)\"",
"-prune": "! -path \"*buil*\" ! -path \"*thirdpart*\""
},
"-mmcc" : "1,",
"-tmcc" : "1,",
"-sif" : "1,",
"-lif" : "1,"
},
"-attr" : "mmcc,tmcc,sif,lif"
},
"--width": "1200",
"--height" : "16"
},
"Description": {
"header": "Generates visual representation of various cyclomatic compexity metrics of the project in the flamegraph format.\nFor more information about flamegraph, please refer https://github.com/brendangregg/FlameGraph#3-flamegraphpl",
"body": "To make a query:\n\n`echo \"0\" > api.pmccabe_collector.restapi.org/cyclomatic_complexity/statistic/view/flamegraph/GET/exec`\n\nTo wait and extract the query result:\n\n`cat api.pmccabe_collector.restapi.org/cyclomatic_complexity/statistic/view/flamegraph/GET/result.svg > <your_filename>.svg`\n\n",
"footer": "Please pay attention that a flamegraph collected in `*.svg` format is interactive in exploration. To leverage that navigation through a call stack please open this file in any web-browser."
}
}