- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
58 lines
1.7 KiB
Java
58 lines
1.7 KiB
Java
package com.amazonaws.util;
|
|
|
|
import com.amazonaws.logging.LogFactory;
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes.dex */
|
|
class TimingInfoFullSupport extends TimingInfo {
|
|
public final Map countersByName;
|
|
public final Map subMeasurementsByName;
|
|
|
|
@Override // com.amazonaws.util.TimingInfo
|
|
public Map getAllCounters() {
|
|
return this.countersByName;
|
|
}
|
|
|
|
@Override // com.amazonaws.util.TimingInfo
|
|
public Map getSubMeasurementsByName() {
|
|
return this.subMeasurementsByName;
|
|
}
|
|
|
|
public TimingInfoFullSupport(Long l, long j, Long l2) {
|
|
super(l, j, l2);
|
|
this.subMeasurementsByName = new HashMap();
|
|
this.countersByName = new HashMap();
|
|
}
|
|
|
|
@Override // com.amazonaws.util.TimingInfo
|
|
public void addSubMeasurement(String str, TimingInfo timingInfo) {
|
|
List list = (List) this.subMeasurementsByName.get(str);
|
|
if (list == null) {
|
|
list = new ArrayList();
|
|
this.subMeasurementsByName.put(str, list);
|
|
}
|
|
if (timingInfo.isEndTimeKnown()) {
|
|
list.add(timingInfo);
|
|
return;
|
|
}
|
|
LogFactory.getLog(getClass()).debug("Skip submeasurement timing info with no end time for " + str);
|
|
}
|
|
|
|
public Number getCounter(String str) {
|
|
return (Number) this.countersByName.get(str);
|
|
}
|
|
|
|
@Override // com.amazonaws.util.TimingInfo
|
|
public void setCounter(String str, long j) {
|
|
this.countersByName.put(str, Long.valueOf(j));
|
|
}
|
|
|
|
@Override // com.amazonaws.util.TimingInfo
|
|
public void incrementCounter(String str) {
|
|
setCounter(str, (getCounter(str) != null ? r0.intValue() : 0) + 1);
|
|
}
|
|
}
|