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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

How does perf correlate hardware events with PMU registers?

I have programmatically set up perf in such a way to allow for direct reading of PMU registers by following perf docs and the ARM register summary. Below is how I have set up perf to configure the CPU ...
Kron's user avatar
  • 53
1 vote
0 answers
27 views

How can I profile mypy?

Mypy is taking an unreasonably long time to type check my small project. How can I profile it to find out where it's spending all its time? I tried mypy -v, which gives a bit more of an idea, but ...
joel's user avatar
  • 6,471
0 votes
0 answers
10 views

How to monitor elastic beanstalk tomcat instance using a profiler

I am trying to figure out some performance issues in my spring boot application. A code block is running within a for loop and taking a lot of time(there are no network calls). I want to identify the ...
deathByChocolate's user avatar
3 votes
1 answer
102 views

How to measure the execution time of inlined functions in C++?

I have a bunch of functions that complete in a few nanoseconds and I want to measure their execution time to assess their performance. The basic idea is very simple, take a timestamp, execute the same ...
Ξένη Γήινος's user avatar
0 votes
0 answers
9 views

Profiling .NET core tests

The test suite I am executing is taking long time to finish. The suite is mainly integration tests involving database. I'd like to find out possible bottlenecks and shorten the test execution time. ...
Karel Frajták's user avatar
0 votes
0 answers
43 views

cargo-flamegraph only showing `[main]` for most function names

I'm trying to profile my Rust project by running a binary using cargo-flamegraph. But it is not showing function name for most of the functions. Instead it is showing [main]. Some functions which I ...
twitu's user avatar
  • 553
0 votes
1 answer
30 views

Strange pink flame graphs with Google pprof

The "new" flame graph in Google pprof is uniformly pink on my machine (Mac OS 10). Is this supposed to happen? It's not as nice as the old flame graph, so I wonder if something is not ...
landau's user avatar
  • 5,644
1 vote
1 answer
28 views

Java-11 Profiling

I want to do profiling for the Java-11 Spring hibernate application especially measure the time taken by each method, hibernate queries. I did tried profiling using intellj but the flame graph dint ...
prajkuma's user avatar
1 vote
0 answers
52 views

Access frequency limitation for reading PMCCNTR_EL0?

I am using perf_event_open in my c profiling app to leverage perf in getting event data. In order to improve performance, I am reading the hardware registers directly by following the Perf Userspace ...
Kron's user avatar
  • 53
1 vote
0 answers
18 views

How to open the .Result file generated by Spyder Profiler?

I used Spyder's inbuilt profiler to generate the following profiling results: ...I then pressed the Save Button to save the profiling results, which were saved a file with the extension .Result ...
skm's user avatar
  • 5,061
0 votes
0 answers
7 views

Why don’t current tools support collecting memory bandwidth usage data at process granularity?

Common hardware indicators such as IPC and cache miss rates support data collection at process granularity. Why does the memory bandwidth usage only support the collection of the whole machine ...
Frontier_Setter's user avatar
0 votes
0 answers
18 views

How to correctly profile algorithms to use in audio callbacks?

Trying to profile different vectorized convolution algorithms in Unity but it ain't so obvious to do so as results can vary significantly according to how one profiles. The environment: These are FIR ...
aybe's user avatar
  • 15.5k
0 votes
0 answers
18 views

How to abstract typical memory behavior from a complex multi-threaded workload?

There is a complex multi-threaded program running in my system, which performs various types of operations. At the same time, I cannot access its source code. I want to analyze the potential impact of ...
Frontier_Setter's user avatar
0 votes
0 answers
10 views

Is there a clear and reliable methodology for workloads profiling/modeling?

I want to evaluate the hardware resource requirements of a certain workload from the following aspects: Hyper-threading friendliness Sensitivity to memory latency/memory bandwidth Sensitivity to the ...
Frontier_Setter's user avatar
1 vote
0 answers
29 views

Why is the total execution time so much greater than the profiled cumulated time in Python?

I'm running a Python script to find flight routes using a dataset with around 20k flights containing ~4000 flights each day. When profiling the code with cProfile, I print that the cumulative time ...
terrabl's user avatar
  • 853
0 votes
1 answer
18 views

Analyze what exactly is being serialized when using pathos multiprocessing

I have a class object that uses pathos.multiprocessing to parallelize one of its more CPU expansive methods. To reduce overhead, I actually moved the method outside of the original class into a ...
Niclas's user avatar
  • 133
0 votes
0 answers
33 views

External tools for a RAD Studio / C++ / Windows project? (How to get PDB from RAD Studio and/or what are other options?)

I have a project of a 64-bit Windows application in Rad Studio 11 (pre-existing project, not my choice, moving to another toolchain is not an option). The language is C++ (C++17). So far, I've been ...
Abstraction's user avatar
  • 1,133
1 vote
0 answers
28 views

