mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add some code to help find OOM keys
This commit is contained in:
parent
6933150f63
commit
bfca804586
1 changed files with 13 additions and 0 deletions
|
|
@ -928,6 +928,19 @@ impl<'a> ActionManager<'a> {
|
||||||
log::warn!("Couldn't interpret password record: {}", key.name);
|
log::warn!("Couldn't interpret password record: {}", key.name);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
/* // this code helps to trace down which key had OOM'd, if it turns out to be an issue
|
||||||
|
let mut oom_key = String::new();
|
||||||
|
make_pw_name(&pw_rec.description, &pw_rec.username, &mut oom_key);
|
||||||
|
let li = ListItem {
|
||||||
|
name: oom_key.to_string(),
|
||||||
|
extra: "Maybe OOM record".to_string(),
|
||||||
|
dirty: true,
|
||||||
|
guid: key.name,
|
||||||
|
atime: 0,
|
||||||
|
count: 0,
|
||||||
|
};
|
||||||
|
il.insert(li.key(), li); // this push is very slow, but we only have to do it once on boot
|
||||||
|
*/
|
||||||
oom_keys += 1;
|
oom_keys += 1;
|
||||||
}
|
}
|
||||||
#[cfg(feature="vaultperf")]
|
#[cfg(feature="vaultperf")]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue