Skip to content

perf-record --call-graph support (x64-only)#1397

Merged
tanyongkiam merged 19 commits into
masterfrom
perf-call-graph
May 22, 2026
Merged

perf-record --call-graph support (x64-only)#1397
tanyongkiam merged 19 commits into
masterfrom
perf-call-graph

Conversation

@dnezam
Copy link
Copy Markdown
Contributor

@dnezam dnezam commented May 22, 2026

Passing --perf_callgraph=T to the CakeML compiler (x64-only) generates an unverified binary that can be profiled with perf record --call-graph fp.
The in-logic compiler uses the default config in x64_config.
Thus, to profile binaries such as checkers, the Dafny compiler, the Scheme compiler, etc., it is necessary to set perf_calls:=T in the configuration ultimately used by the compiler.

dnezam added 18 commits May 16, 2026 21:32
Assisted-by: Claude:claude-opus-4-7
Assisted-by: Claude:claude-opus-4-7
Assisted-by: Claude:claude-opus-4-7
- swapped rsp and rbp numbers
- add bitmap for GC

Hopefully no more segfaults :)

Assisted-by: Claude:claude-opus-4-7
Some of them started to leak into backendProof which I wasn't a fan of.
Some cheats, which I suspect have to do with showing that perf_call stays F. It
also bets on comp_no_shmemop and compile_word_to_stack_no_share_inst not needing
perf = F.
- comp_no_shmemop
- compile_word_to_stack_no_share_inst
Assisted-by: Claude:claude-opus-4-7
Assisted-by: Claude:claude-opus-4-7
- Reducing diffs
- Adjusting comments
@dnezam dnezam requested a review from myreen May 22, 2026 01:01
Thanks to @tanyongkiam for pointing it out
Copy link
Copy Markdown
Contributor

@myreen myreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@tanyongkiam tanyongkiam merged commit d9d57bf into master May 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants