Make ruby2crystal convert
Signed-off-by: Bai Jing 799286817@qq.com --- stats/crystal/libmicro.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 stats/crystal/libmicro.cr
diff --git a/stats/crystal/libmicro.cr b/stats/crystal/libmicro.cr new file mode 100755 index 00000000..2a3f42f0 --- /dev/null +++ b/stats/crystal/libmicro.cr @@ -0,0 +1,10 @@ +#!/usr/bin/env crystal + +# prc thr usecs/call samples errors cnt/samp +# close_tmp 1 1 0.61880 201 0 640 + +while (line = STDIN.gets) + next unless line =~ /^(\w+)\s+\S+\s+\S+\s+(\S+)/ + + puts "#{$1}: #{$2}" +end
Please ignore it.
Thanks, Baijing
On Thu, Nov 26, 2020 at 09:42:26AM +0800, Bai Jing wrote:
Make ruby2crystal convert
Signed-off-by: Bai Jing 799286817@qq.com
stats/crystal/libmicro.cr | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 stats/crystal/libmicro.cr
diff --git a/stats/crystal/libmicro.cr b/stats/crystal/libmicro.cr new file mode 100755 index 00000000..2a3f42f0 --- /dev/null +++ b/stats/crystal/libmicro.cr @@ -0,0 +1,10 @@ +#!/usr/bin/env crystal
+# prc thr usecs/call samples errors cnt/samp +# close_tmp 1 1 0.61880 201 0 640
+while (line = STDIN.gets)
- next unless line =~ /^(\w+)\s+\S+\s+\S+\s+(\S+)/
- puts "#{$1}: #{$2}"
+end
2.23.0