Skip to content

Commit

Permalink
Mark ProfileMode non-exhaustive
Browse files Browse the repository at this point in the history
Summary: So users won't break if additional profile modes added.

Reviewed By: ndmitchell

Differential Revision: D38153289

fbshipit-source-id: 8e96ed2fd751498e86e7e81819ce62299672a22c
  • Loading branch information
stepancheg authored and facebook-github-bot committed Jul 26, 2022
1 parent 8fdf89f commit 1988508
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions starlark-rust/starlark/src/eval/runtime/profile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ pub(crate) mod typecheck;

/// How to profile starlark code.
#[derive(Debug, PartialEq, Eq, Hash, Clone, Dupe)]
#[non_exhaustive]
pub enum ProfileMode {
/// The heap profile mode provides information about the time spent in each function and allocations
/// performed by each function. Enabling this mode the side effect of disabling garbage-collection.
Expand Down

0 comments on commit 1988508

Please sign in to comment.