java.lang.Object
com.powsybl.computation.mpi.CsvMpiStatistics
- All Implemented Interfaces:
MpiStatistics,AutoCloseable
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static voidexportBusyCores(Path dbDir, String dbName) static voidexportCommonFileTransferDuration(Path dbDir, String dbName) static voidexportTaskCount(Path dbDir, String dbName) voidexportTasksToCsv(Writer writer) Export tasks statistics to CSV.static voidexportWorkingDataSize(Path dbDir, String dbName) voidlogCommonFileTransfer(String fileName, int chunk, long size, long duration) Log a common file transfer.voidlogJobEnd(int jobId) Log a job end.voidlogJobStart(int jobId, String commandId, Map<String, String> tags) Log a job start.voidlogTaskEnd(int taskId, long taskDuration, List<Long> commandsDuration, long dataTransferDuration, long outputMessageSize, long workingDataSize, int exitCode) Log a task end.voidlogTaskStart(int taskId, int jobId, int taskIndex, ZonedDateTime startTime, int slaveRank, int slaveThread, long inputMessageSize) Log a task start.
-
Constructor Details
-
CsvMpiStatistics
- Throws:
IOException
-
-
Method Details
-
logCommonFileTransfer
Description copied from interface:MpiStatisticsLog a common file transfer.- Specified by:
logCommonFileTransferin interfaceMpiStatistics- Parameters:
fileName- the file namechunk- chunk numbersize- file size in bytesduration- duration of the transfer in ms
-
logJobStart
Description copied from interface:MpiStatisticsLog a job start.- Specified by:
logJobStartin interfaceMpiStatistics- Parameters:
jobId- the job idcommandId- the command idtags- tags associated to the job
-
logJobEnd
public void logJobEnd(int jobId) Description copied from interface:MpiStatisticsLog a job end.- Specified by:
logJobEndin interfaceMpiStatistics- 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:MpiStatisticsLog a task start.- Specified by:
logTaskStartin interfaceMpiStatistics- Parameters:
taskId- the task idjobId- the job idtaskIndex- index of the task in the jobstartTime- task start timeslaveRank- slave rank that has managed the taskslaveThread- slave thread that has managed the taskinputMessageSize- 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:MpiStatisticsLog a task end.- Specified by:
logTaskEndin interfaceMpiStatistics- Parameters:
taskId- the task idtaskDuration- task duration in mscommandsDuration- duration in ms of all commands of the taskdataTransferDuration- part of the task duration corresponding to data transfer in msoutputMessageSize- output message size in bytesworkingDataSize- working data size in bytes on slave sideexitCode- exit code of the command
-
exportTasksToCsv
Description copied from interface:MpiStatisticsExport tasks statistics to CSV.- Specified by:
exportTasksToCsvin interfaceMpiStatistics
-
exportCommonFileTransferDuration
- Throws:
IOException
-
exportTaskCount
- Throws:
IOException
-
exportBusyCores
- Throws:
IOException
-
exportWorkingDataSize
- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceMpiStatistics
-