← Back to team overview

kicad-developers team mailing list archive

Re: Perf HighlightConnectionAtPosition

 

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