profiling

What does the OProfile warning 'dropping hyperspace sample' mean?

最后都变了- 提交于 2019-12-23 12:28:44
问题 When using the statistical execution profiler OProfile to visualise a callgraph profile for my C application, it includes the following warning multiple times. The warning is rather cryptic to me: warning: dropping hyperspace sample at offset 1af9 >= 2be8 for binary /home/myuser/mybinary I'm using OProfile in a Xen virtualized environment like this: modprobe oprofile timer=1 opcontrol --no-vmlinux opcontrol --start (wait for profiling data to accumulate) opcontrol --stop opreport --session

How Come when I sampling profile a program and it actually runs faster than not profiling?

点点圈 提交于 2019-12-23 12:07:57
问题 I use DotTrace 4.5 performance time in release mode: 2400000000 Basic: 00:00:08.8051103 2400000000 Five: 00:00:09.1561338 2400000000 Overload: 00:00:16.3740938 2400000000 IListtoFive: 00:00:15.5841445 time when profiling in release mode. 2400000000 Basic: 00:00:01.0048224 2400000000 Five: 00:00:03.5416982 2400000000 Overload: 00:00:11.8009959 2400000000 IListtoFive: 00:00:11.2568770 My code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System

Mysterious pickle error while profiling a multi-process Python script

孤街浪徒 提交于 2019-12-23 09:45:17
问题 I"m using the multiprocessing module, and I'm using UpdateMessage objects (my own class), sent through multiprocessing.Queue objects, to communicate between processes. Here's the class: class UpdateMessage: def __init__(self, arrayref, rowslice, colslice, newval): self.arrayref = arrayref self.rowslice = rowslice self.colslice = colslice self.newval = newval def do_update(self): if self.arrayref == 'uL': arr = uL elif self.arrayref == 'uR': arr = uR else: raise Exception('UpdateMessage

Why does Linux perf use event l1d.replacement for “L1 dcache misses” on x86?

余生颓废 提交于 2019-12-23 09:21:47
问题 On Intel x86, Linux uses the event l1d.replacements to implement its L1-dcache-load-misses event. This event is defined as follows: Counts L1D data line replacements including opportunistic replacements, and replacements that require stall-for-replace or block-for-replace. Perhaps naively, I would have expected perf to use something like mem_load_retired.l1_miss , which supports PEBS and is defined as: Counts retired load instructions with at least one uop that missed in the L1 cache.

C function profiling (address seem to be offseted)

时光怂恿深爱的人放手 提交于 2019-12-23 09:20:48
问题 I'm trying to profile the function calls using -finstrument-functions option. Basically, what I have done is to write the following into any compiled source: static int __stepper=0; void __cyg_profile_func_enter(void *this_fn, void *call_site) __attribute__((no_instrument_function)); void __cyg_profile_func_enter(void *this_fn, void *call_site) { int i=0; for( ; i<__stepper; i++ ) printf(" "); printf("E: %p %p\n", this_fn, call_site); __stepper ++; } /* __cyg_profile_func_enter */ void __cyg

Does the Visual Studio sampling profiler have an assembly-level view?

久未见 提交于 2019-12-23 09:19:28
问题 The Visual Studio 2015 sampling profiler 1 shows the collected results at the source level. Sometimes it is useful to see the collected samples directly at the assembly level. It is likely this data exists (since sampling is inherently an assembly-level operation) - but can it actually be displayed in Visual Studio? 1 This is the default profiling that you're probably using if you never chose anything different. 来源: https://stackoverflow.com/questions/45676799/does-the-visual-studio-sampling

Is there a cheaper way to do load testing than upgrading to Visual Studio 2010 Ultimate

做~自己de王妃 提交于 2019-12-23 09:15:04
问题 I have a Visual Studio 2010 Professional license so Ultimate is a long way off and all I want it for is load testing for a few weeks or so. Is there a cheaper way of getting just the load testing part of VS2010 ultimate or an alternate load testing tool with decent metrics of how the load testing is doing? I'd like to know pages/sec, page speed, database connections and less important: CPU, memory, errors. 回答1: I have always found that the Radview Webload tool gives a good alternative but you

Trouble running Instruments on iPad

懵懂的女人 提交于 2019-12-23 07:49:46
问题 I'm trying to profile my application using Instruments on the device itself. Specifically, I'm trying to do time profiling. Unfortunately, I just can't get it to work. Here's the situation: 1) If I run instruments with the app signed using the developer profile on the simulator, it works. 2) If I run instruments with the app signed using the distribution profile on the simulator, it works. 3) If I run instruments with the app signed using the distribution profile on the device (which is the

How to use gprof with cmake

寵の児 提交于 2019-12-23 07:38:36
问题 I have looked at dozens of tutorials for profiling with gprof. I'm trying to work with code for the SMT solver dReal. To build the program, I first installed g++-4.8, Bison, Flex, and Cmake. Then to build dReal, the instructions said to execute the following: git clone git@github.com:soonhokong/dReal.git dreal cd dreal mkdir -p build/release cd build/release cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_CXX_COMPILER=g++-4.8 -DCMAKE_C_COMPILER=gcc-4.8 ../../src make Where in here am I supposed to

Determining where object allocations for objects on the heap occurred

一曲冷凌霜 提交于 2019-12-23 07:05:36
问题 Is there any tool such that it can get a heap dump from a running application and determine/group objects by where in source code they were created? With no changes to source code and ideally something free. 回答1: As others suggested memory profilers, Memprofiler is definitely the most advanced one (I've tried all existing .NET profilers). It has a 14 day trial. 回答2: What about .NET Memory Profiler from ANTS for example. Maybe CLR Profiler. 回答3: The information is not available if you create a