profiling Questions
4
Solved
After reading the accepted answer in When should we use prefetch? and examples from Prefetching Examples?, I still have a lot of issues with understanding when to actually use prefetch. While those...
Disposed asked 14/5, 2022 at 21:30
5
Solved
I used to use a nice Apple profiler that is built into the System Monitor application. As long as your C++ code was compiled with debug information, you could sample your running application and it...
3
When I want to generate performance reports using perf-stat and perf-report from the Linux tool suite perf, I run:
$ perf record -o my.perf.data myCmd
$ perf report -i my.perf.data
And:
$ perf ...
Seasick asked 25/4, 2012 at 17:53
4
I'm running the following code line on my terminal to get a profile of my program.
python3 -m cProfile -s time main.py
However the output it prints is gigantic. I only want to know the 10 most tim...
Endgame asked 15/12, 2017 at 17:16
2
Solved
Problem:
I have an J2EE application that is running very slow for a given task (to generate some files) using a specific data set. I decided to run the visualvm profiler over the application to und...
Softpedal asked 5/8, 2018 at 18:59
1
Solved
Question
In Perf’s annotate view, the runtime consumed by each instruction is given on the left side as a percentage. Is there some option to have some absolute quantity (probably samples) displaye...
2
Through code profiling, I have found the Math.sqrt function specifically to be a major bottleneck in a large doubly-nested loop that runs every timestep in my program. Is there any way to improve i...
Dipody asked 24/5, 2016 at 22:40
11
Solved
XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter "XDEBUG_PROFILE" when calling a script via ...
Heel asked 18/2, 2010 at 12:40
3
Solved
I consider running VisualVM against a production JVM to see what's going on there - it started to consume too much CPU for some reason.
It must not result in a JVM failure so I'm trying to estimat...
8
Solved
What method do you use when you want to get performance data about specific code paths?
Zerla asked 14/9, 2008 at 11:24
7
I'm looking for a KCacheGrind alternative, or at least a binary package for macOS?
I'd to use KCacheGrind with XDebug for PHP, but macOS is the right environnement here...
Thank you
Edit: I know I ...
Mellow asked 24/3, 2011 at 23:23
13
Solved
I have a piece of JavaScript code that I am executing using the node.js interpreter.
for(var i = 1; i < LIMIT; i++) {
var user = {
id: i,
name: "MongoUser [" + i + "]"
};
db.users.save(use...
Neman asked 16/5, 2012 at 10:55
12
Solved
I have a HotSpot JVM heap dump that I would like to analyze. The VM ran with -Xmx31g, and the heap dump file is 48 GB large.
I won't even try jhat, as it requires about five times the heap memory...
2
How do I profile/benchmark an assynchronous Python script (which uses ASYNCIO)?
I you would usualy do
totalMem = tracemalloc.get_traced_memory()[0]
totalTime = time.time()
retValue = myFunction(...
Rustic asked 21/1, 2019 at 14:51
12
Solved
So in Java, we can do How to measure time taken by a function to execute
But how is it done in python? To measure the time start and end time between lines of code?
Something that does this:
import...
5
Solved
I am looking for a Java code profiler which I can use to profile my application (its a service which runs in backend) on production (so means low over head, and it must not slow down my appli...
Vasculum asked 7/3, 2014 at 12:37
4
Solved
After turning on profiling in MySQL
SET profiling=1;
I can run like a query like SELECT NOW(); and see profile results with it's execution time using:
SHOW PROFILES;
However, I can't figure...
Spence asked 20/1, 2014 at 17:5
34
Solved
Project Euler and other coding contests often have a maximum time to run or people boast of how fast their particular solution runs. With Python, sometimes the approaches are somewhat kludgey - i.e...
Hiccup asked 24/2, 2009 at 16:1
3
I want to use setitimer() (or less probable, the alarm()) in multithreaded process in linux 2.6+ with NPTL-enabled libc. Which thread will receive sigalarm (SIGALRM) from kernel?
Thanks.
2014-04 ...
Aloes asked 6/4, 2010 at 17:28
0
I am trying to profile a slow bash script.
I have seen a few methods to do so in this question, but they all give absolute timings, or relative from one line to the next.
I would like to have timin...
Leora asked 28/3, 2023 at 13:26
3
I have several points stored in an array. I need to find bounds of that points ie. the rectangle which bounds all the points. I know how to solve this in plain Python.
I would like to know is the...
Miaow asked 21/9, 2017 at 4:26
6
Solved
Are there methods to measure the execution time when built-in functions completed for Spreadsheet? When I use several built-in functions (For example, IMPORTHTML and IMPORTXML), if I know the avera...
Judiciary asked 25/10, 2017 at 4:0
5
I have a highly threaded program but I believe it is not able to scale well across multiple cores because it is already saturating all the memory bandwidth.
Is there any tool out there which allow...
Centralization asked 2/8, 2010 at 8:10
4
I'm using Visual Studio 2015. I'm trying to use Diagnostic Tools and somehow that window is always blank. There is nothing displayed in that window. There is no error too. I tried the same with emp...
Maritime asked 1/4, 2016 at 14:35
3
Solved
The Flask app I am profiling spends a long time rendering its Jinja2 templates.
I have installed flask lineprofilerpanel which is interesting but unfortunately does not let me drill down into the ...
© 2022 - 2024 — McMap. All rights reserved.