Page 1 of 1

Is it possible to do profiling (gprof) on ESP32?

Posted: Fri Nov 09, 2018 7:13 am
by yanbin
Hi,
Now I am working on ESP32 and want to do know which function used much CPU time.
When use -pg to compile project, the xtensa toolchain said: undefined reference to `_mcount'.
How can I know which function used much CPU time?
Thanks.

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Sat Nov 10, 2018 6:40 am
by ESP_igrr
Hi yanbin,

Gprof support is in review at the moment, and should appear in master next week or so.

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Wed Nov 14, 2018 7:31 am
by yanbin
Thank you ESP_igrr!
Looking forward to this new feature! :)

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Tue Mar 05, 2019 7:39 am
by Malishev
Hi. Any update on this? Is the gprof finally supported?

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Fri Mar 15, 2019 7:54 pm
by zhivko
Anything new @igrr on this topic?

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Wed Apr 10, 2019 6:56 pm
by vyo2003
Any updates on this? Sounds like a neat thing to try out!

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Tue Jul 19, 2022 8:19 am
by chenlijun99
I would be also interested in this.

Re: Is it possible to do profiling (gprof) on ESP32?

Posted: Tue Apr 16, 2024 12:41 pm
by DrMickeyLauer
Resurrecting this old thread… it seems it's available these days via https://components.espressif.com/compon ... ssif/gprof ­-- any experiences with doing it that way? Were the results expected / accurate?