profiling

Profiling a Java Spring application

喜欢而已 提交于 2019-12-18 10:17:26
问题 I have a Spring application that I believe has some bottlenecks, so I'd like to run it with a profiler to measure what functions take how much time. Any recommendations to how I should do that? I'm running STS, the project is a maven project, and I'm running Spring 3.0.1 回答1: I've done this using Spring AOP. Sometime I need an information about how much time does it take to execute some methods in my project (Controller's method in example). In servlet xml I put <aop:aspectj-autoproxy/> Also,

Profiling python C extensions

不羁的心 提交于 2019-12-18 10:12:09
问题 I have developed a python C-extension that receives data from python and compute some cpu intensive calculations. It's possible to profile the C-extension? The problem here is that writing a sample test in C to be profiled would be challenging because the code rely on particular inputs and data structures (generated by python control code). Do you have any suggestions? 回答1: After the comment by pygabriel I decided to upload a package to pypi that implements a profiler for python extensions

Best and safest Java Profiler for production use? [closed]

佐手、 提交于 2019-12-18 10:10:15
问题 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 2 years ago . I'm looking for a Java Profiler for use in a very high demand production environment, either commercial or free, that meets all of the following requirements: Lightweight integration with code (no recompile with special options, no code hooks, etc). Dropping some profiler specific .jars alongside the application

do you have kcachegrind like profiling tools for mac [closed]

被刻印的时光 ゝ 提交于 2019-12-18 10:04:39
问题 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 3 years ago . Can anybody tell me about the tools you have for profiling like kcachegrind wingrind valgrind for mac platform. I don't think these work on mac, i have also quick check on that. 回答1: I ended up using qcachegrind on OSX. It can be installed via brew brew install qcachegrind or, to enable graphviz support: brew

How to find the default JMX port number?

三世轮回 提交于 2019-12-18 10:02:07
问题 I am running a Java application on Java 6 VM on a remote Windows XP, on which I can run jvisualvm.exe to connect to the running application automatically. Now I need to connect that application from my local computer, but I don't know the JMX port number of the remote computer. Where can I find it? Or, must I restart that application with some VM parameters to specify the port number? After reading the question How to find the JMX port in a server, I executed the command on the remote

Profiling JavaScript Code on nodejs - Possible Approaches

丶灬走出姿态 提交于 2019-12-18 09:43:08
问题 My aim is to develop a java script profiler for nodejs . The requirements are as under : Should be able to fetch call stack . Get Time stamp information. Get number of iterations. My chief concern is that i should not modify the source file ( .js file ) . I have seen all the available profiling options for JavaScript code on node js . The problem i face is that most of them require manual injection of the profiling specific code into my source code. Here is an example var profiler = new

Process.GetProcessesByName(String, String) Memory Leak

十年热恋 提交于 2019-12-18 07:45:48
问题 I have a piece of code that gets a list of processes on a remote computer using the static method Process.GetProcessesByName(String, String), this runs on a lot of computers (a few thousands) and I've noticed it's a cause of a major memory leak. I ran ANTS memory profiler which told me that most of my memory is taken by strings, strings containing strage values like "% Idle Time", "Processor Information", and "Cache Faults/sec". I've recognized those strings as probably being a part of

Iterating vs List Concatenation

会有一股神秘感。 提交于 2019-12-18 07:38:41
问题 So there are two ways to take a list and add the members of a second list to the first. You can use list concatenation or your can iterate over it. You can: for obj in list2: list1.append(obj) or you can: list1 = list1 + list2 or list1 += list2 My question is: which is faster, and why? I tested this using two extremely large lists (upwards of 10000 objects) and it seemed the iterating method was a lot faster than the list concatenation (as in l1 = l1 + l2). Why is this? Can someone explain?

How can I use xdebug to debug only one virtual host?

回眸只為那壹抹淺笑 提交于 2019-12-18 02:49:32
问题 I have installed xdebug, I can see in phpinfo() that it's installed (but it's OFF). However, I don't want to enable it for the whole server/apache2, I just want to enable it for one virtual host. How can I do this? 回答1: You can set xdebug in php.ini with off value: zend_extension=/usr/lib/php/modules/xdebug.so xdebug.remote_enable off xdebug.remote_port 9000 xdebug.idekey PHP-XDEBUG and turn on only .htaccess with directive: php_flag xdebug.remote_enable on 来源: https://stackoverflow.com

Chrome Dev Tools API & Selenium WebDriver

拥有回忆 提交于 2019-12-18 02:09:12
问题 I am experimenting with Selenium Web Driver for automating my browser integration tests. I see that Chrome Dev Tools comes with a console API for invoking certain dev tool functions from inside JavaScript. Ideally, from inside my Java/JUnit integration test, I could start the Chrome Dev Tool memory profiler (and perhaps some other tools), run my WebDriver tests (instantiating a Chrome browser instance, manipulating DOM elements, etc.), and then stop the profiler, then inspect the profiler's