Documentation ¶
Index ¶
- func Enabled() bool
- func RegisterQuery(accountID, projectID uint32, query string, timeRangeMsecs int64, ...)
- func WriteJSONQueryStats(w io.Writer, topN int, maxLifetime time.Duration)
- func WriteJSONQueryStatsForAccountProject(w io.Writer, topN int, accountID, projectID uint32, maxLifetime time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterQuery ¶
func RegisterQuery(accountID, projectID uint32, query string, timeRangeMsecs int64, startTime time.Time)
RegisterQuery registers the query on the given timeRangeMsecs, which has been started at startTime.
RegisterQuery must be called when the query is finished.
func WriteJSONQueryStats ¶
WriteJSONQueryStats writes query stats to given writer in json format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.