File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,14 @@ COPY ./scenarios/ddprof_go/ .
88
99RUN go build main.go
1010
11+
12+ RUN apt-get update && apt-get install -y \
13+ curl \
14+ xz-utils \
15+ jq \
16+ wget \
17+ && rm -rf /var/lib/apt/lists/*
18+
1119# Install native profiling
1220ARG CACHE_DATE=2023-03-01_09:58:27
1321COPY ./binaries/ /app/binaries/
Original file line number Diff line number Diff line change 1+ # Description
2+
3+ The test aims at checking that we are able to load and capture C allocations.
4+
5+ # Shortcomings
6+
7+ - We are not unwinding through the ASM CGo frame.
8+ - The quantity of allocations is hard to predict considering the Go allocator reserves mmap regions.
Original file line number Diff line number Diff line change 4141 "profile-type" : " alloc-samples" ,
4242 "stack-content" : [
4343 {
44- "regular_expression" : " ; \\ [incomplete \\ ];; runtime\\ .asmcgocall\\ .abi0;cAllocateMemory" ,
44+ "regular_expression" : " .* runtime\\ .asmcgocall\\ .abi0;cAllocateMemory" ,
4545 "percent" : 20 ,
46- "error_margin" : 10 ,
46+ "error_margin" : 40 ,
4747 "labels" : [
4848 {
4949 "key" : " process_id" ,
5656 {
5757 "regular_expression" : " .*;x_cgo_mmap" ,
5858 "percent" : 80 ,
59- "error_margin" : 10 ,
59+ "error_margin" : 40 ,
6060 "labels" : [
6161 {
6262 "key" : " process_id" ,
You can’t perform that action at this time.
0 commit comments