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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e44877c4bad8e2b1d161e028d404d45a4c2c4845
|
4
|
+
data.tar.gz: 12450d5d88136b4b1749ac675197635c190c447f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|