xcprofiler 0.2.2 → 0.2.3

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: bde059146e60da92079977e347ddf9d8fc2bc600
4
- data.tar.gz: 27d2eecfd366eed584767685fffbce1de830055e
3
+ metadata.gz: 6002ff4060c6755639eba67827b54654e14189a6
4
+ data.tar.gz: aabc2538e822a3078fd4ad822beb5bc447b085a7
5
5
  SHA512:
6
- metadata.gz: 5869a5c6ca211d2653b9e59174568ca0d6651588795fac185e6265fbf69e553be36f11260576a7209d5a3c90878ed1f255cfce46bd05e545797ecd5e6cdabc0d
7
- data.tar.gz: 161930a3f5d13e839e11dde404c0d3acbe22df7f29a81ba14e04d2a80453c49c36c5c08de7c37e9fb5bccf23b37d4e28ef50e23f15069523e6a3b809f2068c00
6
+ metadata.gz: b50556716d4175bb716101d902987e500b7bc955a99de30c6979e5ce953bba14f96f21a6968aea7c7454e6e9032bcc8a85d62da499ffb516a35262bb107df2b3
7
+ data.tar.gz: a5d27b07f198116903d7d0f3533f7b4c2939bac33eef1e9b6129b49b41f9af5f9d7c3b8a6d950ecce3bbf3e1b45d5719709c673901924c5dfef18da4eaf86f75
@@ -13,8 +13,8 @@ module Xcprofiler
13
13
  def filter_executions(executions)
14
14
  executions = sort_executions(executions, order)
15
15
  executions = executions.delete_if(&:invalid?) unless show_invalid_locations?
16
- executions = executions[0...limit] if limit
17
16
  executions = executions.delete_if { |v| v.time < threshold } if threshold
17
+ executions = executions[0...limit] if limit
18
18
  executions
19
19
  end
20
20
 
@@ -27,7 +27,7 @@ module Xcprofiler
27
27
  when :time
28
28
  executions.sort { |a, b| [b.time, (a.filename or ''), (a.line or 0)] <=> [a.time, (b.filename or ''), (b.line or 0)] }
29
29
  when :file
30
- executions.sort { |a, b| [(a.filename or ''), (a.line or 0)] <=> [(b.filename or ''), (b.line or 0)] }
30
+ executions.sort { |a, b| [(a.filename or ''), (a.line or 0), b.time] <=> [(b.filename or ''), (b.line or 0), a.time] }
31
31
  end
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module Xcprofiler
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcprofiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - giginet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-01 00:00:00.000000000 Z
11
+ date: 2017-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler