Add additional logging around JobManager memory state.

This commit is contained in:
Greyson Parrelli
2025-08-04 15:29:01 -04:00
committed by Cody Henthorne
parent 6379f9f453
commit 949bc8fb95
3 changed files with 51 additions and 14 deletions

View File

@@ -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();
}

View File

@@ -67,4 +67,7 @@ interface JobStorage {
@WorkerThread
fun debugGetAllDependencySpecs(): List<DependencySpec>
@WorkerThread
fun debugAdditionalDetails(): String?
}