I am writing in C under linux. There was a question of optimization. Advise the profiler and what to read on this topic.

Closed due to the fact that off-topic participants Oceinic , Mstislav Pavlov , Vladimir Glinskikh , Peter Olson , Aslan Kussein Oct 13 '15 at 3:01 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • " Questionnaires are forbidden on Stack Overflow in Russian . To get an answer, rephrase your question so that it can be given an unambiguously correct answer." - Vladimir Glinskikh, Peter Olson, Aslan Kussein
If the question can be reformulated according to the rules set out in the certificate , edit it .

    2 answers 2

    since under Linux, you probably use gcc, so I think you can try the built-in tools for a start - gprof

    • gcc of course. Thank. I will dig. - Alexey Kotov

    Valgrind . Frankly speaking, the hands themselves do not reach to go deeper, but I hope you have this time.

    • Valgrind is not exactly a profiler. Yes, he can measure something, but his main task is to find memory leaks and access errors. But using it, you can see who, for example, allocated a lot / often memory and optimize this piece - very often it gives a good gain. - KoVadim
    • As far as I understand the tasks of the profiler - help in finding bottlenecks in the code and their further optimization. I think valgrind can help with that. - AlexDenisov