Skip to content

Commit

Permalink
Use more precise function name for retained heap enabled check
Browse files Browse the repository at this point in the history
Reviewed By: stepancheg

Differential Revision: D53672174

fbshipit-source-id: 557a70ddce930daa0f2711f28629424397d3348e
  • Loading branch information
ezgicicek authored and facebook-github-bot committed Feb 13, 2024
1 parent 8046138 commit 2c9b261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion starlark/src/environment/modules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ impl Module {
}
}

pub(crate) fn enable_heap_profile(&self, mode: RetainedHeapProfileMode) {
pub(crate) fn enable_retained_heap_profile(&self, mode: RetainedHeapProfileMode) {
self.heap_profile_on_freeze.set(Some(mode));
}

Expand Down
4 changes: 2 additions & 2 deletions starlark/src/eval/runtime/evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,10 @@ impl<'v, 'a> Evaluator<'v, 'a> {
match mode {
ProfileMode::HeapFlameRetained => self
.module_env
.enable_heap_profile(RetainedHeapProfileMode::Flame),
.enable_retained_heap_profile(RetainedHeapProfileMode::Flame),
ProfileMode::HeapSummaryRetained => self
.module_env
.enable_heap_profile(RetainedHeapProfileMode::Summary),
.enable_retained_heap_profile(RetainedHeapProfileMode::Summary),
_ => {}
}

Expand Down

0 comments on commit 2c9b261

Please sign in to comment.