profiling

Decent profiler for Windows? [duplicate]

情到浓时终转凉″ 提交于 2019-12-17 17:25:20
问题 This question already has answers here : What are some good profilers for native C++ on Windows? [closed] (8 answers) Closed 6 years ago . Does windows have any decent sampling (eg. non-instrumenting) profilers available? Preferably something akin to Shark on MacOS, although i am willing to accept that i am going to have to pay for such a profiler on windows. I've tried the profiler in VS Team Suite and was not overly impressed, and was wondering if there were any other good ones. [Edit: Erk,

How to use MS code coverage tool in command line?

风流意气都作罢 提交于 2019-12-17 16:40:42
问题 I have the following C++ code. #include <iostream> using namespace std; int testfunction(int input) { if (input > 0) { return 1; } else { return 0; } } int main() { testfunction(-1); testfunction(1); } I compiled it to get the execution cl /Zi hello.cpp -link /Profile Then, I instrument the execution and generated the .coverage binary. vsinstr -coverage hello.exe start vsperfmon -coverage -output:mytestrun.coverage vsperfcmd -shutdown When I open the coverage file in VS2010, I got nothing in

Any references on Dynamic Code Analysis?

半腔热情 提交于 2019-12-17 16:26:51
问题 Yesterday I was reading about debugging techniques and found Valgrind to be really interesting. It seems to use techniques from dynamic code analysis. And I followed a link from the original reference to something else called Path Profiling. I tried Googling but I guess I am using the wrong terms to search for a good reference on these concepts. Can someone suggest a good resource taking into account that I do not have a background in compilers and programming languages? 回答1: Path Profiling

Total method time in Java VisualVM

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 15:32:21
问题 In Java VisualVM, is there any way to display total method time, rather than "self time"? (The latter is not particularly useful, since it doesn't tell you anything about how much time methods actually take to run.) If not, is there any standalone free Java profiler that does calculate total method time? 回答1: Looking at the trace data in a "snapshot" view allows you to see the total as well as the self time. Press the "snapshot" button that appears about the table of results. This will create

how to profile application startup with visualvm

喜你入骨 提交于 2019-12-17 15:31:04
问题 As far as i can tell, you can only profile a running application using VisualVM. Does anyone know of a way to profile the launch and startup of a java application using VisualVM? I'm convinced there must be a way, otherwise it would be a major oversight. Hoping I've just misread the documentation. Thanks, p. 回答1: Are you setting up the profiling using the `-Xrunjdwp" command-line option? If so, that option has a "suspend" parameter for just this purpose: True if the target VM is to be

How to trigger XDebug profiler for a command line PHP script?

和自甴很熟 提交于 2019-12-17 14:59:07
问题 XDebug offers the configuration directive "xdebug.profiler_enable_trigger" that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via HTTP. This is handy if you don't want profiling for ALL of your scripts but only for a few special cases without always changing your PHP configuration. Is there a way to achieve the same behavior for command line PHP programs? I tried to pass the "XDEBUG_PROFILE" as a command line argument but it didn't

Is there any working memory profiler for Python3 [closed]

好久不见. 提交于 2019-12-17 10:52:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . In Python 2 there's a couple of tools but everything seems to be old and out-of-dated. I've found PySizer and Heapy but everything seems to be Python2 oriented and would take a lot of effort to port. objgraph is interesting but still not a fully working profiler Which tool are using ? 回答1: Pympler is a Python

How to memory profile in Java?

夙愿已清 提交于 2019-12-17 10:26:04
问题 I'm still learning the ropes of Java so sorry if there's a obvious answer to this. I have a program that is taking a ton of memory and I want to figure a way to reduce its usage, but after reading many SO questions I have the idea that I need to prove where the problem is before I start optimizing it. So here's what I did, I added a break point to the start of my program and ran it, then I started visualVM and had it profile the memory(I also did the same thing in netbeans just to compare the

Function profiling woes - Visual Studio 2010 Ultimate

故事扮演 提交于 2019-12-17 09:55:26
问题 I am trying to profile my application to monitor the effects of a function, both before and after refactoring. I have performed an analysis of my application and having looked at the Summary I've noticed that the Hot Path list does not mention any of my functions used, it only mentions functions up to Application.Run() I'm fairly new to profiling and would like to know how I could get more information about the Hot Path as demonstrated via the MSDN documentation; MSDN Example: My Results: I

Accurate timing of functions in python

房东的猫 提交于 2019-12-17 08:09:27
问题 I'm programming in python on windows and would like to accurately measure the time it takes for a function to run. I have written a function "time_it" that takes another function, runs it, and returns the time it took to run. def time_it(f, *args): start = time.clock() f(*args) return (time.clock() - start)*1000 i call this 1000 times and average the result. (the 1000 constant at the end is to give the answer in milliseconds.) This function seems to work but i have this nagging feeling that I