.\" Copyright (c) 1980, 1991, 1992, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#) moncontrol. 3 8.1 (Berkeley) 6/4/93 .\" %FreeBSD: src/lib/libc/gmon/moncontrol. 3, v 1.6. 2.5 2001/12/14 18:33:54 ru Exp % .\" .\" $FreeBSD: doc/ja_JP.eucJP/man/man3/moncontrol. 3, v 1.3 2002/11/03 06:38:28 horikawa Exp $ .Dd June 4, 1993 .Dt MONCONTROL 3 .Os .Sh ¸íĪ .Nm moncontrol , .Nm monstartup .Nd ½ÇÇà ÇÁ·ÎÆÄÀÏÀÇ Á¦¾î .Sh ÇÁ·Î±×·¥ ¶óÀ̺귯¸® .Lb libc .Sh ¼­½Ä .In sys/types.h .Ft int .Fn moncontrol "int mode" .Ft int .Fn monstartup "u_long *lowpc" "u_long *highpc" .Sh ÇØ¼³ .Xr cc 1 ÀÇ .Fl pg ¿É¼ÇÀ¸·Î ÄÄÆÄÀÏ ÇÑ ½ÇÇà °¡´É ÇÁ·Î±×·¥¿¡´Â, .Xr gprof 1 ¼Òȯ ±×·¡ÇÁ ½ÇÇà ÇÁ·Î filerÀÇ Åë°è Á¤º¸¸¦ ¼öÁýÇϱâ À§ÇÑ ÇÔ¼ö ¼ÒȯÀÌ ÀÚµ¿ÀûÀ¸·Î Â¥³Ö¾îÁý´Ï´Ù. ÀüÇüÀûÀÎ ¿ÀÆÛ·¹À̼ÇÀÇ °æ¿ì, ÇÁ·ÎÆÄÀÏ Ã¤Ãë´Â ÇÁ·Î±×·¥ÀÇ ±âµ¿½Ã¿¡ ½ÃÀÛÇØ, ÇÁ·Î±×·¥ ¼ÒȯÀÌ Á¾·áÇßÀ» ¶§¿¡ ³¡³³´Ï´Ù. ÇÁ·Î±×·¥ÀÌ Á¾·áÇϸé(ÀÚ), ÇÁ·Î ÆÄÀϸµ µ¥ÀÌÅÍ´Â ÆÄÀÏ .Em progname.gmon ¿¡ ±âÀÔÇØÁö°í (progname ´Â ÇÁ·Î±×·¥ÀÇ À̸§), .Xr gprof 1 ±×¸®°í °á°ú°¡ °Ë»çµË´Ï´Ù. .Pp .Fn moncontrol (Àº)´Â, ÇÁ·Î±×·¥¿¡¼­ÀÇ ÇÁ·ÎÆÄÀÏ ÃëµæÀ» ¼±ÅÃÀûÀ¸·Î Á¦¾îÇÕ´Ï´Ù. ÇÁ·ÎÆÄÀÏ ÃëµæÀº, ÇÁ·Î±×·¥ÀÌ ±âµ¿µÇ¸é(ÀÚ) ½ÃÀ۵˴ϴÙ. È÷½ºÆ®±×¶÷ƽġ¿Í ÇÔ¼ö È£Ãâ ȸ¼öÀÇ ¼öÁýÀ» ¸ØÃß·Á¸é .Fn moncontrol 0 (À»)¸¦ »ç¿ëÇØ, È÷½ºÆ®±×¶÷ƽġ¿Í ÇÔ¼ö È£Ãâ ȸ¼öÀÇ ¼öÁýÀ» Àç°³ÇÏ·Á¸é .Fn moncontrol 1 (À»)¸¦ »ç¿ëÇÕ´Ï´Ù. ÀÌ ±â´É¿¡ ÀÇÇØ, ƯÁ¤ÀÇ ¿ÀÆÛ·¹À̼ÇÀÇ ÄÚ½ºÆ®¸¦ °èÃø ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÇÁ·Î±×·¥ÀÇ Á¾·á½Ã¿¡´Â, .Fn moncontrol »óÅ¿¡ °ü°è¾øÀÌ Ãâ·Â ÆÄÀÏÀÌ ÀÛ¼ºµÇ´Â °Í¿¡ ÁÖÀÇÇØ ÁÖ¼¼¿ä. .Pp .Fl pg ±×¸®°í ·ÎµåÇÏÁö ¾ÊÀº ÇÁ·Î±×·¥¿¡¼­µµ, ÇÁ·ÎÆÄÀÏÀ» ÃëµæÇÑ´Ù ÁÖ¼ÒÀÇ ¹üÀ§¸¦ ÁöÁ¤ÇØ .Fn monstartup (À»)¸¦ È£ÃâÇØ, ÇÁ·Î ÆÄÀϸµ Åë°è Á¤º¸¸¦ ¼±ÅÃÀûÀ¸·Î ¼öÁýÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù. »ùÇà ÃßÃâÇÏ´Â ÁÖ¼ÒÀÇ ¹üÀ§´Â, .Fa lowpc (¿Í)°ú .Fa highpc ±×¸®°í ÁöÁ¤ÇÕ´Ï´Ù. »ùÇà ÃßÃâµÇ´Â ÃÖÇÏÁ¤µµ ÁÖ¼Ò´Â .Fa lowpc ±×¸®°í, ÃÖ»óÁ¤µµ ÁÖ¼Ò´Â .Fa highpc ÀÇ ¹Ù·Î ¾Æ·¡°¡ µË´Ï´Ù. Ãâ·ÂÀÇ ¼Òȯ ±×·¡ÇÁ¿¡ Ç¥½ÃµÇ´Â °ÍÀº, ÀÌ ¹üÀ§ °¡¿îµ¥, .Xr cc 1 ÀÇ .Fl pg ¿É¼ÇÀ¸·Î ÄÄÆÄÀÏ ÇÑ ÇÔ¼ö¸¸ÀÔ´Ï´Ù¸¸, ½ÇÇà ½Ã°£ÀÌ °èÃø µÇ´Â °ÍÀº, ÀÌ ÁÖ¼Ò ¹üÀ§ÀÇ ¸ðµç ÇÔ¼öÀÔ´Ï´Ù. ÇÁ·ÎÆÄÀÏ Ã¤Ãë´Â, .Fn monstartup (À¸)·ÎºÎÅÍ µ¹¾Æ¿ÔÀ» ¶§¿¡ ½ÃÀ۵˴ϴÙ. .Sh °ü·Ã ÆÄÀÏ .Bl -tag -width progname.gmon -compact .It Pa progname.gmon ½ÇÇà µ¥ÀÌÅÍ ÆÄÀÏ .El .Sh °ü·Ã Ç׸ñ .Xr cc 1 , .Xr gprof 1 , .Xr profil 2 , .Xr clocks 7 .\"kuma 1999-11-12