catpm 0.8.0 → 0.8.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
  SHA256:
3
- metadata.gz: e8743ae5cee8571b73555728ed9a236ff18819bb90950460fce45f7ecbe794c1
4
- data.tar.gz: 4b637bea6dfa9188f389ed8c65caa4f6b059558f84fa22de58fad62782d49ccf
3
+ metadata.gz: 5e79483c6546d21e4b6054d481f3625616eb0c4044f1251d11be907983dadeb7
4
+ data.tar.gz: 555afaca6bfb09499fea0c24359ee7709d8b982759fb6717a577882d64c543cc
5
5
  SHA512:
6
- metadata.gz: f89c56d07a96e846123f73da00074fd1a3a86842d6d5826bfbb26dafee8e1534f03e9bd556b3cdaf425282dbbc815a93df6c13a8e14a8e3eec1fe08d7ff3cdf6
7
- data.tar.gz: a911ea482f0bc5b4dc36550d06c144f9310e31c911180b8df187ae980a8eff91f3d9a4beee75fc698f9b3356598a28e6e60c6bb9dbd6c573ea9264f005356485
6
+ metadata.gz: 2971732b88f54566048545753164728886136408fc0db9d82e20652c08b098973d0889a839fd66cd4a504def1a9c576cf2eab822dac9b381eda0f2e40d908123
7
+ data.tar.gz: c8c7b98c039e7c483e8d4e3e3a9e8c9f06a58e7cd396d303da5bd37c9771d6b463d84d62c9da5c9f87e3e1f688ebefe7bb8b016d7eac477030588513b2e0988c
@@ -91,6 +91,7 @@ module Catpm
91
91
  end
92
92
 
93
93
  # Inject call tree segments from sampler (replaces TracePoint-based CallTracer)
94
+ ctrl_idx = segments.index { |s| s[:type] == 'controller' }
94
95
  if Catpm.config.instrument_call_tree && req_segments
95
96
  tree_segs = req_segments.call_tree_segments
96
97
  if tree_segs.any?
@@ -260,6 +261,7 @@ module Catpm
260
261
  segments.unshift(root_segment)
261
262
 
262
263
  # Inject call tree segments from sampler
264
+ ctrl_idx = segments.index { |s| s[:type] == 'controller' }
263
265
  if Catpm.config.instrument_call_tree && req_segments
264
266
  tree_segs = req_segments.call_tree_segments
265
267
  if tree_segs.any?
data/lib/catpm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Catpm
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: catpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''