vernier 1.2.0 → 1.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
  SHA256:
3
- metadata.gz: 56faced9b5a5fe99a124ab7743609eb23a981ca27888a5a8957e509d28f508ef
4
- data.tar.gz: 0b258dc2f1f4c143568527213a3f39055a44aed3c983c84a14f71d6af68c900a
3
+ metadata.gz: 89d2c876f873a04f937175301ba227c5dd3e883f0e2fefbaf6927f409c88d511
4
+ data.tar.gz: 469d58efbd5ea8ef87288d0d7c07e74a4ede94aa60743afce80ed57904f4e40e
5
5
  SHA512:
6
- metadata.gz: '096133a98cfc38236c89025c51f70a0c4def9c6208031775d11640291d08b17d53fb2817d6f9b7fea1e7d0551ac0e58471d757fd5568c732969d73134ca20fc3'
7
- data.tar.gz: 063ce46032770d8d2cd161071587dea386af0497a9437d8bc19148c54263e32c2d4d00b164c926ff19f1236f704f1c76aabff8be63bb2b66cd7409f69742004b
6
+ metadata.gz: 41bd857e2a36ddf757ffd5139d3b897202039ac8fb21020856c7f44b979b34488d154d2f88fa3a397124a131109be9c047a765d249d9b190a7f320d66c33c0c5
7
+ data.tar.gz: fc6141244154307323bb0460ff7142c20cf7d57e7b6f03caf33b9febe9a975b82c1bdbb435174645523287edc4675ea551d37c00baf5a02137f1bc56ddd4a6ef
@@ -1114,7 +1114,11 @@ class Thread {
1114
1114
  sample.sample();
1115
1115
 
1116
1116
  int stack_idx = translator.translate(frame_list, sample);
1117
- allocation_samples.record_sample(stack_idx, TimeStamp::Now(), 1);
1117
+ if (stack_idx >= 0) {
1118
+ allocation_samples.record_sample(stack_idx, TimeStamp::Now(), 1);
1119
+ } else {
1120
+ // TODO: should we log an empty frame?
1121
+ }
1118
1122
  }
1119
1123
 
1120
1124
  void set_state(State new_state) {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vernier
4
- VERSION = "1.2.0"
4
+ VERSION = "1.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vernier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawthorn