N
N
Nikita2022-04-13 22:37:42
C++ / C#
Nikita, 2022-04-13 22:37:42

How to see how long it takes to execute each function of a program (C++)?

I have a C++ program , it is broken into many classes and functions. Is there any software that allows you to see how long each function takes to complete?

for example

main() - 80 seconds
TestClass::func0 - 10 seconds
TestClass::func1 - 4 seconds
TestClass::func2 - 65 seconds

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-04-14
@gth-other

You need a profiler.
Visual Studio has its own.
I also advise you to read this article:
https://habr.com/en/post/482040/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question