kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #30215
Re: Perf HighlightConnectionAtPosition
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Sumiński <maciej.suminski@xxxxxxx>
-
Date:
Wed, 2 Aug 2017 08:47:20 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.50) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
In-reply-to:
<90ca40b9-06ff-157b-b092-327f734bfb0d@gmail.com>
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
Hi Gaurav,
A less intrusive option is to use PROF_COUNTER, see an example [1]. The
drawback is you have to recompile KiCad when you want to instrument
different parts of code.
Regards,
Orson
1. https://git.launchpad.net/kicad/tree/common/draw_panel_gal.cpp#n163
On 08/01/2017 05:50 PM, Gaurav Juvekar wrote:
> Hi,
>
>> Personally, I think your proposal sounds quite sensible, and I'm not
>> aware of any reason they _must_ be in a vector. Care to try it out and
>> see if it works?
>>
>
> Okay. I'll give it a go probably sometime in next week. This is my first time with C++ so it may take a while. Is there any profiling tool that can be used to get real time taken. callgrind just gives number of instructions executed, so I was wondering if there is an alternative that is already used for profiling kicad.
>
>
Attachment:
signature.asc
Description: OpenPGP digital signature
References