Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [profiling]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer

Profiling scientific computing codes on MacOS

I'm a PhD working in the mechanical engineering community. I constantly use open-source FEM libraries to solve my problems. Up to now I didn't really care about the performance of my codes, mainly ...
FEGirl's user avatar
  • 405
2 votes
1 answer

Profiling optimized C code using gprof

I have a simple C code with many function calls, which I profiled using gprof. ...
user avatar
4 votes
1 answer

Using PAPI in PETSc code

I am trying to count the number of cache misses, total cycles, etc. per iteration of a for loop inside MatMult_SeqSBAIJ_2() . I'...
i8086's user avatar
  • 61
4 votes
1 answer

Determining Hardware Bottlenecks

I know this question is somewhat familiar to my previous question found here, however I am now coming at it from a slightly different and more general angle. Let's say I have a code whose runtime is ...
Godric Seer's user avatar
  • 4,597
3 votes
3 answers

How do I get reliable timing data for time spent in function calls in my code?

This question is a follow-up to Fortran: Best way to time sections of your code?. If I want to time functions in my code, I know I could use gprof or kcachegrind. I also know that the results from ...
Geoff Oxberry's user avatar
15 votes
3 answers

Fortran: Best way to time sections of your code?

Sometimes while optimizing code it is required to time certain portions of the code, I have been using the following for years but was wondering if there is a simpler/better way to do it? ...
Isopycnal Oscillation's user avatar