{"modulePath":"github.com/omniviewdev/plugin-sdk","version":"v0.24.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package profiling\n\nPackage profiling owns an explicitly enabled, loopback-only process profiler.\n\n## Types\n\n```go\ntype Config struct {\n\tEnabled bool\n\tPort    int\n\t// Diagnostic prevents invalid configuration from enabling a listener.\n\tDiagnostic string\n}\n```\n\n```go\ntype Service struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(config Config, source string) *Service\n```\n\n```go\nfunc (s *Service) Close() error\n```\n\n```go\nfunc (s *Service) GetStatus() Status\n```\n\n```go\nfunc (s *Service) Start() error\n```\nStart is idempotent and uses the configuration snapshot supplied to New.\n\n```go\ntype Status struct {\n\tRunning bool   `json:\"running\"`\n\tURL     string `json:\"url\"`\n\tSource  string `json:\"source\"`\n\tError   string `json:\"error\"`\n}\n```\n\n","path":"github.com/omniviewdev/plugin-sdk/pkg/profiling","name":"profiling","synopsis":"Package profiling owns an explicitly enabled, loopback-only process profiler.","isRedistributable":true}
