Class: ServerScripts::Parser::VTune::Hotspots::SLATE

Inherits:
Threads
  • Object
show all
Defined in:
lib/server_scripts/parser/vtune/hotspots/threads/slate.rb

Constant Summary

Constants inherited from Base

Base::CPU_EFFECTIVE_TIME, Base::CPU_OVERHEAD_TIME, Base::CPU_SPIN_TIME, Base::CPU_TIME, Base::MPI_BUSY_WAIT_TIME, Base::WAIT_TIME

Instance Method Summary collapse

Methods inherited from Threads

#time, #total_cpu_effective_time, #total_cpu_overhead_time, #total_cpu_spin_time, #total_cpu_time, #total_time, #total_wait_time

Constructor Details

#initialize(fname, nthreads:) ⇒ SLATE

fname - CSV file containing output of vtune profiler. nthreads - Number of threads to consider.



8
9
10
11
# File 'lib/server_scripts/parser/vtune/hotspots/threads/slate.rb', line 8

def initialize fname, nthreads:
  @num_threads = nthreads
  super(fname)
end

Instance Method Details

#total_mpi_busy_wait_timeObject

Get the total time for all threads under the header “CPU Time:Spin Time:MPI Busy Wait Time”. This time is included within “CPU Time:Spin Time”.



16
17
18
19
# File 'lib/server_scripts/parser/vtune/hotspots/threads/slate.rb', line 16

def total_mpi_busy_wait_time
  @total_mpi_busy_time ||= parse_for_event(:mpi_busy_wait_time)
  @total_mpi_busy_time
end