Skip to content

trace seconds field is not effect #3

@thinkAfCod

Description

@thinkAfCod

Below is my code using the fgtrace:

go func() {
    http.DefaultServeMux.Handle("/debug/fgprof", fgprof.Handler())
    http.DefaultServeMux.Handle("/debug/fgtrace", fgtrace.Config{})
    logger.Error("pprof server error", "err", http.ListenAndServe("0.0.0.0:1234", nil))
}()

curl get fgtrace file, I specified a trace time of 120s :

curl -o fgtrace.json http://localhost:1234/debug/fgtrace?seconds=120

but it returned the file immediately.So, Is there any configuration I need to modify?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions