kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #24831
Re: [PATCH 08/12] windows: provide performance measurement primitives
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Mon, 30 May 2016 07:56:19 -0400
-
In-reply-to:
<CAJjB1qJTn=1-yixGzQriy5RpE0W7e5t=WrMUm4Vf+4WW4D6iqQ@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
Thanks for pointing this out @Mark. My preference is to use wxWidgets
for features like this whenever possible rather than reinvent the wheel.
As much as we beat wxWidgets over the head, we often don't take
advantage of the features they do provide the handle the platform
differences.
On 5/29/2016 2:24 PM, Mark Roszko wrote:
> Yea QueryPerformanceCounter is the correct Windows way to do things.
>
> Though I wonder why wxStopWatch isn't used for profiling since
> everything is wxWidgets based anyway......wxStopWatch uses
> QueryPerformanceCounter on windows too.
>
> On Fri, May 27, 2016 at 10:32 AM, Simon Richter
> <Simon.Richter@xxxxxxxxxx> wrote:
>>
>> On Windows, performance measurement is best performed using
>> QueryPerformanceCounter, which reports ticks with an arbitrary but fixed
>> frequency.
>> ---
>> include/profile.h | 32 ++++++++++++++++++++++++++++++++
>> 1 file changed, 32 insertions(+)
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
>
References
-
[PATCH 00/12] A few well-aged patches
From: Simon Richter, 2016-05-27
-
[PATCH 01/12] Use std::atomic for portable locale init counting
From: Simon Richter, 2016-05-27
-
[PATCH 02/12] Add missing C++ stdlib headers
From: Simon Richter, 2016-05-27
-
[PATCH 03/12] Open namespace around definitions
From: Simon Richter, 2016-05-27
-
[PATCH 04/12] Avoid C99 style compound statement
From: Simon Richter, 2016-05-27
-
[PATCH 05/12] Avoid conflicting declaration for Pgm()
From: Simon Richter, 2016-05-27
-
[PATCH 06/12] Make sure KIFACE_GETTER linkage is consistent
From: Simon Richter, 2016-05-27
-
[PATCH 07/12] Work around VC++ 2015 bug.
From: Simon Richter, 2016-05-27
-
[PATCH 08/12] windows: provide performance measurement primitives
From: Simon Richter, 2016-05-27
-
Re: [PATCH 08/12] windows: provide performance measurement primitives
From: Mark Roszko, 2016-05-29