1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\" the glibc-info pages are very helpful here
5 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI all rights reserved.
6 .\" Translated Thu 05 Dec 2002 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
8 .TH MTRACE 3 2002-07-20 "GNU" "Linux Programmer's Manual"
10 .\"O mtrace, muntrace \- malloc debugging
12 mtrace, muntrace \- malloc debugging
15 .B "#include <mcheck.h>"
17 .B "void mtrace(void);"
19 .B "void muntrace(void);"
24 .\"O installs handlers for
31 .\"O disables these handlers.
38 ¤Î¥Ï¥ó¥É¥é¤òÁȤ߹þ¤à¡£
41 ¤Ï¤³¤ì¤é¤Î¥Ï¥ó¥É¥é¤ò²ò½ü¤¹¤ë¡£
43 .\"O The environment variable
45 .\"O defines a file where
47 .\"O writes its output.
52 ¤¬½ÐÎϤò½ñ¤½Ð¤¹¥Õ¥¡¥¤¥ë¤ò»ØÄꤹ¤ë¡£
53 .\"O This file must be writable to the user or
56 ¥æ¡¼¥¶¤¬½ñ¤¹þ¤ß¸¢¸Â¤ò»ý¤Ä¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
57 ½ñ¤¹þ¤ß¸¢¸Â¤¬¤Ê¤¤¾ì¹ç¡¢
60 .\"O If the file is not empty it will be truncated.
61 .\" motoki: truncate ¤Ã¤Æ¡Ö¸å¤í¤òÀڤäƤ·¤Þ¤¦¡×¤è¤¦¤Ê°ÕÌ£¤Î¤Ï¤º¤À¤±¤É
62 .\" motoki: ¼ÂºÝ¤Ë»î¤·¤Æ¤ß¤ë¤È¡¢¸µ¤Î¥Õ¥¡¥¤¥ë¤ò¾å½ñ¤¤¹¤ë¤è¤¦¤Ç¤¹¡¦¡¦¡¦
63 ¥Õ¥¡¥¤¥ë¤¬¶õ¤Ç¤Ê¤¤¾ì¹ç¡¢¥Õ¥¡¥¤¥ë¤Î¸µ¤ÎÆâÍƤò¾å½ñ¤¤¹¤ë¡£
64 .\"O .SH "CONFORMING TO"
66 .\"O These are GNU extensions.
67 ¤³¤Î´Ø¿ô¤Ï GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
72 .\"O will be ASCII but not in a friendly format.
73 .\"O So glibc comes with a perl-script called mtrace to make sense of it.
75 ¤Î½ÐÎÏ¤Ï ASCII ·Á¼°¤À¤¬¡¢¿Í¤¬Æɤߤ䤹¤¤¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤Ï¤Ê¤¤¡£
76 ¤½¤³¤Ç¡¢glibc ¤Ë¤Ï mtrace ½ÐÎϤòʬ¤«¤ê¤ä¤¹¤¤·Á¼°¤ËÊÑ´¹¤¹¤ë
77 perl ¥¹¥¯¥ê¥×¥È¤¬ÉÕ°¤·¤Æ¤¤¤ë¡£