profiling

gperftools - profile file not dumped

橙三吉。 提交于 2020-02-28 07:53:58
问题 I've configured and built gpreftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro , building the program and the flag is added correctly at the linking stage. QMAKE_LFLAGS += -lprofiler Running with: $ CPUPROFILE=/tmp/prof.out /path/to/executable Executing: $ pprof --gv /path/to/MyExe /tmp/prof.out Then I get the following: Failed to get profile: curl -s --max-time 90 'http://

gperftools - profile file not dumped

梦想与她 提交于 2020-02-28 07:52:48
问题 I've configured and built gpreftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro , building the program and the flag is added correctly at the linking stage. QMAKE_LFLAGS += -lprofiler Running with: $ CPUPROFILE=/tmp/prof.out /path/to/executable Executing: $ pprof --gv /path/to/MyExe /tmp/prof.out Then I get the following: Failed to get profile: curl -s --max-time 90 'http://

gperftools - profile file not dumped

我怕爱的太早我们不能终老 提交于 2020-02-28 07:52:08
问题 I've configured and built gpreftools. however, I can't seem to find the generated profile file of my program to display it. I took the following actions: Adding the -lprofiler linker flag to my .pro , building the program and the flag is added correctly at the linking stage. QMAKE_LFLAGS += -lprofiler Running with: $ CPUPROFILE=/tmp/prof.out /path/to/executable Executing: $ pprof --gv /path/to/MyExe /tmp/prof.out Then I get the following: Failed to get profile: curl -s --max-time 90 'http://

mysql command line return execution time?

一个人想着一个人 提交于 2020-02-19 09:02:57
问题 I'm working on a Linux host with mysql command. I have a script that runs batch mysql commands (like mysql -e "select..." ) and I wish to summarize execution time of each of the commands. Is there a way to get mysql exec time from the command line? For example, in mysql interactive mode, execution result comes with a time, like this: mysql> select count(*) from trialtable; +----------+ | count(*) | +----------+ | 4000 | +----------+ 1 row in set (0.00 sec) Can I get the same profile in

mysql command line return execution time?

ぐ巨炮叔叔 提交于 2020-02-19 09:02:01
问题 I'm working on a Linux host with mysql command. I have a script that runs batch mysql commands (like mysql -e "select..." ) and I wish to summarize execution time of each of the commands. Is there a way to get mysql exec time from the command line? For example, in mysql interactive mode, execution result comes with a time, like this: mysql> select count(*) from trialtable; +----------+ | count(*) | +----------+ | 4000 | +----------+ 1 row in set (0.00 sec) Can I get the same profile in

Google spreadsheet constantly recalculates functions

喜夏-厌秋 提交于 2020-02-08 05:29:24
问题 I noticed that my spreadsheet is constantly refreshing functions - I can see progress bar [right-top section] moving each 5-10 secs. On those peaks I've huge processor consumption. Since there're 1100 lines in main sheet (1 of 20 sheets in that file) it's pretty hard to find which function keeps progress bar running. Is there any way to list which function is currently processed? 回答1: Try the developer tools from your browser. If you use Chrome, checkout How to Use the Timeline Tool. Try to

Other reasons for instruction replays in CUDA

南楼画角 提交于 2020-02-05 07:22:28
问题 This is the output I get from nvprof (CUDA 5.5): Invocations Metric Name Metric Description Min Max Avg Device "Tesla K40c (0)" Kernel: MyKernel(double const *, double const *, double*, int, int, int) 60 inst_replay_overhead Instruction Replay Overhead 0.736643 0.925197 0.817188 60 shared_replay_overhead Shared Memory Replay Overhead 0.000000 0.000000 0.000000 60 global_replay_overhead Global Memory Replay Overhead 0.108972 0.108972 0.108972 60 global_cache_replay_overhead Global Memory Cache

How to take the exception thrown by a constructor using a ByteBuddy agent?

て烟熏妆下的殇ゞ 提交于 2020-02-04 03:46:07
问题 I'm trying to log every call, returned objects and exceptions thrown in methods and constructors using a ByteBuddy (v1.7.9) java agent, without iterfering with the normal functioning of the instrumented code. My current instantiation of the agent is new AgentBuilder.Default() .with(AgentBuilder.Listener.StreamWriting.toSystemOut()) .type((typeDescription, classLoader, module, classBeingRedefined, protectionDomain) -> matcher.matchesIncoming(typeDescription.getTypeName())) .transform((builder,

Visual studio profiler shows no code was running

江枫思渺然 提交于 2020-02-04 02:34:27
问题 Visual studio profiler shows that "No code was running during the selected time range", even when there was clearly code running (the time range was the entire execution time of the program). I have tried to reinstall C++ profiling tools but this issue is still here. 来源: https://stackoverflow.com/questions/53667319/visual-studio-profiler-shows-no-code-was-running

How to understand Android SDK profile traceview…?

让人想犯罪 __ 提交于 2020-02-02 11:34:47
问题 I have some code that uses Jsoup to get and parse some html pages, and then I manipulate the html tree, before passing it to a WebView that draws it. If I bypass my manipulations, the code runs in acceptable times (2-3 seconds) on the Android SDK simulator, but when I do my manipulations the time jumps to unacceptable (~60 seconds to just load a single page!). Using Eclipse and the Android SDK I had a run profiled, and now I'm trying to interpret the results. from here http://android