straces 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51245154ff7877023486583fd33719bbfd50a9ef490bea0a132ced5a162a5b61
4
- data.tar.gz: 65bc6d33500b88d51a93b96a0d5011e8b8e5accd7004863e2b1251d32d6fa129
3
+ metadata.gz: 6cdeca202c78f81117846d3d2dbdccc0b3190475a03519d5c42a891c14fde63a
4
+ data.tar.gz: 92ccc3640b9f193631fc691b1de7441ed9979fe048dc4662add725e02f39825d
5
5
  SHA512:
6
- metadata.gz: acf8587a2631bdd8eff809a1ed4b655718a403b722ec40d08d97f8b7e6e989a39b74154a217bcead9b51c1deac91aaf7df1b2fc8809cf2ad8518543c039d6165
7
- data.tar.gz: b119b17004b3019bd434f6abd3900790ac66bf92f00336003d6d2f5627aa20ee76fe5283c510e5c8c87bfb1ddae45b0b0dd0e1bf3df9fff33526f8fe598521c5
6
+ metadata.gz: c8db295234a785b2f0dc021a31bee1ac82da05fa6edbef13025f5aea47bbce8eb260ec449ed4e91f5455db2c3c5df219ebe8cbf498bd3cf99acc17271a6afde8
7
+ data.tar.gz: c71f806ded46de252294eaef9d99dacc7bf89b56e9b31b9639e2529e97f958c756b97b23aaa95d9c18c6087eeceb105c25b9257a84fa5338319cd0278b4614aa
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- straces (0.1.0)
4
+ straces (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "straces"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.1.1"
8
8
  spec.authors = ["Matti Paksula"]
9
9
  spec.email = ["matti.paksula@iki.fi"]
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: straces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula