straces 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/straces.rb +4 -1
- data/straces.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cdeca202c78f81117846d3d2dbdccc0b3190475a03519d5c42a891c14fde63a
|
4
|
+
data.tar.gz: 92ccc3640b9f193631fc691b1de7441ed9979fe048dc4662add725e02f39825d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8db295234a785b2f0dc021a31bee1ac82da05fa6edbef13025f5aea47bbce8eb260ec449ed4e91f5455db2c3c5df219ebe8cbf498bd3cf99acc17271a6afde8
|
7
|
+
data.tar.gz: c71f806ded46de252294eaef9d99dacc7bf89b56e9b31b9639e2529e97f958c756b97b23aaa95d9c18c6087eeceb105c25b9257a84fa5338319cd0278b4614aa
|
data/Gemfile.lock
CHANGED
data/lib/straces.rb
CHANGED
@@ -43,6 +43,10 @@ def strace_parse(line)
|
|
43
43
|
return nil if line.end_with? "+++ exited with 0 +++"
|
44
44
|
# accept4(3,
|
45
45
|
return nil if line.end_with? ", "
|
46
|
+
return nil if line.end_with? "<detached ...>"
|
47
|
+
|
48
|
+
p line if ENV['STRACES_DEBUG'] == "yes"
|
49
|
+
|
46
50
|
matcher = line.match /^(?<pid>\d*)\s?(?<time>\d\d:\d\d:\d\d\.?\d*)?\s?(?<interrupted>\<\.\.\.)?(?<call>[^\(]+)(?<middle>.*)?\<(?<timing>\d+\.\d+)\>$/
|
47
51
|
|
48
52
|
#63796 11:18:12 clock_gettime(CLOCK_MONOTONIC, {tv_sec=27510, tv_nsec=693534954}) = 0 <0.000108>
|
@@ -55,7 +59,6 @@ def strace_parse(line)
|
|
55
59
|
[matcher[:call], matcher[:middle]]
|
56
60
|
end
|
57
61
|
|
58
|
-
# <detached ..>
|
59
62
|
timing = Float matcher[:timing] rescue 0.0
|
60
63
|
|
61
64
|
if matcher
|
data/straces.gemspec
CHANGED