public class CsvMpiStatistics extends java.lang.Object implements MpiStatistics
Constructor and Description |
---|
CsvMpiStatistics(java.nio.file.Path dbDir,
java.lang.String dbName) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
exportBusyCores(java.nio.file.Path dbDir,
java.lang.String dbName) |
static void |
exportCommonFileTransferDuration(java.nio.file.Path dbDir,
java.lang.String dbName) |
static void |
exportTaskCount(java.nio.file.Path dbDir,
java.lang.String dbName) |
void |
exportTasksToCsv(java.io.Writer writer)
Export tasks statistics to CSV.
|
static void |
exportWorkingDataSize(java.nio.file.Path dbDir,
java.lang.String dbName) |
void |
logCommonFileTransfer(java.lang.String fileName,
int chunk,
long size,
long duration)
Log a common file transfer.
|
void |
logJobEnd(int jobId)
Log a job end.
|
void |
logJobStart(int jobId,
java.lang.String commandId,
java.util.Map<java.lang.String,java.lang.String> tags)
Log a job start.
|
void |
logTaskEnd(int taskId,
long taskDuration,
java.util.List<java.lang.Long> commandsDuration,
long dataTransferDuration,
long outputMessageSize,
long workingDataSize,
int exitCode)
Log a task end.
|
void |
logTaskStart(int taskId,
int jobId,
int taskIndex,
org.joda.time.DateTime startTime,
int slaveRank,
int slaveThread,
long inputMessageSize)
Log a task start.
|
public CsvMpiStatistics(java.nio.file.Path dbDir, java.lang.String dbName) throws java.io.IOException
java.io.IOException
public void logCommonFileTransfer(java.lang.String fileName, int chunk, long size, long duration)
MpiStatistics
logCommonFileTransfer
in interface MpiStatistics
fileName
- the file namechunk
- chunk numbersize
- file size in bytesduration
- duration of the transfer in mspublic void logJobStart(int jobId, java.lang.String commandId, java.util.Map<java.lang.String,java.lang.String> tags)
MpiStatistics
logJobStart
in interface MpiStatistics
jobId
- the job idcommandId
- the command idtags
- tags associated to the jobpublic void logJobEnd(int jobId)
MpiStatistics
logJobEnd
in interface MpiStatistics
jobId
- the job idpublic void logTaskStart(int taskId, int jobId, int taskIndex, org.joda.time.DateTime startTime, int slaveRank, int slaveThread, long inputMessageSize)
MpiStatistics
logTaskStart
in interface MpiStatistics
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 bytespublic void logTaskEnd(int taskId, long taskDuration, java.util.List<java.lang.Long> commandsDuration, long dataTransferDuration, long outputMessageSize, long workingDataSize, int exitCode)
MpiStatistics
logTaskEnd
in interface MpiStatistics
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 commandpublic void exportTasksToCsv(java.io.Writer writer)
MpiStatistics
exportTasksToCsv
in interface MpiStatistics
public static void exportCommonFileTransferDuration(java.nio.file.Path dbDir, java.lang.String dbName) throws java.io.IOException
java.io.IOException
public static void exportTaskCount(java.nio.file.Path dbDir, java.lang.String dbName) throws java.io.IOException
java.io.IOException
public static void exportBusyCores(java.nio.file.Path dbDir, java.lang.String dbName) throws java.io.IOException
java.io.IOException
public static void exportWorkingDataSize(java.nio.file.Path dbDir, java.lang.String dbName) throws java.io.IOException
java.io.IOException
public void close()
close
in interface MpiStatistics
close
in interface java.lang.AutoCloseable
Copyright © 2020. All rights reserved.