pprof DLang needs?

zoujiaqing zoujiaqing at gmail.com
Mon Apr 20 10:59:29 UTC 2020


On Monday, 20 April 2020 at 07:49:33 UTC, Jacob Carlborg wrote:
> On 2020-04-20 03:59, zoujiaqing wrote:
>> PHP use xhprof analysis performance
>> Golang use pprof analysis performance
>> Rust use pprof-rs analysis performance
>> D language also needs a tool like this.
>> 
>> [0] https://github.com/google/pprof
>> [1] https://github.com/facebook/xhprof
>> [2] https://docs.rs/pprof/0.3.16/pprof
>
> DMD has the `-profile` flag. D programs should work in 
> profilers for C/C++ as well.

Thanks Jacob, I know `dub build --build=profile`, but many 
projects can't be used.

zoujiaqing at osx:~/projects/hunt-net/examples/echo
> dub build --build=profile                                       
>                                      master [3dbfc4a]
Performing "profile" build using /Library/D/dmd/bin/dmd for 
x86_64.
hunt 1.4.9: building configuration "library"...
/Library/D/dmd/src/phobos/std/concurrency.d(2053,17): Warning: 
statement is not reachable
/Library/D/dmd/bin/dmd failed with exit code 1.


More information about the Digitalmars-d mailing list