Only view own function calls in Sentry (self-hosted) NodeJs Profiling

I recently upgraded to the latest self-hosted version of Sentry. It newly enables "Profiling" and provides an incredible detailed few into the performance of our NodeJS (NestJs framework) ...
Roundtrip's user avatar
1 vote
1 answer
81 views

Intellij Failed to activate JFR synchronization

Trying to profile my app locally and it isn't working. It's saying Profiling is not supported on java versions prior to 1.8. If you're using oracle jdk prior to version 11, or hotspot jdk prior to ...
Spider's user avatar
  • 441
0 votes
0 answers
32 views

Why are L1 Cache Misses a lot less than L2 Cache Accesses?

I'm using perf_event_open to read L1 / L2 / L3 cache information using the raw performance events defined here. I am seeing interesting behavior: L1D misses < L2D accesses L2D misses < L3D ...
Kron's user avatar
  • 53
0 votes
1 answer
50 views

How can a C# WinUI3 project be profiled when the lag is outside of the methods called?

I have an issue where some code is taking a very long time to complete, so I tried to profile the CPU usage, and the area of the graph that contains the lag has absolutely no methods to display. In ...
John Glen's user avatar
  • 786
0 votes
0 answers
35 views

Malloc Memory Leaks "Allocated Prior To Attach"

SS Xcode debugger I've isolated the issue to the point where the entire app consists of just this single View Controller still getting same 36 leaks Google Maps SDK Version: 8.1.0 Xcode Version: 14.3 ...
Syed Muhammad's user avatar
0 votes
1 answer
59 views

profiling simple python script with VTune in ubuntu

I am trying to profile with VTune a simple python script. import numpy as np def my_function(): res = 0 for i in range(100000000): res = res + i final_res = np.log(res) return ...
chris sidi's user avatar
1 vote
1 answer
73 views

How to profile stack size for c programs

I am trying to optimize a program. The program do not make use of heap. I would like to profile the size of the stack to see: How big is the stack? Where the stack reach its peak? What is the trend ...
Vincenzo Greco's user avatar
0 votes
0 answers
10 views

GProf: I think the docs is doing a wrong claim about the expected error

According to the docs, if the sampling rate is s, and the number of samples that fall within some function f is n, then the expected error of the provided self-time is s*sqrt(n). That means that, in ...
ABu's user avatar
  • 10.5k
4 votes
2 answers
168 views

Why is pytorch slower on m1 pro 10 core vs linux CPU?

I ran the following benchmark from here . #!/usr/bin/env python3 import torch def batched_dot_mul_sum(a, b): '''Computes batched dot by multiplying and summing''' return a.mul(b).sum(-1) ...
piedpiper's user avatar
  • 1,232
0 votes
0 answers
32 views

Visual Studio profiler won't instrument a C# program

They have changed the profiler since the last time I dug into it and now I can't get anywhere. I'm trying to use the instrumentation as it shows me how it got to the lines that are the bottleneck. ...
Loren Pechtel's user avatar
0 votes
0 answers
44 views

GNU gprof showing calls in seconds instead of milliseconds

Is there an option i am missing that i couldnt find? i have searched the internets and all the articles show the flat profile in milliseconds without any added option tags, but my gprof outputs the ...
Pato Srna's user avatar
1 vote
0 answers
62 views

Better pandas performance profiling

Is there a better way to profile the performance of a large code base that uses pandas? Currently if I use standard tools like cProfile and even when using gprof2dot the call stacks for pandas aren't ...
pyCthon's user avatar
  • 11.8k
-2 votes
2 answers
45 views

how to find out which function(s) took most time during API invocation?

i am trying to debug why my spring boot application takes around 200-ms to respond to an API, and for subsequent hits of same API it takes around 10-ms. no caching is involved in API. I am using ...
Rajat Aggarwal's user avatar
1 vote
1 answer
61 views

Adding a custom systrace with React Native

According to the React Native documentation https://reactnative.dev/docs/systrace there is support for Systrace. However when adding a trace to my project I do not see the added event in the recorded ...
Nazgul's user avatar
  • 21
0 votes
0 answers
16 views

perf_event_open - unable to monitor HW_CACHE write and prefetch events

I am attempting to monitor PERF_TYPE_HW_CACHE events. I have found that I am able to measure read accesses and misses for each cache, but if I try to measure write or prefetch accesses/misses the ...
Kron's user avatar
  • 53
0 votes
2 answers
146 views

Lock contention on thread list lock

During profiling my Android application using Perfetto tool I've found many cases with thread locking with message "Lock contention on thread list lock (owner tid: ...)" Typical Perfetto ...
papandreus's user avatar
0 votes
0 answers
28 views

unable to understand gprof output

I have captured the gprof profiler output while running a c++ program. I got below logs I found that there are two functions which are consuming most time ie receiveXappMessages and load() function. I ...
myquest9 sh's user avatar
1 vote
1 answer
50 views

