neolytics 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 662b2a85036ea4c9aa8be9d1babd5c0730df6048
4
- data.tar.gz: c9a8576bdb9226b227b534321dedb93b236a72c1
3
+ metadata.gz: fa45df33cbeb1be0066a25c6829d507f6a68e1ce
4
+ data.tar.gz: 2ed18915acbf9844b2d9a6690d6a8a248dc5cbf7
5
5
  SHA512:
6
- metadata.gz: b431176ee6820f19bfad64a21e5f6c6cdb6a9ef7bac7e7ca6de324fbb4b0acea4fb5349b42dcd15e1fcf00aedc86d23a8d0931945f869d6aae0f5237f556e924
7
- data.tar.gz: dd47cdaf7397b06af5004d8864be0ba98925a9b08df6583f37fcd904c5ad0bce964a6987d188edfb847e54b5a75d49949ba4babd8d66c286e74ee38ccc5bfa99
6
+ metadata.gz: d5563ab232514328e93d09c8b9993643d8616106773bcda70037aa9b93b0449de66442f9667273027bfada35d6f93b116e605944d8f23f50546869f891f0e8f3
7
+ data.tar.gz: 1bba9ba192f92abf93167a6651acba7c0ab17e4ddaaeb2f4aa014d3328b786c09f2022c8222b0239b8ba2e612fb9bd24f49dac58aa21d6ee65c92e4e12e66552
@@ -0,0 +1,23 @@
1
+ node.execution_index,node.event,node.defined_class,node.method_id,node.lineno
2
+ 860,call,ActiveSupport::Inflector::Inflections,plural,105
3
+ 861,line,ActiveSupport::Inflector::Inflections,plural,106
4
+ 862,c_call,Kernel,is_a?,106
5
+ 863,c_return,Kernel,is_a?,106
6
+ 864,line,ActiveSupport::Inflector::Inflections,plural,107
7
+ 865,c_call,Array,delete,107
8
+ 866,c_return,Array,delete,107
9
+ 867,line,ActiveSupport::Inflector::Inflections,plural,108
10
+ 868,c_call,Array,prepend,108
11
+ 869,c_return,Array,prepend,108
12
+ 870,return,ActiveSupport::Inflector::Inflections,plural,109
13
+ 860,call,ActiveSupport::Inflector::Inflections,plural,105
14
+ 861,line,ActiveSupport::Inflector::Inflections,plural,106
15
+ 862,c_call,Kernel,is_a?,106
16
+ 863,c_return,Kernel,is_a?,106
17
+ 864,line,ActiveSupport::Inflector::Inflections,plural,107
18
+ 865,c_call,Array,delete,107
19
+ 866,c_return,Array,delete,107
20
+ 867,line,ActiveSupport::Inflector::Inflections,plural,108
21
+ 868,c_call,Array,prepend,108
22
+ 869,c_return,Array,prepend,108
23
+ 870,return,ActiveSupport::Inflector::Inflections,plural,109
@@ -64,7 +64,7 @@ module Neo4Apis
64
64
  node.total_execution_time = total_execution_time if total_execution_time
65
65
  node.execution_index = execution_index
66
66
 
67
- node.path = if tp.path == '(eval)'
67
+ node.path = if ['(eval)', '(irb)'].include?(tp.path)
68
68
  tp.path
69
69
  else
70
70
  Pathname.new(tp.path).realpath.to_s
@@ -87,7 +87,7 @@ module Neo4Apis
87
87
  end
88
88
 
89
89
  def get_file_line(path, lineno)
90
- return '' if path == '(eval)'
90
+ return '' if ['(eval)', '(irb)'].include?(path)
91
91
  FILE_LINES[path] ||= File.read(path).lines
92
92
 
93
93
  FILE_LINES[path][lineno - 1]
@@ -38,7 +38,7 @@ module Neolytics
38
38
  @neo4apis_session.instance_variable_get('@buffer').flush
39
39
  query = <<QUERY
40
40
  MATCH (tp:TracePoint)
41
- WHERE NOT(tp.path IS NULL) AND NOT(tp.path = '(eval)')
41
+ WHERE NOT(tp.path IS NULL) AND NOT(tp.path = '(eval)' OR tp.path = '(irb)')
42
42
  RETURN DISTINCT tp.path AS path
43
43
  QUERY
44
44
  file_paths = @neo4j_session.query(query).map(&:path)
@@ -94,6 +94,8 @@ QUERY
94
94
  begin
95
95
  last_run_time = 1_000_000.0 * (Time.now - last_tracepoint_end_time) if last_tracepoint_end_time
96
96
 
97
+ next if tp.path.match(%r{/neolytics/})
98
+
97
99
  start = Time.now
98
100
  output << tracepoint_string(tp, indent)
99
101
 
@@ -1,3 +1,3 @@
1
1
  module Neolytics
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neolytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: neo4apis
@@ -127,6 +127,7 @@ files:
127
127
  - examples/output/cyclomatic_complexity_and_runtime.csv
128
128
  - examples/output/numeric_class_hierarchy.png
129
129
  - examples/output/numeric_return_values.csv
130
+ - examples/output/plural_trace_points.csv
130
131
  - examples/output/time_spent_by_method.csv
131
132
  - lib/neo4apis/neolytics.rb
132
133
  - lib/neo4apis/neolytics/trace_point_helpers.rb