profiling

Memory usage and time for execution for another process using C#?

半城伤御伤魂 提交于 2019-12-13 16:53:05
问题 I need the memory usage and processing time for an application loaded through another application. I am using C#. Currently I am using Process.WorkingSet to get memory usage similarly Process.TotalProcessTime to get time for execution, but it doesn't give any value. So have you make any suggestions? 回答1: Use WMI to get this kind of info, well supported by the System.Management namespace. Get started by downloading the WMI Code Creator utility, it lets you experiment with queries and can auto

gae_mini_profiler {% profiler_includes %} gives Invalid block tag: 'profiler_includes'

那年仲夏 提交于 2019-12-13 13:23:17
问题 I am attempting to install gae_mini_profiler in my django-nonrel app I placed the {% profiler_includes %} tag at the bottom of my base.html It results in a Exception Type: TemplateSyntaxError Exception Value: Invalid block tag: 'profiler_includes' I placed from gae_mini_profiler import profiler application = profiler.ProfilerWSGIMiddleware(application) at the bottom of djangoppengine/main/__init__.py I followed all the other instructions at https://github.com/kamens/gae_mini_profiler#start

Flex Profiler - Alternative?

笑着哭i 提交于 2019-12-13 12:31:04
问题 Question Is there an alternative (free) tool for profiling flex applications that will show things like memory use, function calls, execution times, object allocations, etc? Background Flex has a built-in profiler but it requires a Premium license. At work, we currently have standard licenses. We will upgrade to premium but that process will take months. This week, there is an immediate need to improve performance and eliminate bottlenecks and memory issues. We've done as much as we can "by

Profiling a partially evaluated program

耗尽温柔 提交于 2019-12-13 12:25:49
问题 For the purposes of profiling a partially evaluated program, I'm interested in knowing the best way to terminate a GHC program. This is useful for profiling programs that take a long time to run, possibly as long as forever. With GHC 7.4.2, I was able to profile a non-terminating program by enabling profiling (-prof -auto-all) and running my program with +RTS -p . This generated incremental profiling data. The program could be killed with ^c , and the .prof file would contain data. In GHC 7.6

javascript debugging in HTML file

懵懂的女人 提交于 2019-12-13 11:51:55
问题 How can I put break points in an HTML page in javascript functions to see values of variables as lines get executed. What is the easiest way of doing so? thanks 回答1: Use the keyword " debugger; " to attempt invoking a hard breakpoint. As long as your browser has Javascript Debugging enabled, then the debugger; statement will tell it to do it's thang and you'll be in a step-by-step debugger. The Firebug extension for Firefox is by far the easiest, but Internet Explorer's new built-in "

How can I ignore libraries like jQuery when profiling JavaScript?

对着背影说爱祢 提交于 2019-12-13 11:39:51
问题 Of course, Firebug, Chrome's Web Inspector, Opera's Dragonfly and dynaTrace's AJAX tools for IE have profiling capabilities. However, I haven't found a tool that lets me 'ignore' a library. To give an example, suppose I have the following pure JS/DOM code: function foo(node) { for (var i = 0; i < node.childNodes.length; i++) { node.childNodes[i].innerHTML = 'Test'; } } and a similar bit of code that uses jQuery: function bar(jqNode) { jqNode.children().each(function() { $(this).html('Test');

Non heap memory and No of loaded classes keeps on increasing

邮差的信 提交于 2019-12-13 08:56:57
问题 We are doing a performance test of our application. During the test, we find that non heap memory and total no of loaded classes keeps on increasing over the time. Our guess is probably some 3rd party jar or application code is leaking. What are the best ways to find such leak or pin point the problem ? Any tools which can help me to find the rootcause ? We are using Jboss EAP 6.1. 回答1: Make first Heap Dump by jvisualVm from JDK and analyze it with Memory Analyzer (MAT). And then see in this

Is it possible to extract instruction specific energy consumption in a program? [closed]

ぐ巨炮叔叔 提交于 2019-12-13 08:16:28
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . What i mean is that given a source code file is it possible to extract energy consumption levels for a particular code block or 1 single instruction, using a tool like perf? 回答1: There are tools for measuring power consumption (see @jww's comment for links), but they don't even try

CPU Sampling in VS2010 via Attach To Process?

十年热恋 提交于 2019-12-13 07:21:27
问题 Is is possible to perform CPU Sampling in VS2010 via the Attach To Process option? When I do use that option it seems to always default to Memory Profiling. I can't launch CPU Sampling with the wizard because the ridiculous security software on our work PCs don't allow the DLL injection it uses. 回答1: If you select Analyze\Profiler\New Performance Session , the Performance Explorer will open with a new performance session. In the properties of this item, you can specify the type of profiling

Cannot locate debugging symbols and a lot of idle CPU usage

蹲街弑〆低调 提交于 2019-12-13 07:04:33
问题 I'm new to VTune Amplifier and I'm trying to profile OpenCV with a very basic application. Following this guide on recommended compiler options, I compiled OpenCV via CMake with CMAKE_BUILD_TYPE=RelWithDebInfo and -DWITH_OPENMP=ON so both -O2 and -g options are included and OpenMP enabled. My testing OpenCV application is compiled with g++ -I/home/luca/Dropbox/SURFSPM/opencvInstall/include -O3 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.o" -o "main.o" "../main.cpp" via