Class NoMpiStatistics

java.lang.Object
com.powsybl.computation.mpi.NoMpiStatistics
All Implemented Interfaces:
MpiStatistics, AutoCloseable

public class NoMpiStatistics extends Object implements MpiStatistics
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Constructor Details

    • NoMpiStatistics

      public NoMpiStatistics()
  • Method Details

    • logCommonFileTransfer

      public void logCommonFileTransfer(String fileName, int chunk, long size, long duration)
      Description copied from interface: MpiStatistics
      Log a common file transfer.
      Specified by:
      logCommonFileTransfer in interface MpiStatistics
      Parameters:
      fileName - the file name
      chunk - chunk number
      size - file size in bytes
      duration - duration of the transfer in ms
    • logJobStart

      public void logJobStart(int jobId, String commandId, Map<String,String> tags)
      Description copied from interface: MpiStatistics
      Log a job start.
      Specified by:
      logJobStart in interface MpiStatistics
      Parameters:
      jobId - the job id
      commandId - the command id
      tags - tags associated to the job
    • logJobEnd

      public void logJobEnd(int jobId)
      Description copied from interface: MpiStatistics
      Log a job end.
      Specified by:
      logJobEnd in interface MpiStatistics
      Parameters:
      jobId - the job id
    • logTaskStart

      public void logTaskStart(int taskId, int jobId, int taskIndex, ZonedDateTime startTime, int slaveRank, int slaveThread, long inputMessageSize)
      Description copied from interface: MpiStatistics
      Log a task start.
      Specified by:
      logTaskStart in interface MpiStatistics
      Parameters:
      taskId - the task id
      jobId - the job id
      taskIndex - index of the task in the job
      startTime - task start time
      slaveRank - slave rank that has managed the task
      slaveThread - slave thread that has managed the task
      inputMessageSize - input message size in bytes
    • logTaskEnd

      public void logTaskEnd(int taskId, long taskDuration, List<Long> commandsDuration, long dataTransferDuration, long outputMessageSize, long workingDataSize, int exitCode)
      Description copied from interface: MpiStatistics
      Log a task end.
      Specified by:
      logTaskEnd in interface MpiStatistics
      Parameters:
      taskId - the task id
      taskDuration - task duration in ms
      commandsDuration - duration in ms of all commands of the task
      dataTransferDuration - part of the task duration corresponding to data transfer in ms
      outputMessageSize - output message size in bytes
      workingDataSize - working data size in bytes on slave side
      exitCode - exit code of the command
    • exportTasksToCsv

      public void exportTasksToCsv(Writer writer)
      Description copied from interface: MpiStatistics
      Export tasks statistics to CSV.
      Specified by:
      exportTasksToCsv in interface MpiStatistics
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface MpiStatistics