Profiling outliers using Async Profiler

I'm benchmarking my application using chronicle JLBH. Above 99th percentile, it shows there are runs that are taking more than 20micros (up to 99th it's less than 2 micros). I would like to profile ...
Abidi's user avatar
  • 7,866
0 votes
0 answers
11 views

profiling TensorFlow dataset

I'm trying to reproduce the TF profiling example from here. import tensorflow as tf tf.profiler.experimental.start('log_folder') dataset = tf.data.Dataset.range(10) dataset = dataset.map(lambda x: x)...
itamar kanter's user avatar
0 votes
1 answer
14 views

fastavro.schemaless_reader performance loss when profiling is enabled

I am attempting to profile a Python app that uses the fastavro library. I am profiling using the Datadog Profiler I run the application using the command ddtrace-run python -m app.main I enable the ...
nosajsnikta's user avatar
0 votes
0 answers
27 views

Profiling spark, try to understand the results

I've implemented a custom ShuffleManager and start to test it. I've try to profile Spark GroupByTest test using perf. I run the test with one executer per node and one core per executer. I've attached ...
Brave's user avatar
  • 159
0 votes
2 answers
65 views

Visual Studio 2022 CPU C# performance profiles yields only whole method timing and not per line

I have a pretty simple C# program, but when I try to find CPU bottleneck, the profiler only show me the CPU usage of the method, without showing me which part of the method consumed the most time. ...
user1595443's user avatar
1 vote
1 answer
58 views

Power Usage Profiling in Nsight?

New to Nsight and GPU programming. I need a way to evaluate the affect my code has on power usage in the GPU. This article from 2013 shows that the feature was part of Nsight's toolset at some point, ...
Lauren Vk's user avatar
1 vote
0 answers
26 views

Does ASLR impede QNX Neutrino C++ profiling?

When profiling with the Momentics IDE for arm aarch64 using "Sampling" without "Call Count Instrumentation" after compiling the executable with "-g", the "Execution ...
Benjamin Bihler's user avatar
0 votes
1 answer
48 views

Is there a good way to profile threading in Python?

I am new to threading in Python. I am trying to make a game using PyGame where a CPU-heavy function gets its own thread, and where another function (that gets user input and renders graphics to the ...
keepitwiel's user avatar
0 votes
0 answers
15 views

Is it possible to remotely perform app profiling similar to Android Studio's profiler?

I am working on an Android app that will be distributed to multiple users, and I would like to perform remote app profiling on their devices. In Android Studio, the built-in profiler allows me to ...
Hamza Khawaja's user avatar
0 votes
1 answer
25 views

JVisualVM to run scripts when CPU reached 100%

using JVisualVM 2.0.5 I found an instance where the CPU usage of my application reached 100%. Is there a way for me to run scripts to check what happened during this time (01:00:13PM). I checked my ...
RAFJR's user avatar
  • 372
0 votes
1 answer
48 views

Lettuce (Redis) + Mybatis (MySQL) take up most of the CPU of Spring Boot app in production - is it normal? how to optimize?

today I used https://github.com/async-profiler/async-profiler to check the CPU usage of my Spring Boot app (just a normal backend) in production. Surprisingly, Lettuce (Redis) + Mybatis (MySQL) take ...
ch271828n's user avatar
  • 16k
1 vote
1 answer
13 views

Does in the process of profiling j profiler offline do we still be needing GUI in the process?

if we use the offline profiling (using profiling API's, config files , triggers and all) and not use the GUI , will we still be needing GUI in the process of offline profiling. If not then does that ...
Siddhant Thapliyal's user avatar
0 votes
0 answers
29 views

Can I profile a binary for a different architecture?

Pretty much the title question. I just need to know how many times each instruction gets executed. I have an ARMv7 binary (a bare metal one actually), so I tried using QEMU, but I got non constant ...
Alessandro Bertulli's user avatar
0 votes
0 answers
33 views

How to improve app startup profiling for flutter?

I am facing a delay in my flutter app at startup for android, the delay is before execution of dart code begins. Mostly it is due to Geolocator plugin. I have raised a ticket with them, however I want ...
hrishikesh rajwade's user avatar
0 votes
0 answers
11 views

how to programatically run a website profiling and get total javascript execution time ( scripting in summary of google chrome profiler )

I am trying to run some profiling on hourly basis for an application. I need the total scripting duration value ( scripting in summary of google chrome profiler ). How to get this value by code ( and ...
Adharsh M's user avatar
  • 3,081
0 votes
0 answers
32 views

I want to measure durations using Timeline class in flutter, how to do it for multiple parallel tasks?

dart timeline works with a stack, but I am trying to measure traces of 10-15 asynchronous tasks which are running on UI thread, I am trying to do app startup profiling using Dev tools->timeline. I ...
hrishikesh rajwade's user avatar

1
2 3 4 5
121