ãã¯ãã·ã¹ãã ã³ã¼ã«ãå©ç¨ããæ¹ãéãã®ãï¼ ã§ã¯å ã«æãã3種é¡ã®ãµã³ãã«ããã°ã©ã ã調ã¹ã¦ãå®éã«ã·ã¹ãã ã³ã¼ã«ãå¼ã³åºãã¦ããåæ°ã¨ãã·ã¹ãã ã³ã¼ã«ãã¨ã®å¦çæéã調ã¹ã¦ã¿ããããã§ã¯truss(1)ã使ãããOSã«ãã£ã¦ã¯ãããstraceããdtrussã«ãªããæå®ãããªãã·ã§ã³ãå¤ãããã¨ãããã®ã§ãæ«å°¾ã®èª¬æãåèã«ãã¦ã»ããã æåã«ãã·ã¹ãã ã³ã¼ã«ã使ããã«ä½ã£ããµã³ãã«ããã°ã©ã ã調ã¹ã¦ã¿ãããtruss(1)ãå®è¡ããã¨ã以ä¸ã®ããã«ãªãã % rm -f out % touch out % truss -Sc ./copy-fgetc-fputc syscall seconds calls errors readlink 0.000016482 1 1 lseek 0.000012292 1 0 mmap 0.000111746 8 0 open 0.0001827
{{#tags}}- {{label}}
{{/tags}}