Re: [Mingw-w64-public] Compiling with -pg and executable's gmon.out has empty gprof results

2021-04-29 Thread David Murphy
I've noticed that if you run gprof with -z (unused functions) you'll see it provides all the expected functions but with 0 measures for everything (even _mcount_private). - David On 4/29/2021 7:46 PM, da...@davidmurphy.nu wrote: Yeah, that matches up with what I've experienced using Mingw64-Bu

Re: [Mingw-w64-public] Compiling with -pg and executable's gmon.out has empty gprof results

2021-04-29 Thread DAVID MAY
Some more information on this issue: I looked at one of my old C++ projects developed using MSYS2 last year and reran the current gprof program using the old project profiled executable and its gmon.out file created on 10 November 2020. A correct report was generated. On 28/04/2021 10:41 am, Dav

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-04-29 Thread Christian Franke
Vincent Torri wrote: On Wed, Apr 28, 2021 at 9:35 PM Christian Franke <...> wrote: BTW.1: Hack: Do this once in the program #ifdef _WIN32 timeBeginPeriod(1); https://docs.microsoft.com/fr-fr/windows/win32/api/timeapi/nf-timeapi-timebeginperiod?redirectedfrom=MSDN "Setting a higher re

Re: [Mingw-w64-public] Compiling with -pg and executable's gmon.out has empty gprof results

2021-04-29 Thread DAVID MAY
I have reproduced this problem on both my old and new laptops. Last year I used MSYS2 gprof extensively for a couple of C projects and it definitely was working properly. -- David May On 28/04/2021 10:41 am, David Murphy wrote: > There's lots of detail in my question here > https://stackoverflow.

Re: [Mingw-w64-public] [PATCH] crt: Increase precision of gettimeofday() if possible.

2021-04-29 Thread Christian Franke
Corinna Vinschen wrote: On Apr 26 20:00, Christian Franke wrote: System calls and resolutions of C++11 clocks:    Mingw-w64 MSVC16  Cygwin system_clock::now()   1    2   2 steady_clock::now()   1    3   3 high_resolution_clock