profiler

Find out how much memory is being used by an object in C#?

风流意气都作罢 提交于 2019-12-30 02:00:08
问题 Does anyone know of a way to find out how much memory an instance of an object is taking? For example, if I have an instance of the following object: TestClass tc = new TestClass(); Is there a way to find out how much memory the instance tc is taking? The reason for asking, is that although C# has built in memory management, I often run into issues with not clearing an instance of an object (e.g. a List that keeps track of something). There are couple of reasonably good memory profilers (e.g.

How do you find memory leaks using the Netbeans profiler? [closed]

自作多情 提交于 2019-12-30 00:59:06
问题 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 6 years ago . I want to find memory leaks in my java application but I don't know how to use Netbeans profiler to do that. 回答1: There are several resources on the web that can give you a hand http://www.javapassion.com/handsonlabs/nbprofilermemory/ http://www.netbeans.org/kb/articles/nb-profiler-uncoveringleaks_pt1.html http:

Unable to view Visual GC in VisualVM

[亡魂溺海] 提交于 2019-12-29 05:34:09
问题 I am using Java VisualVM on my local windows machine to monitor my remote server(Linux). I am able to get all stats in Bisual VM except " Visual GC ". It shows "Not Supported for this JVM". I have googled it and find that it might be because jstatd is not running and connected. So executed " jstatd -J-Djava.security.policy=/tmp/tools.policy ". It shows a ip " 175.41.139.225 ". I can't understand why it is trying to connect to this ip. It is not the ip of my remote machine nor of my local

Beyond Stack Sampling: C++ Profilers

谁都会走 提交于 2019-12-28 01:38:12
问题 A Hacker's Tale The date is 12/02/10. The days before Christmas are dripping away and I've pretty much hit a major road block as a windows programmer. I've been using AQTime, I've tried sleepy, shiny, and very sleepy, and as we speak, VTune is installing. I've tried to use the VS2008 profiler, and it's been positively punishing as well as often insensible. I've used the random pause technique. I've examined call-trees. I've fired off function traces. But the sad painful fact of the matter is

What is the resolution of the CPU time value in ants or dotTrace profiler?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 18:13:37
问题 As I understand from my previous research the resolution timer if we want to measure CPU time of a function is ~15.6ms mean we can get value like 0,15.6,32.2 ms int a=Process.getCurrentProcess.UserProcessTime; functionTest(); int b=Process.getCurrentProcess.UserProcessTime; (b-a) //value like 0,15.6,32.2 ms But using performance profiler like dotTrace or ant I see in time column where timing option is "CPU Time" value like 4.129; 1.032 ms So it's a high resolution. What is the method to get

Profiling Silverlight 4

牧云@^-^@ 提交于 2019-12-25 09:42:32
问题 I have a Silverlight page that displays100+ user controls in a ScrollViewer (around 50% of the controls are visible at once, depending on browser resolution). When I scroll using the ScrollViewer, scrolling is sluggish and one of my 4 CPU cores goes to 100% (and stays there as long as I keep moving a scrollbar). I wanted to profile the application to better understand where the time is being spent following the instructions on this MSDN Blog. Like one of the commenters, I get the error No

How to install Laravel 4 profiler

可紊 提交于 2019-12-25 06:34:17
问题 I'm a Ubuntu/git/composer noob, and I'm trying to follow the installation instructions here. After running the php artisan config:publish loic-sharma/profiler command I get the following error: PHP Fatal error: Class 'Profiler\ProfilerServiceProvider' not found in /var/www/epcr/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 158 I'm assuming the problem is that I haven't downloaded the code, but I'm not exactly sure how to go about doing that. 回答1: Most

Profling on arm Cortex_A8

别等时光非礼了梦想. 提交于 2019-12-25 03:53:31
问题 I want to do profiling for my application on ARM processor. I found the oprofile doesn't work. Someone used the following code to test a few years ago. the cyclic counter does work, the performance monitor counter still doesn't work. I tested it again, it is same. For following code, I got cycle count: 2109, performance monitor count: 0. I have searched by google, so far, I have not found a solution. Has someone fixed this issue? uint32_t value = 0 uint32_t count = 0; struct timeval tv;

Use GPU profiler (for example CodeXL) together with PyOpenCL

ⅰ亾dé卋堺 提交于 2019-12-24 11:57:13
问题 I have my complex PyOpenCL app with a lot of buffers creations, kernel templating and etc. I want to profile my app on GPU to see what is the bottle neck in my case. Is it possible to use some gpu profiler with PyOpenCl app? For example CodeXL. P.S. I know about event profiling but it isn't enough. 回答1: Yes, it is possible. Look here: http://devgurus.amd.com/message/1282742 来源: https://stackoverflow.com/questions/17573338/use-gpu-profiler-for-example-codexl-together-with-pyopencl

Is GNU gprof buggy?

北战南征 提交于 2019-12-24 11:08:21
问题 I have a C program that calls a function pi_calcPiItem() 600000000 times through the function pi_calcPiBlock . So to analyze the time spent in the functions I used GNU gprof. The result seems to be erroneous since all calls are attributed to main() instead. Furthermore the call graph does not make any sense: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls Ts/call Ts/call name 61.29 9.28 9.28 pi_calcPiItem 15.85 11.68 2.40 pi_calcPiBlock 11.96 13.49