profiling

How to profile only a class library?

て烟熏妆下的殇ゞ 提交于 2019-12-22 06:36:51
问题 I want to profile the CPU usage of a class library project which is compiled into a dll with VS2012. When I go into Analyze -> Launch Performance Wizard, I can choose which project to profile but it only lets me profile executables, so I can't profile my library. If I profile both of my projects (one is a very simple Form which runs functions from my library and shows some output) then System.Windows.Forms.Application.Run takes up 97% of my samples - I don't really care about the performance

java memory leak, visualvm showing wrong data

孤人 提交于 2019-12-22 06:29:43
问题 I've a java application running, after few hours it fulfills memory. I've tried to detect memory leak with visualvm but it shows wrong data (have no idea how that can happen). In the screenshot you can see task manager showing memory usage of 700Mb and visualvm showing 225... Does anyone know whats going on here? Regards 回答1: Beware that your OS is only aware of the total amount of memory java has reserved over the time (and java will not return that amount of memory easily AFAIK). However

How To Do Performance Profiling in Visual Studio 2008 “Pro”

Deadly 提交于 2019-12-22 05:20:28
问题 Microsoft make this piece of software called "Visual Studio 2008 Professional". I have found that there doesn't appear to be an application performance profiler or something similar in it, making it seem not so "professional" to me. If Microsoft don't include a profiler, what are your third party options for time profiling for Visual Studio 2008? Free would be preferable, as this is for uni student purposes :P 回答1: Personally, I use the Red Gate profiler. Others swear by the JetBrains one.

Are there tools to analyse large Java heap dumps without loading the complete hprof file?

若如初见. 提交于 2019-12-22 04:36:31
问题 I use Eclipse MAT to analyse hprof files. It is very good but if you have a 2Gb heap dump then you need to run MAT with a 2Gb+ heap size itself to be able to load the complete heap dump. I was wondering if anyone knows of a tool that could analyse a 2Gb hprof file without using that much memory itself (e.g. it doesn't load the complete file but somehow walks through it)? This would be useful if a hprof file gets generated on a customer server as I could then run some analysis on the server

What does Netbeans profiler's “Self Time” actually mean?

陌路散爱 提交于 2019-12-22 04:34:16
问题 I have been interested in time my simple game needs to run so I have used the Netbeans Java profiler (Java 1.7) and I can see the "Self Time" and "Invocations" columns in "Hot Spots" tab. For example, my render method has: Self Time : 1025 ms Invocations : 2311 So, if I understand well, does it actually mean that the TOTAL amount of time of ALL render method invocations together gives 1025 ms and the average time of one method execution is 1025 / 2311 = 0,44 ms ? If so, can I force the IDE to

Query Execution time in Management Studio & profiler. What does it measure?

纵然是瞬间 提交于 2019-12-22 04:15:09
问题 I have my production SQL Server in a remote data center(and the web servers are located in the same data center). During development we observed that one particular view takes a long time to execute (about 60-80 secs) in our local development SQL Server, and we were OK with it.It was promoted to production and when I run the same query on Production DB (which is in the data center)from my local Management Studio I see that the query takes about 7 minutes,17 secs to run (available the bottom

Python's profile module: <string>:1(?)

≯℡__Kan透↙ 提交于 2019-12-22 01:25:35
问题 I am using Python's (v2.4) profile module to profile a numpy script, and the following entry appears to account for the bulk of the execution time: ncalls tottime percall cumtime percall filename:lineno(function) 256/1 0.000 0.000 7.710 7.710 <string>:1(?) Unfortunately, its appearance makes it hard to Google. How do I go about figuring out what this is exactly? edit The profiler is run from the shell as follows: python -m profile -s cumulative script.py 回答1: Ignore this line. It is an

What does PINNED mean in -hc profile of Haskell program?

时光怂恿深爱的人放手 提交于 2019-12-22 01:24:44
问题 I am trying to profile my application. When analyzing memory usage with -hc RTS option, I noticed lots of memory marked as PINNED. When running with -hy the memory is marked as ARR_WORDS . The program creates a 2400×2400 matrix of doubles using Data.Packed.Matrix module from hmatrix package, and since the elements in it should be stored in continuous memory, I don't see a way for the matrix to take up so much space. My question is: what does the PINNED word actually mean? Also is there a way

How to handle memory leaks in Java EE?

两盒软妹~` 提交于 2019-12-21 22:36:23
问题 As I've found somewhere on web, following items can lead to memory leaks. For example: ResultSets and Statement objects DataLists Collections Static variables and classes Singletons HttpSession and HttpRequest Managed beans in my JSF application are mostly @ViewScoped , so I thought that after leaving the view, GC has enough informations to release datalists, objects, and so on. But it hasn't or not completelly: I'm just closing hibernate sessions manually (using finally), but that's all. The

How do I set up PHP profiling on Eclipse?

一笑奈何 提交于 2019-12-21 22:29:54
问题 I have set up Eclipse PDT on Galileo. I'm able to run and debug PHP sites that are set up on XAMPP. The thing is, I want to profile one of the sites, but cannot for the life of me figure out how to set this up. There is a profiling menu when I right-click the PHP project, but no indication of how to proceed from there. BTW I'm using Xdebug as the debug engine. 回答1: I came across the solution to my real problem: Getting Xdebug to output profiling files. As @"ZZ Coder" has mentioned, you don't