jemalloc / jemalloc/jemalloc

prof_backtrace_impl function only catch one function on arm-linux

Open
#2,401 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.2k
Forks
1.6k
Avg merge
4d 8h
Merged PRs (30d)
13

Description

Hi,
I am trying to use jemalloc to check memory leak, but only catch last function.

jeprof ./unwind-test --show_bytes ./jeprof.5417.0.f.heap
Using local file ./unwind-test.
Using local file ./jeprof.5417.0.f.heap.
Welcome to jeprof! For help, type 'help'.
(jeprof) top
Total: 219654385 B
219654385 100.0% 100.0% 219654385 100.0% prof_backtrace_impl

build jemalloc

./configure --with-static-libunwind=/usr/local/lib/libunwind.a --enable-prof --enable-prof-libunwind --disable-prof-gcc --disable-prof-libgcc

config log
config.log

is jemoalloc work well on arm-linux ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing prof_backtrace_impl and the ARM/Linux configuration shown in the issue, including the --enable-prof-libunwind and --with-static-libunwind options. Reproduce the jeprof command with the provided unwind-test and heap profile, then inspect config.log. Done means the profile captures more than the final function and jeprof reports the expected call stack.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.