⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profextr.pl

📁 Minix比较全的源码
💻 PL
字号:
#!/usr/local/bin/perl$SAMPLE_SZ = 12;$file = shift;open (FILE, $file) or die ("Unable to open $file: $!");$_ = <FILE>;until (eof(FILE)) {                                   read(FILE, $buf, $SAMPLE_SZ) == $SAMPLE_SZ  or die ("Short read.");  ($exe, $pc) = unpack("A8i", $buf);              # System and clock task are in kernel image.  #  $exe =~ s/^system/kernel/;                    #  $exe =~ s/^clock/kernel/;                       # Memory has p_name "mem" in kernel.          #  $exe =~ s/^mem/memory/;                         $pcs{$pc}++ if ($exe eq "fs");}foreach $pc (sort { $a <=> $b } keys %pcs) {	print "$pc $pcs{$pc}\n";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -