Can I display how long the build task takes in vscode extension?

policeman0077
Posts: 11
Joined: Mon Jul 16, 2018 8:52 pm

Can I display how long the build task takes in vscode extension?

Postby policeman0077 » Fri Aug 18, 2023 9:38 am

Is there a way to display how long the compilation took?
One way I could thinks about is use idf.preBuildTask and idf.postBuildTask to record start and end time. Is there better way? Or idf.py already have build-in functions I didn't found
thanks.

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Can I display how long the build task takes in vscode extension?

Postby ESP_bignacio » Wed Oct 11, 2023 12:47 pm

Maybe you can try to use some additional option of ninja-build. In your <project-dir>/.vscode/settings.json add:

"idf.ninjaArgs": ["-d stats"]

policeman0077
Posts: 11
Joined: Mon Jul 16, 2018 8:52 pm

Re: Can I display how long the build task takes in vscode extension?

Postby policeman0077 » Tue Jan 30, 2024 5:51 pm

I'll try thank you for your advice

Who is online

Users browsing this forum: Bing [Bot] and 37 guests