1
0
Fork 0
forked from External/ergo

Integrate StackImpact profiling

This commit is contained in:
Daniel Oaks 2017-04-30 12:35:07 +10:00
parent 2bd4d03ecc
commit 5c518531be
3 changed files with 43 additions and 3 deletions

View file

@ -173,6 +173,13 @@ func (sts *STSConfig) Value() string {
return val
}
// StackImpactConfig is the config used for StackImpact's profiling.
type StackImpactConfig struct {
Enabled bool
AgentKey string `yaml:"agent-key"`
AppName string `yaml:"app-name"`
}
// Config defines the overall configuration.
type Config struct {
Network struct {
@ -215,6 +222,10 @@ type Config struct {
Logging []LoggingConfig
Debug struct {
StackImpact StackImpactConfig
}
Limits struct {
AwayLen uint `yaml:"awaylen"`
ChanListModes uint `yaml:"chan-list-modes"`