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

📄 log-analyze

📁 基于sipfoundy 公司开发的sipx协议API
💻
字号:
#! /bin/perl# Script to analyze the logging output from CallScriptDriver to see# what the average load on the System Under Test was.# Called with two arguments, the 'number of jobs' and the 'number of# seconds to run' from the execution of CallScriptDriver.  Standard# input is the log.$jobs = $ARGV[0];$seconds = $ARGV[1];$pauses = 0;while (<STDIN>) {    if (/^pause random \d+ \(pause (\d+)\)/) {        $pauses += $1;    }}$pauses = int($pauses / 1000);print "jobs = $jobs, seconds = $seconds, pauses = $pauses, load average = ",    $jobs - $pauses / $seconds, "\n";

⌨️ 快捷键说明

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