Questions tagged [profiler]

A profiler is a programming tool used to track and analyse the performance of a software program.

A profiler is a programming tool to track and analyse the performance of a software program. Profilers can focus on different aspects, for example:

  • memory usage
  • cpu usage
  • the frequency and duration of function/method calls
  • resource usage

Most profilers use a process called instrumentation (adding measuring code) to gather data, but some profilers can also use sampling (polling data at specific intervals).

1716 questions
39
votes
5 answers

If profiler is not the answer, what other choices do we have?

After watching the presentation "Performance Anxiety" of Joshua Bloch, I read the paper he suggested in the presentation "Evaluating the Accuracy of Java Profilers". Quoting the conclusion: Our results are disturbing because they indicate that…
nanda
  • 24,458
  • 13
  • 71
  • 90
37
votes
3 answers

Profiling a python program with PyCharm (or any other IDE)

I'm running a relatively complex python program and in it there is a montecarlo simulation which takes up most of the time. I would like to find out what part of it uses the most resources so I can potentially make it faster. I'm using PyCharm…
Nickpick
  • 6,163
  • 16
  • 65
  • 116
37
votes
8 answers

SQL Azure Profiling

I read on the MS site that SQL Azure does not support SQL Profiler. What are people using to profile queries running on this platform?
CodeGrue
  • 5,865
  • 6
  • 44
  • 62
37
votes
9 answers

Failed to CoCreate Profiler error - but not using a profiler

We're getting a: .NET Runtime version 2.0.50727.5448 - Failed to CoCreate profiler message in the Event Viewer on our webserver, along with an accompanying: .NET Runtime version 4.0.30319.239 - Loading profiler failed during CoCreateInstance. …
Dale
  • 1,711
  • 2
  • 20
  • 30
36
votes
1 answer

How do I read the output of the IPython %prun (profiler) command?

I run this: In [303]: %prun my_function() 384707 function calls (378009 primitive calls) in 83.116 CPU seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 37706 41.693 …
Peter D
  • 3,283
  • 4
  • 24
  • 23
35
votes
4 answers

Profiling Ruby Code

Besides ruby-prof and and the core Benchmark class, what do you use to profile your Ruby code? In particular, how do you find the bottlenecks in your code? It almost feels like I need to work on my own little tool just to figure out where all the…
ehsanul
  • 7,737
  • 7
  • 33
  • 43
34
votes
4 answers

Understanding Firebug profiler output

I've been trying to use Firebug's profiler to better understand the source of some JavaScript performance issues we are seeing, but I'm a little confused by the output. When I profile some code the profiler reports Profile (464.323 ms, 26,412…
Walter Rumsby
  • 7,435
  • 5
  • 41
  • 36
34
votes
5 answers

Perl memory usage profiling and leak detection?

I wrote a persistent network service in Perl that runs on Linux. Unfortunately, as it runs, its Resident Stack Size (RSS) just grows, and grows, and grows, slowly but surely. This is despite diligent efforts on my part to expunge all unneeded…
Alex Balashov
  • 3,218
  • 4
  • 27
  • 36
32
votes
2 answers

How to profile for one table in SQL Server?

How can I add a filter which can trace sql statements for a particular table name?
Dakmaz
  • 429
  • 1
  • 7
  • 16
32
votes
14 answers

What features should a C#/.NET profiler have?

This could be a borderline advertisement, not to mention subjective, but the question is an honest one. For the last two months, I've been developing a new open source profiler for .NET called SlimTune Profiler…
Promit
  • 3,497
  • 1
  • 20
  • 29
29
votes
2 answers

Android profiler not supported for Kitkat devices/google glass in android studio 3.0

From android studio 3.0 Android Monitor turned to Android profiler. But, when using google glass device or other android kitkat devices it's showing below message in android profiler window: Device not supported. Android profiler requires a device…
0xAliHn
  • 18,390
  • 23
  • 91
  • 111
28
votes
2 answers

Is there an IntelliJ Java Profiler

Is there a Profiler for IntelliJ like the one for Matlab? Let's say you have this code a = true; i = 0; while(a) { if(a) i++ // some fancy stuff which takes 1 second each loop if(i > 1e6) break; } Now I run the code In Matlab it…
GavriYashar
  • 345
  • 1
  • 3
  • 10
26
votes
5 answers

Visual studio 2015 profiler not showing anything from my code

I'm trying to use profiler from Visual Studio 2015 Community for CPU usage, and all I get is just my exe and [External code], nothing else: There is a generated pdb file, and I tried to clean and rebuild my project, disabled just my code; could…
Silencer
  • 1,602
  • 4
  • 17
  • 27
25
votes
1 answer

Python's profile module: :1(?)

I am using Python's (v2.4) profile module to profile a numpy script, and the following entry appears to account for the bulk of the execution time: ncalls tottime percall cumtime percall filename:lineno(function) 256/1 0.000 0.000 …
NPE
  • 486,780
  • 108
  • 951
  • 1,012
25
votes
5 answers

How do code profilers work?

While I was working on an University project, I used a project-internal profiler made by an elder student, it was very basic but good enough since its task was to subtract times between two points of the code and to give statistics. Now, how does a…
tunnuz
  • 23,338
  • 31
  • 90
  • 128