profil(3) Library Functions Manual profil(3) profil - LIBRARY Standard C library (libc, -lc) #include int profil(unsigned short *buf, size_t bufsiz, size_t offset, unsigned int scale); glibc (. feature_test_macros(7)): profil(): glibc 2.21: _DEFAULT_SOURCE glibc 2.19 2.20: _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) glibc 2.19, : _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500) . buf bufsiz . 10 (PC): offset, scale 65536. bufsiz, buf . buf NULL, . . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |profil() | | MT-Unsafe | +----------------------------+----------------------------------------------------------+--------------------------+ None. Similar to a call in SVr4. profil() , ITIMER_PROF ( setitimer(2)). True kernel profiling provides more accurate results. . gprof(1), sprof(1), setitimer(2), sigaction(2), signal(2) Alexey, Azamat Hackimov , kogamatranslator49 , Kogan, Max Is , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . profil(3)