{"modulePath":"github.com/CS-SI/SafeScale/v21","version":"v21.11.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debug\n\n## Functions\n\n```go\nfunc IgnoreError(err error)\n```\nIgnoreError logs an error that's considered not important by the caller\n\n```go\nfunc InjectPlannedError(in error, calldepth ...int) (err error)\n```\n\n```go\nfunc InjectPlannedFail(in fail.Error, calldepth ...int) fail.Error\n```\n\n```go\nfunc Profile(what string) func()\n```\nProfile starts profiling based on the content of 'what' Must be called with defer: defer debug.Profile(\"cpu\")\n\n## Types\n\n```go\ntype Tracer interface {\n\tWithStopwatch() Tracer\n\tEnteringMessage() string\n\tEntering() Tracer\n\tExitingMessage() string\n\tExiting() Tracer\n\tTraceMessage(msg ...interface{}) string\n\tTrace(msg ...interface{}) Tracer\n\tTraceAsError(msg ...interface{}) Tracer\n\tStopwatch() temporal.Stopwatch\n}\n```\nTracer ...\n\n```go\nfunc NewTracer(task concurrency.Task, enable bool, msg ...interface{}) Tracer\n```\nNewTracer creates a new Tracer instance\n\n","path":"github.com/CS-SI/SafeScale/v21/lib/utils/debug","name":"debug","synopsis":"","isRedistributable":true}
