server_scripts 0.1.3 → 0.1.3.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
  SHA1:
3
- metadata.gz: 74bc6e9790b0f8f43c099ebbf2bb7097ba078f58
4
- data.tar.gz: 507e795a3d6f9baefd62276f71d0a44b64484fd9
3
+ metadata.gz: e44877c4bad8e2b1d161e028d404d45a4c2c4845
4
+ data.tar.gz: 12450d5d88136b4b1749ac675197635c190c447f
5
5
  SHA512:
6
- metadata.gz: e9c5b973a951b906699ccfc51d59b72fed77658cf267c22d2cbbcf3e40e71cce27ded005948888ca89f1a878a7b1ed33774d551168e539adbe1d85a4fb8674dd
7
- data.tar.gz: 3b052b8fbc0f94477ed790642bf3c2eb7a536370e8a9e506e13b1b688c2498e05ea022971b8e2468e4a301a47a7036ce941472a1f903fb1cd19922806dcf51f7
6
+ metadata.gz: c24fbebc870ae99c0f2360c4646c4d680e4019135843cd88e4dcc1d8c1a15b169f885800e3477f98bf30d3ca80cacbf612bc7685fe93c19c252793444ab8e9ec
7
+ data.tar.gz: fe97dd7017e06e283f753d76d7f9e0d319d22b1804b09d79e24d11a4d6ff5585e4e1c334fcc1435b93893618f38db8ab1db2cc0c88d571c68270bb9b7e185aca
@@ -3,6 +3,8 @@ module ServerScripts
3
3
  module VTune
4
4
  module Hotspots
5
5
  class SLATE < Threads
6
+ # fname - CSV file containing output of vtune profiler.
7
+ # nthreads - Number of threads to consider.
6
8
  def initialize fname, nthreads:
7
9
  @num_threads = nthreads
8
10
  super(fname)
@@ -21,7 +23,6 @@ module ServerScripts
21
23
  def parse_csv! fname
22
24
  data = CSV.parse(File.read(fname), headers: true)
23
25
  data.each_with_index do |row, i|
24
- break if i == (@num_threads-1)
25
26
  @threads[i] = {}
26
27
  @threads[i][:cpu_time] = data[CPU_TIME][i].to_f
27
28
  @threads[i][:cpu_effective_time] = data[CPU_EFFECTIVE_TIME][i].to_f
@@ -29,6 +30,7 @@ module ServerScripts
29
30
  @threads[i][:cpu_spin_time] = data[CPU_SPIN_TIME][i].to_f
30
31
  @threads[i][:wait_time] = data[WAIT_TIME][i].to_f
31
32
  @threads[i][:mpi_busy_wait_time] = data[MPI_BUSY_WAIT_TIME][i].to_f
33
+ break if i == (@num_threads-1)
32
34
  end
33
35
  end
34
36
  end # class SLATE
@@ -1,3 +1,3 @@
1
1
  module ServerScripts
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sameer Deshmukh