📄 profil.2
字号:
.\" SCCSID: @(#)profil.2 8.3 1/28/91.TH profil 2.SH Nameprofil \- execution time profile.SH Syntax.nf.B void profil(buff, bufsiz, offset, scale).B char *buff;.B int bufsiz, offset, scale;.fi.SH Description.NXR "profil system call".NXR "execution time" "profiling"The.I buffpoints to an area of core whose length (in bytes) is given by.IR bufsiz .After this call, the user's program counter (pc)is examined each clock tick (on RISC machines, 4 milliseconds; on VAXmachines, 10 milliseconds);.I offsetis subtracted from the pc, and the result is multiplied by.IR scale .If the resulting number corresponds to a wordinside.I buff,that word is incremented..PPThe scale is interpreted as an unsigned,fixed-point fraction with binary point at theleft: 0x10000 gives a 1-1 mapping of program counter's to wordsin.I buff;0x8000 maps each pair of instruction wordstogether.0x2 maps all instructions onto the beginning of.I buff,producing a non-interrupting core clock..PPProfiling is turned off by giving a.I scaleof 0 or 1.It is renderedineffective by giving a.I bufsizof 0.Profiling is turned off when an.I execveis executed, but remains on in both child and parent after a.IR fork .Profiling is turned off if an update in.I buffwould cause a memory fault..SH See Alsogprof(1) (for VAX only), setitimer(2), monitor(3)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -