profiling

Firebug profiling issue: “no activity to profile”

…衆ロ難τιáo~ 提交于 2019-12-12 13:43:55
问题 I want to try some different options with some javascript (jQuery) to see which is the fastest, however I can't get profiling working properly. Here is the code I want to test. $this.keypress(function(e) { console.profile("test"); //retrieve the charcode if possible, otherwise get the keycode k = e.which ? e.which : e.CharCode; if (blockKeyCodes.indexOf("|" + k + "|") != -1 || e.ctrlKey && k == 86) e.preventDefault(); console.profileEnd(); }); However, when I run this the console states "no

How to profile number of goroutines

ぐ巨炮叔叔 提交于 2019-12-12 12:57:36
问题 Basically I want to find if my program is leaking goroutines over time. So I want to see how many goroutines are running over time. Is there any way to do this through pprof ? I've done go tool pprof http://localhost:8888/debug/pprof/block . Which gives me how long is being spent blocked but not how many routines are running. 回答1: Open http://localhost:8888/debug/pprof/ in your browser. You'll see two relevant links: "goroutine" (http://localhost:8888/debug/pprof/goroutine?debug=1) and "full

Missing symbol names when profiling iPhone app in Instruments

混江龙づ霸主 提交于 2019-12-12 12:28:48
问题 I don't get any symbol names when I'm profiling my iPhone app. It works in the simulator and when using Debug mode on the device, but not when using Release (as you should use when profiling). I know the dsym-file is generated for both release and debug, so that is not the problem. I've tried the solution described here: Missing symbol names when profiling IPhone application with Instruments But when i choose "Re-Symbolicate Document" my app's name doesn't appear in the binary list (it does

Profiling multithreading performance in a Haskell program — no speedups using parallel strategies

拈花ヽ惹草 提交于 2019-12-12 10:48:09
问题 After attempting to add multithreading functionality in a Haskell program, I noticed that performance didn't improve at all. Chasing it down, I got the following data from threadscope: Green indicates running, and orange is garbage collection. Here vertical green bars indicate spark creation, blue bars are parallel GC requests, and light blue bars indicate thread creation. The labels are: spark created, requesting parallel GC, creating thread n, and stealing spark from cap 2. On average, I'm

How can I profile a Rails app in its entirety, not just controllers? [duplicate]

荒凉一梦 提交于 2019-12-12 09:09:44
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: What tools do you recommend to profile Rails apps? My rails app is taking ~2 seconds to respond to POST requests, and I can't figure out why. When I use traditional profiling tools like newrelic or things that hook into unit tests, they tell me that all of my requests are fast, taking under 20 ms. But when I actually time the requests, they are taking 2 seconds. GET requests are fast. This happens in both

automated assembly loop level profiling

和自甴很熟 提交于 2019-12-12 09:01:48
问题 Does anyone know any assembly loop level profiler? I have been using gprof but gprof hides loops and it is function level profiling, yet to optimize my code i want something to go to the loop level. I want it to be automated and just give me the output like gprof. I was recommended to go to dtrace yet I have no idea were to start. anyone can direct me in anyway? for example main: pushl %ebp movl %esp, %ebp subl $16, %esp movl $5000000, -4(%ebp) movl $0, -12(%ebp) movl $0, -8(%ebp) jmp .L2 .L3

What are the ways to improve ASP.NET website's performance? [closed]

别等时光非礼了梦想. 提交于 2019-12-12 08:56:59
问题 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 6 years ago . HI all, I would like to know what are the best practices to improve the performance of the asp.net website? Is there any tool to do the profiling? I am aware that Ant Profiler can be used, but its not free downloadable. I am using CDN, caching etc. 回答1: You might review these MSDN

How to force ghc's profiler to step deeper into the libraries?

穿精又带淫゛_ 提交于 2019-12-12 08:54:52
问题 I'm trying to profile my program. So I compile it with -prof and -auto-all flags and run with -P to get detailed profiling report: $ ghc --make -prof -auto-all Test.hs $ ./Test +RTS -P Here is a piece of profiling report: COST CENTRE MODULE no. entries %time %alloc main Main 266 1 0.0 0.0 run Main 273 21845 99.3 99.7 sz Main 274 21844 0.0 0.0 size Main 268 21845 0.7 0.3 It seems that run consumes all time and memory. It calls a lot of functions from various libraries, and I'm quite sure that

Tools for checking memory fragmentation [closed]

给你一囗甜甜゛ 提交于 2019-12-12 08:48:44
问题 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 5 years ago . I have recently read topics about memory fragmentation: How to solve Memory Fragmentation and What is memory fragmentation? I want to see some memory allocation map such as author in these article http://pavlovdotnet.wordpress.com/2007/11/10/memory-fragmentation/ Could you recomend some tools to get memory

High-precision timer in Android JNI

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 08:45:54
问题 I'm trying to profile my JNI application. Is there something like "Get ticks since startup" that I can use to measure functions and/or systems? Anything with the precision of 1/10 of a millisecond will do. Obviously, a fully native function would be nicer, I'd prefer not to call a Java function for every single thing I'm trying to profile, but if that's the only option, I'll take that too. 回答1: clock_gettime(). You'll see sample code in android-ndk-r5b/samples/hello-neon/jni/helloneon.c and