Todas as lições · Developer tooling · Começa aqui · Glossário
Profile spawned scripts with the right ELF symbolsPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
In ckb-debugger full mode with spawn, coverage, flamegraph and overlap analysis now use the ELF of the VM chosen with --vm-id instead of the root program. Pass an unstripped binary with --vm-symbols to get symbols and debug info.
Porque importa: Before this change, full-mode coverage, flamegraph and overlap reports for a spawned child VM were built from the root program's ELF. The child's addresses were resolved against the wrong symbols, so the profile of that script was misleading.
Older ckb-debugger versions profile spawned children with the root program's symbols, so their profiles are wrong.
Padrão
MachineFlamegraph::new(&verifier_program_elf) -> MachineFlamegraph::new(&machine_program_elf or --vm-symbols file)Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- nervosnetwork/ckb-standalone-debugger:
ckb-debugger/tests/test_command.rs
- Conceitos
- Testing and devnet
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-16
- Última mudança
- 2026-11-16
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-11-16 · nervosnetwork/ckb-standalone-debugger · mais deste projeto
Mais sobre Developer tooling
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
- Derive devnet Spore and system script cell deps from a fresh OffCKB export
- Pass wasm bytes to ckb-vm-js createVerifier in Node
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Profile spawned scripts with the right ELF symbols", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/profile-spawned-scripts-with-the-right-elf-symbols, CC BY 4.0, last changed 2026-11-16.