aahframe.work: aahframe.work/aruntime/diagnosis Index | Files

package diagnosis

import "aahframe.work/aruntime/diagnosis"

Package diagnosis brings feature of aah application profiling to do various diagnosis. It support HTTP and File (upcoming) modes.

Documentation and sample config refer to https://docs.aahframework.org/diagnosis.html

Index

Package Files

diagnosis.go http_mode.go

type Diagnosis Uses

type Diagnosis struct {
    Config *config.Config
    Mode   string
    // contains filtered or unexported fields
}

Diagnosis brings feature of aah application profiling to do various diagnosis. It support HTTP and File (upcoming) modes.

Documentation and sample config refer to https://docs.aahframework.org/diagnosis.html

func New Uses

func New(appName string, appCfg *config.Config, al log.Loggerer) (*Diagnosis, error)

New method creates new Diagnosis instance to collection various insights of application. Such as heap, profile, block, trace and mutex.

Basically all capabilities supported by `runtime/pprof` and `runtime/trace` brought into HTTP or File mode collection.

func (*Diagnosis) IsHTTPMode Uses

func (d *Diagnosis) IsHTTPMode() bool

IsHTTPMode method returns true if diagnosis enabled in HTTP mode otherwise false.

func (*Diagnosis) Run Uses

func (d *Diagnosis) Run()

Run method runs diagnosis solutions on current aah application based on given diagnosis configuration on application startup.

func (*Diagnosis) Stop Uses

func (d *Diagnosis) Stop()

Stop method to stop the diagnosis profiles, server and close file descriptors.

Package diagnosis imports 17 packages (graph) and is imported by 3 packages. Updated 2019-04-17. Refresh now. Tools for package owners.