-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heapster disable debug output #1449
Conversation
…made the translation of bitvector permissions to just be bitvectors
…all of the Heapster code so that no debug output is printed unless the Heapster debug level is set to at least 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I'm very excited about this change.
@@ -3806,16 +3806,18 @@ debugPrettyPermCtx prxs (ptranss :>: ptrans) = | |||
translateApply :: String -> OpenTerm -> Mb ctx (DistPerms ps) -> | |||
ImpTransM ext blocks tops ret ps ctx OpenTerm | |||
translateApply nm f perms = | |||
do expr_ctx <- itiExprCtx <$> ask | |||
do assertPermStackEqM nm perms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This addition seems unrelated to the purpose of the PR, just wanted to make sure it was intentional.
{- | ||
trace ("translateApply for " ++ nm ++ " with perm arguments:\n" ++ | ||
-- renderDoc (list $ debugPrettyPermCtx (mbToProxy perms) i_args) | ||
-- permPrettyString emptyPPInfo (permTransCtxPerms (mbToProxy perms) i_args) | ||
permPrettyString emptyPPInfo perms | ||
) $ | ||
) $ -} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed? Just curious.
I didn't make comments for them, but I have the same question for all the "X starting..." and "X finished..." traces in this file, the trace in rsConvertFun
, and the trace in bvSLt
. Is the answer for all of them just that you haven't found them useful so far?
This PR creates the notion of a Heapster debug level that controls whether debug information is sent to the output, and sets it to 0 by default, so that debug information is not printed by default. It also adds the command
heapster_set_debug_level
that allows the user to set the debug level, to enable debug output.