Questions tagged [profiling]

Profiling is the process of measuring an application or system by running an analysis tool called a profiler. Profiling tools can focus on many aspects: functions call times and count, memory usage, cpu load, and resource usage.

Profiling is the process of measuring an application or system by running an analysis tool called a profiler. Profiling tools can focus on many aspects: functions call times and count, memory usage, cpu load, and resource usage.

5996 questions
4
votes
1 answer

Clang Profiling with Instrumentation on Android

I'm compiling a shared library for Android, that someone else loads in their app. I want to profile my library as it runs on an Android device, using Clang's profiling with instrumentation. I've added the Clang option -fprofile-instr-generate to…
Dror Speiser
  • 435
  • 4
  • 11
4
votes
1 answer

Benchmarking - How to count number of instructions sent to CPU to find consumed MIPS

Consider I have a software and want to study its behavior using a black-box approach. I have a 3.0GHz CPU with 2 sockets and 4 cores. As you know, in order to find out instructions per second (IPS) we have to use the following formula: IPS =…
Michel Gokan Khan
  • 2,525
  • 3
  • 30
  • 54
4
votes
3 answers

Identifying which parts of my Java program need optimization

I want to optimize my Java source code, but I am not sure what parts of my code may be optimized. Is there any tool or any technique through which I can optimize my Java source code? I know the basic fundamentals of code optimization, but I have a…
Ravi Parmar
  • 1,392
  • 5
  • 24
  • 46
4
votes
1 answer

What is the best way to profile a Java application in Eclipse?

I'm looking for a way to profile a Java application under Eclipse, in order to find the bottlenecks. As far as I know there are several solutions, but I prefer something that is integrated into Eclipse and easy to use. Do you have any suggestions?
Wall
  • 293
  • 3
  • 13
4
votes
4 answers

CPU or GPU bound? profiling OpenGL application

I've got an OpenGL application which I'm afraid is GPU bound. How can I be sure that's the case? And if it is, how can I profile the code run by the GPU?
peoro
  • 25,562
  • 20
  • 98
  • 150
4
votes
1 answer

Profiling async functions in Javascript

I have a complex flow of async/await functions that I would like to optimise. Using the built-in profiler of Chrome dev tools is practical when debugging synchronous workflows, but tracking micro-tasks triggers to resume promises is a difficult…
Karamell
  • 1,023
  • 9
  • 23
4
votes
0 answers

Linux Perf and Task's memory usage if possible

I am trying to create a stream of samples of resource utilization of selected tasks. For example a simple command line like this: perf stat -I 400 -e task-clock,instructions,cycles can give me a good measure of CPU utilization. I want to be able to…
M.Rez
  • 1,802
  • 2
  • 21
  • 30
4
votes
1 answer

Programmatically accessing cProfile data

I need to capture some python profiling data and generate a report. While most of this component runs Python 3.5, to support a couple of legacy modules, we still have part of the system that runs 2.7. In this instance, 3.5 invokes 2.7 via…
Basic
  • 26,321
  • 24
  • 115
  • 201
4
votes
0 answers

Chrome low fps - devtools long update layer tree and composite layers with very few layers on page

I am attempting to debug low FPS on my page. I see a lot of time spent per frame on "Update Layer Tree" and "Composite Layers". Update layer tree is consistently between 10-20ms and composite layers is between 6-10ms. My confusion comes from the…
imagio
  • 1,390
  • 2
  • 16
  • 27
4
votes
6 answers

Confusing gprof output

I ran gprof on a C++ program that took 16.637s, according to time(), and I got this for the first line of output: % cumulative self self total time seconds seconds calls s/call s/call name 31.07 …
Jesse Beder
  • 33,081
  • 21
  • 109
  • 146
4
votes
2 answers

Use memory_profiler to profile lines in a Flask app

UPDATE: In memory_profiler version 0.53 and later one can @profile decorate as many routes as you want. Earlier versions only allowed decorating one route. The below question only applies to those versions of memory_profiler with version <=…
spacether
  • 2,136
  • 1
  • 21
  • 28
4
votes
4 answers

how to profile(timing) in powershell

My powershell script runs slowly, is there any way to profile the powershell script?
Daniel Wu
  • 5,853
  • 12
  • 42
  • 93
4
votes
1 answer

How to take the exception thrown by a constructor using a ByteBuddy agent?

I'm trying to log every call, returned objects and exceptions thrown in methods and constructors using a ByteBuddy (v1.7.9) java agent, without iterfering with the normal functioning of the instrumented code. My current instantiation of the agent…
4
votes
1 answer

How to get stack trace of blocked statements in JMC Console?

I'm using Java Mission Control to profile my application. Amongst the useful metrics in the "Threads" tab is the number of times each thread was blocked. However, I can't seem to find a way to get which lines of code threads were blocked on. Is…
Sina Madani
  • 1,246
  • 3
  • 15
  • 27
4
votes
1 answer

How can I see allocations of native and graphics memory in Android Studio 3.0

When I profile app's memory in Android Studio I can see consumption of different categories of memory, but when I dump Java heap (middle button), I get only allocations of heap, which was expected from button's name. But still I can see allocated…
RChugunov
  • 794
  • 2
  • 11
  • 26
1 2 3
99
100