Add combines the values of the current Metrics instance with the values of another Metrics instance passed as an argument. It updates the current instance's fields by adding the corresponding values from the other instance.
(other Metrics)
| 41 | // of another Metrics instance passed as an argument. It updates the current |
| 42 | // instance's fields by adding the corresponding values from the other instance. |
| 43 | func (m *Metrics) Add(other Metrics) { |
| 44 | m.PeakCPUUsage += other.PeakCPUUsage |
| 45 | m.AverageCPUUsage += other.AverageCPUUsage |
| 46 | m.TotalCPUTime += other.TotalCPUTime |
| 47 | m.PeakMemUsage += other.PeakMemUsage |
| 48 | m.AverageMemUsage += other.AverageMemUsage |
| 49 | m.DiskUsageDelta += other.DiskUsageDelta |
| 50 | } |
| 51 | |
| 52 | // GetSubject returns the testing subject based on INSTALLED flag. |
| 53 | func GetSubject() (string, error) { |
no outgoing calls
no test coverage detected