mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Add additional logging around JobManager memory state.
This commit is contained in:
committed by
Cody Henthorne
parent
6379f9f453
commit
949bc8fb95
@@ -354,6 +354,7 @@ class JobController {
|
||||
List<JobSpec> jobs = jobStorage.debugGetJobSpecs(1000);
|
||||
List<ConstraintSpec> constraints = jobStorage.debugGetConstraintSpecs(1000);
|
||||
List<DependencySpec> dependencies = jobStorage.debugGetAllDependencySpecs();
|
||||
String additional = jobStorage.debugAdditionalDetails();
|
||||
|
||||
StringBuilder info = new StringBuilder();
|
||||
|
||||
@@ -378,6 +379,13 @@ class JobController {
|
||||
info.append("None\n");
|
||||
}
|
||||
|
||||
info.append("\n-- Additional Details\n");
|
||||
if (additional != null) {
|
||||
info.append(additional).append('\n');
|
||||
} else {
|
||||
info.append("None\n");
|
||||
}
|
||||
|
||||
return info.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -67,4 +67,7 @@ interface JobStorage {
|
||||
|
||||
@WorkerThread
|
||||
fun debugGetAllDependencySpecs(): List<DependencySpec>
|
||||
|
||||
@WorkerThread
|
||||
fun debugAdditionalDetails(): String?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user