tidb: github.com/pingcap/tidb/infoschema/perfschema Index | Files

package perfschema

import "github.com/pingcap/tidb/infoschema/perfschema"


Package Files

const.go init.go tables.go


const (
    Name      = util.PerformanceSchemaName
    LowerName = util.PerformanceSchemaLowerName

Performance Schema Name.

func Init Uses

func Init()

Init register the PERFORMANCE_SCHEMA virtual tables. It should be init(), and the ideal usage should be:

import _ "github.com/pingcap/tidb/perfschema"

This function depends on plan/core.init(), which initialize the expression.EvalAstExpr function. The initialize order is a problem if init() is used as the function name.

func RegisterTable Uses

func RegisterTable(tableName, sql string,
    tableFromMeta func(autoid.Allocator, *model.TableInfo) (table.Table, error))

RegisterTable registers a new table into TiDB.

Package perfschema imports 16 packages (graph) and is imported by 2 packages. Updated 2019-11-18. Refresh now. Tools for package owners.