Login / Register  0 items | $0.00 NewWhat is KVR? Submit News Advertise

Profiling

EYB
KVRist
 
83 posts since 9 Apr, 2004

Postby EYB; Thu May 18, 2017 12:44 pm Profiling

How do you profile your vsts? I tried the vs2017 profiler with attaching to a running process (FL studio) but it did not work properbly and i couldn't get any information about the cpu usage of my vst dll.
Does anyone have some information how to profile correctly?
stratum
KVRian
 
1236 posts since 29 May, 2012

Postby stratum; Thu May 18, 2017 1:52 pm Re: Profiling

Sometimes visual studio profiler fails when some other profiler has overridden the microsoft debugging toolset with another version.
Recently I have installed AMD CodeXL and visual studio profiler no longer works. Not too bad, because CodeXL looks better.
~stratum~
User avatar
nonnaci
KVRist
 
190 posts since 7 Feb, 2017

Postby nonnaci; Thu May 18, 2017 2:59 pm Re: Profiling

No problems with VC2017 profiling and debugging with Reaper. Plus, reaper and FLstudio both have CPU usage monitors anyways.
Miles1981
KVRian
 
1251 posts since 26 Apr, 2004, from UK

Postby Miles1981; Thu May 18, 2017 11:54 pm Re: Profiling

I profile the code on standalone versions. As such, I can use any tools, on any platform.
My usual choices are vTune or advisor (free on Linux for open source projects), PAPI with HPC toolkit or valgrind. Then I can use the "tools" provided by IDEs like VS or Xcode, but never tried the former and the latter is no usuable IMHO (or more exactly, couldn't figure out the info I wanted from it).
User avatar
Guillaume Piolat
KVRist
 
110 posts since 21 Sep, 2015, from Grenoble

Postby Guillaume Piolat; Fri May 19, 2017 4:19 pm Re: Profiling

Remember AMD CodeAnalyst ? It used to be barely useful. But its successor CodeXL has grown into a useful CPU profiler in my opinion. A welcome middle ground between Very Sleepy and Intel VTune Amplifier.
EYB
KVRist
 
83 posts since 9 Apr, 2004

Postby EYB; Fri May 19, 2017 11:39 pm Re: Profiling

Thanks for your thoughts! I am able to use the VS profiler now. It was an configuration error on my side. But I am not statisfied with the informations I can get yet. I would like to create or get some more details and maybe visualizations on the problematic areas in my code. Maybe I need some better configuration.

And I am going to try out CodeXL. Is it possible to install it into VS2017 and still use the default profiler?
stratum
KVRian
 
1236 posts since 29 May, 2012

Postby stratum; Fri May 19, 2017 11:49 pm Re: Profiling

Is it possible to install it into VS2017 and still use the default profiler?


Yes, but not with VS2013. Either VS2017 or CodeXL conflicts with VS2013 profiler on my machine.

edit: Just checked again. VS2013 profiler works on wizard-generated projects too. Perhaps I have a problem with compiler settings on the other project.
~stratum~
Miles1981
KVRian
 
1251 posts since 26 Apr, 2004, from UK

Postby Miles1981; Sat May 20, 2017 1:47 am Re: Profiling

I wonder how CodeXL works on Intel cores. Even if it's not on a par with vTune, a free tool that can do sampling profiling on hardware counters on Windows would be nice.
stratum
KVRian
 
1236 posts since 29 May, 2012

Postby stratum; Sat May 20, 2017 10:36 am Re: Profiling

I wonder how CodeXL works on Intel cores. Even if it's not on a par with vTune, a free tool that can do sampling profiling on hardware counters on Windows would be nice.


It has an awkward GUI and seems to incorrectly recognize GCC generated codes' callstack when it is mixed with Microsoft c++ compiler code. Other than that, it's OK. At least better than VerySleepy in that it strips away calls to sleep, thread context switches etc, if it does that correctly that is. If your app is slowed down by a spinlock that does not cause a context switch and keeps spinning and wasting cpu, I'm not sure you'll see that with CodeXL (or with visual studio profiler, for that matter).
~stratum~
User avatar
Guillaume Piolat
KVRist
 
110 posts since 21 Sep, 2015, from Grenoble

Postby Guillaume Piolat; Tue May 23, 2017 12:27 am Re: Profiling

Miles1981 wrote:I wonder how CodeXL works on Intel cores. Even if it's not on a par with vTune, a free tool that can do sampling profiling on hardware counters on Windows would be nice.


Last time I tried it shown assembly line and corresponding cycles, but I don't think it was using the other performance counters.

Moderator: Moderators (Main)

Return to DSP and Plug-in Development