calculate IobCobThread execution time
This commit is contained in:
parent
05dcb58f0a
commit
00349527e1
2 changed files with 6 additions and 0 deletions
|
@ -38,6 +38,7 @@ import info.nightscout.androidaps.plugins.Treatments.TreatmentsPlugin;
|
|||
import info.nightscout.utils.DateUtil;
|
||||
import info.nightscout.utils.DecimalFormatter;
|
||||
import info.nightscout.utils.FabricPrivacy;
|
||||
import info.nightscout.utils.Profiler;
|
||||
import info.nightscout.utils.SP;
|
||||
|
||||
import static info.nightscout.utils.DateUtil.now;
|
||||
|
@ -75,6 +76,7 @@ public class IobCobOref1Thread extends Thread {
|
|||
|
||||
@Override
|
||||
public final void run() {
|
||||
long start = DateUtil.now();
|
||||
mWakeLock.acquire();
|
||||
try {
|
||||
if (L.isEnabled(L.AUTOSENS))
|
||||
|
@ -395,6 +397,7 @@ public class IobCobOref1Thread extends Thread {
|
|||
MainApp.bus().post(new EventIobCalculationProgress(""));
|
||||
if (L.isEnabled(L.AUTOSENS))
|
||||
log.debug("AUTOSENSDATA thread ended: " + from);
|
||||
Profiler.log(log, "IobCobOref1Thread", start);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ import info.nightscout.androidaps.plugins.Treatments.TreatmentsPlugin;
|
|||
import info.nightscout.utils.DateUtil;
|
||||
import info.nightscout.utils.DecimalFormatter;
|
||||
import info.nightscout.utils.FabricPrivacy;
|
||||
import info.nightscout.utils.Profiler;
|
||||
import info.nightscout.utils.SP;
|
||||
|
||||
import static info.nightscout.utils.DateUtil.now;
|
||||
|
@ -74,6 +75,7 @@ public class IobCobThread extends Thread {
|
|||
|
||||
@Override
|
||||
public final void run() {
|
||||
long start = DateUtil.now();
|
||||
mWakeLock.acquire();
|
||||
try {
|
||||
if (L.isEnabled(L.AUTOSENS))
|
||||
|
@ -322,6 +324,7 @@ public class IobCobThread extends Thread {
|
|||
MainApp.bus().post(new EventIobCalculationProgress(""));
|
||||
if (L.isEnabled(L.AUTOSENS))
|
||||
log.debug("AUTOSENSDATA thread ended: " + from);
|
||||
Profiler.log(log, "IobCobThread", start);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue