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

yanbin
Posts: 5
Joined: Fri Nov 09, 2018 7:01 am

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

Postby yanbin » Fri Nov 09, 2018 7:13 am

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.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Sat Nov 10, 2018 6:40 am

Hi yanbin,

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

yanbin
Posts: 5
Joined: Fri Nov 09, 2018 7:01 am

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

Postby yanbin » Wed Nov 14, 2018 7:31 am

Thank you ESP_igrr!
Looking forward to this new feature! :)

Malishev
Posts: 9
Joined: Tue Mar 05, 2019 7:35 am

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

Postby Malishev » Tue Mar 05, 2019 7:39 am

Hi. Any update on this? Is the gprof finally supported?

zhivko
Posts: 23
Joined: Tue Dec 01, 2015 12:02 pm

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

Postby zhivko » Fri Mar 15, 2019 7:54 pm

Anything new @igrr on this topic?

vyo2003
Posts: 19
Joined: Fri Dec 22, 2017 8:36 am

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

Postby vyo2003 » Wed Apr 10, 2019 6:56 pm

Any updates on this? Sounds like a neat thing to try out!

chenlijun99
Posts: 5
Joined: Mon Oct 25, 2021 8:37 am

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

Postby chenlijun99 » Tue Jul 19, 2022 8:19 am

I would be also interested in this.

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

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

Postby DrMickeyLauer » Tue Apr 16, 2024 12:41 pm

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?

Who is online

Users browsing this forum: No registered users and 92 guests