1 .\" Hey Emacs! This file is -*- nroff -*- source.
3 .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Modified Fri Jun 23 01:35:19 1995 Andries Brouwer <aeb@cwi.nl>
26 .\" (prompted by Bas V. de Bakker <bas@phys.uva.nl>)
27 .\" Corrected (and moved to man3), 980612, aeb
29 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
30 .\" all rights reserved.
31 .\" Translated San Feb 23 20:40:50 JST 1997
32 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
33 .\" Modified Sun Jun 21 17:30:21 JST 1998
34 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
35 .\" Updated & Modified Thu Feb 17 00:57:49 JST 2005
36 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
38 .\"WORD: profile プロファイル
41 .\"WORD: library ライブラリ
45 .\"WORD: increment インクリメント
46 .\"WORD: core dump コア・ダンプ
48 .TH PROFIL 3 2007-07-26 "Linux" "Linux Programmer's Manual"
51 .\"O profil \- execution time profile
52 profil \- 実行時間プロファイル (profile)
55 .B #include <unistd.h>
57 .BI "int profil(unsigned short *" buf ", size_t " bufsiz \
58 ", size_t " offset ", unsigned int " scale );
61 .\"O Feature Test Macro Requirements for glibc (see
62 .\"O .BR feature_test_macros (7)):
64 .RB ( feature_test_macros (7)
69 _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
72 .\"O This routine provides a means to find out in what areas your program
73 .\"O spends most of its time.
79 .\"O Every virtual 10 milliseconds, the user's program counter (PC)
81 このルーティンはプログラムのどこの部分で時間を費やしているかを調べる
86 バイトのメモリを指している。仮想の 10 ミリ秒ごとに、ユーザーの
87 プログラム・カウンター (PC) が検査される:
89 .\"O is subtracted and the result is multiplied by
91 .\"O and divided by 65536.
96 .\"O If the resulting value is less than
98 .\"O then the corresponding entry in
105 の対応するエントリがインクリメントされる。
108 .\"O is NULL, profiling is disabled.
110 が NULL ならば、プロファイル (profile) は無効にされる。
111 .\"O .SH "RETURN VALUE"
113 .\"O Zero is always returned.
115 .\"O .SH "CONFORMING TO"
117 .\"O Similar to a call in SVr4 (but not POSIX.1-2001).
118 SVr4 のコールに似ている (しかし POSIX.1-2001 ではない)。
122 .\"O cannot be used on a program that also uses
124 .\"O interval timers (see
125 .\"O .BR setitimer (2)).
129 インターバル・タイマーも使用しているプログラムでは使用できない
133 .\"O True kernel profiling provides more accurate results.
134 .\"O Libc 4.4 contained a kernel patch providing a system call profil.
135 本当のカーネル・プロファイルはより正確な結果を与える。
136 libc 4.4 にはシステムコール profil を提供するための