On Mon, Nov 16, 2020 at 11:37:53AM +0800, Bai Jing wrote:
[input] prc thr usecs/call samples errors cnt/samp getpid 1 1 0.15629 193 0 100000
[output] getpid: 0.15629
Signed-off-by: Bai Jing 799286817@qq.com
stats/libmicro | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 stats/libmicro
diff --git a/stats/libmicro b/stats/libmicro new file mode 100755 index 00000000..bbfb6db5 --- /dev/null +++ b/stats/libmicro @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby
add license line add frozen string literal comment
Thanks, Luan Shengde
+# prc thr usecs/call samples errors cnt/samp +# close_tmp 1 1 0.61880 201 0 640
+$stdin.each_line do |line|
- case line
- when /^(\w+)\s+\S+\s+\S+\s+(\S+)/
- puts "#{$1}: #{$2}"
- end
+end
2.23.0