www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Profiling with DUB?

reply Dukc <ajieskola gmail.com> writes:
I'm trying to profile my program, built like:

dub build --build=profile

When I run the program, where is the performance profile file 
supposed to appear? I can find nothing new in the program/project 
root directory. This happens regardless whether I compile with 
dmd or ldc2.
Oct 29 2018
next sibling parent reply Guillaume Piolat <spam smam.org> writes:
On Monday, 29 October 2018 at 10:14:23 UTC, Dukc wrote:
 I'm trying to profile my program, built like:

 dub build --build=profile

 When I run the program, where is the performance profile file 
 supposed to appear? I can find nothing new in the 
 program/project root directory. This happens regardless whether 
 I compile with dmd or ldc2.
If you want to use sampling profilers (like the free Intel Amplifier coming with System Studio) you can also use dub build -b release-debug And then check in your profiler.
Nov 01 2018
parent Dukc <ajieskola gmail.com> writes:
On Thursday, 1 November 2018 at 13:59:39 UTC, Guillaume Piolat 
wrote:
 On Monday, 29 October 2018 at 10:14:23 UTC, Dukc wrote:
 I'm trying to profile my program, built like:

 dub build --build=profile

 When I run the program, where is the performance profile file 
 supposed to appear? I can find nothing new in the 
 program/project root directory. This happens regardless 
 whether I compile with dmd or ldc2.
If you want to use sampling profilers (like the free Intel Amplifier coming with System Studio) you can also use
No, I want to use the default profiler.
 And then check in your profiler.
How? That's the question. If the program is compiled with a profiling switch, isn't the performance profile supposed to appear on program directry after it finishes, when running it just like normal?
Nov 05 2018
prev sibling parent Dukc <ajieskola gmail.com> writes:
On Monday, 29 October 2018 at 10:14:23 UTC, Dukc wrote:
 When I run the program, where is the performance profile file 
 supposed to appear? I can find nothing new in the 
 program/project root directory.
The same thing happens when I try to get a coverage report: No file appears.
Nov 06 2018