profiling

“Live” memory analysis tool for Android

大兔子大兔子 提交于 2020-01-01 16:59:27
问题 Is there a "live" memory profiler tool (similar to Instruments in XCode) for Android? Most searches for memory profiling, leads me to Memory Analyzer Tool (which is great), but I would very much appreciate a tool which can dynamically show me which classes consume (and release) memory during the life-cycle of my application, as it is executing. Note: I am not looking for a memory profiling tool for Android (Memory Analyzer Tools works very well for me). All the methods/tools I have

“Live” memory analysis tool for Android

旧街凉风 提交于 2020-01-01 16:59:06
问题 Is there a "live" memory profiler tool (similar to Instruments in XCode) for Android? Most searches for memory profiling, leads me to Memory Analyzer Tool (which is great), but I would very much appreciate a tool which can dynamically show me which classes consume (and release) memory during the life-cycle of my application, as it is executing. Note: I am not looking for a memory profiling tool for Android (Memory Analyzer Tools works very well for me). All the methods/tools I have

CoreAnimation performance profiling - CAReplicatorLayer with CAShapeLayer

霸气de小男生 提交于 2020-01-01 14:23:22
问题 I'm making an app that relies on CoreAnimation. It has got a CAReplicatorLayer and as a sublayer a CAShapeLayer. When having 12 replications and then animating the path (changing it on touchMoved) there's a significant reduction in FPS once the graphics get bigger on screen (about 12-20 fps). The time profiler shows about 10 % CPU Utilization, the Open GL ES Driver profiler reports about 90-97% "Render Utilization" and 40-50 % "Tiler Utilization". This guide explains these two words but not

How can I display my database queries in the Codeigniter Profiler when I load my databases in my models?

僤鯓⒐⒋嵵緔 提交于 2020-01-01 11:36:09
问题 My Codeigniter system uses multiple databases. I don't need every database on every page, so I load each connection in the model where it's needed, then load the required models within each controller. The profiler does not display any of the queries from these databases when I load things this way. This is how I load the databases in my models: $this->Companies_db = $this->load->database( 'companies', TRUE, TRUE ); I used to load all my databases in MY_Controller() ( an extension of the core

How can I analyze a file created with pstats.dump_stats(filename) off line?

北战南征 提交于 2020-01-01 07:59:06
问题 I have essentially done the following: import cProfile, pstats, StringIO pr = cProfile.Profile() pr.enable() # ... my code did something ... pr.disable() s = StringIO.StringIO() sortby = 'cumulative' ps = pstats.Stats(pr, stream=s).sort_stats(sortby) ps.dump_stats('stats.dmp') # dump the stats to a file named stats.dmp So now i have the file named 'stats.dmp' stored offline. How can i use pstats to analyze this file for human consumption? Thanks in advance. 回答1: Here's what i found out and

Enable Magento Varien_Profiler in admin area

半腔热情 提交于 2020-01-01 05:35:10
问题 How do I enable Magento Profiler in the admin area? I've set the admin option, added Varien_Profiler::enable(); before Mage::run($mageRunCode, $mageRunType); and cleared cache, but the profiler results only show in frontend? Am I missing something else? 回答1: Check that profiler is enabled as well in the default configuration scope in System > Configuration > Developer and that Developer IP Restrictions are empty or configured correctly. Edit: Based on this being the accepted answer, it's

Profile slow PHP pages in production

北城以北 提交于 2020-01-01 05:30:17
问题 Is there a way of profiling only slow PHP pages on a production server? At the moment we're logging slow pages to a text file, but without more information it's hard to say why they're slow (not consistently slow). I've used the Xdebug profiler before, but I really don't want to enable this on our production servers as we are likely to get 100's of requests per second. I've also used Zend Platform, but I don't really want to install that again. 回答1: You might alter your Apache/HTTP Server

Why does park/unpark have 60% CPU usage?

社会主义新天地 提交于 2020-01-01 03:26:09
问题 Recently we started stress testing our application (an XMPP based chat server) using YJP 11.0.9. During our test we noticed following strange behavior. Sampling shows sun.misc.Unsafe.unpark(Object) took 60% of CPU. For the same app Tracing shows that LockSupport.park(Object) took 52% of CPU. I did multiple tests to confirm results and every time I got similar results. I am unable to understand why unpark should take 60% time and why tracing shows exactly opposite results. Can someone help me

What does frame_dummy mean in the context of profiling?

这一生的挚爱 提交于 2020-01-01 02:16:08
问题 In the process of using gprof to profile a C++ program I've written, I've noticed that the vast majority of execution time is spent in the function "frame_dummy". More precisely, the first entry in the flat profile from the output of gprof shows 76.38% of sample time spent in and 24611191 calls to a function with name frame_dummy. In short, I am trying to understand both what frame_dummy refers to -- as I do not have any function named as such -- as well as what this means for my optimization

Is there a profiler for C (gcc) to profile code lines separately? [closed]

我怕爱的太早我们不能终老 提交于 2019-12-31 21:42:13
问题 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 . I come from a Matlab background so I am used to a profiler which profiles every single line and not just every function like gprof or callgrind . Is there a profiler for C with a similar feature? Thanks! (source: jburkardt at people.sc.fsu.edu) 回答1: Shark, one of the profiling tools in Mac OS X, can do that (or