MCPcopy Create free account

hub / github.com/ThePrimeagen/js-perf-example / functions

Functions58 in github.com/ThePrimeagen/js-perf-example

↓ 13 callersMethodlog
()
shooter/src/game/game.ts:64
↓ 10 callersFunctiongetLogger
()
shooter/src/logger.ts:6
↓ 8 callersMethodfire
(player: number)
shooter/src/game/game.ts:119
↓ 8 callersMethodupdate
(delta: number)
shooter/src/game/game.ts:71
↓ 7 callersFunctiongetSummedValueQuantileIdx
(data []int, quantilePosition int)
shooter/pkg/pages/index.go:129
↓ 6 callersMethodgameStats
()
shooter/src/game/game.ts:131
↓ 5 callersMethodadd
(&mut self, msg: Message, player: usize)
shooter/src/main.rs:156
↓ 4 callersMethodcount
(title: string)
shooter/src/game/data-writer.ts:14
↓ 3 callersMethodRender
(w io.Writer, name string, data interface{}, c echo.Context)
shooter/cmd/main.go:18
↓ 3 callersFunctiongetWriter
(args?: Config)
shooter/src/game/data-writer.ts:66
↓ 2 callersFunctioncreateState
()
shooter/src/game/index.ts:63
↓ 2 callersFunctioncreateState
(x: number, direction: 1 | -1)
shooter/src/game/game.ts:24
↓ 2 callersMethodflush
()
shooter/src/game/data-writer.ts:36
↓ 2 callersFunctiongetConsts
()
shooter/src/game/consts.ts:9
↓ 2 callersMethodgetTickTotal
()
shooter/pkg/pages/index.go:109
↓ 2 callersFunctionidxOf
(labels []string, label string)
shooter/pkg/pages/index.go:31
↓ 2 callersFunctioninitLogger
(args: Config)
shooter/src/logger.ts:14
↓ 2 callersFunctionnewChart
(id int, title string)
shooter/pkg/pages/index.go:22
↓ 2 callersFunctiononMessage
(state: State)
shooter/src/game/index.ts:89
↓ 2 callersFunctionprintStats
* @param {string} name * @param {Run[]} values *
set/src/index.js:147
↓ 2 callersFunctionpromiseTiming
()
event-loop/index.js:20
↓ 2 callersFunctionrun
* @param {(gen: () => string) => number} gen * @return {Run[]}
set/src/index.js:123
↓ 2 callersFunctionspawnChild
(cmd: string, closeOnError: boolean = false)
shooter/src/__tests__/integration.ts:6
↓ 2 callersFunctionspeeds
()
shooter/src/game/__tests__/game.ts:12
↓ 2 callersFunctionupdateBullet
(b: Bullet, delta: number)
shooter/src/game/game.ts:41
↓ 2 callersFunctionwaitForOpen
(socket: WebSocket)
shooter/src/game/index.ts:46
↓ 2 callersMethodwrite
(title: string, data: number)
shooter/src/game/data-writer.ts:24
↓ 1 callersMethodCalculateStats
()
shooter/pkg/pages/index.go:142
↓ 1 callersMethodaddLine
(line map[string]interface{})
shooter/pkg/pages/index.go:52
↓ 1 callersMethodaddPoint
(title string, value int, idx int)
shooter/pkg/pages/index.go:42
↓ 1 callersFunctionaddToNextTick
(cb)
event-loop/index.js:12
↓ 1 callersFunctioncollide
(b1: Bullet, b2: Bullet)
shooter/src/game/game.ts:37
↓ 1 callersMethodcreateBullet
(state: PlayerState)
shooter/src/game/game.ts:135
↓ 1 callersFunctioncreateGameRunner
()
shooter/src/game/index.ts:208
↓ 1 callersMethodflushContents
()
shooter/src/game/data-writer.ts:46
↓ 1 callersFunctiongetConfig
()
shooter/src/cli.ts:37
↓ 1 callersMethodgetState
(player: number)
shooter/src/game/game.ts:146
↓ 1 callersFunctionmain
()
event-loop/index.js:29
↓ 1 callersFunctionnext
()
shooter/src/__tests__/integration.ts:19
↓ 1 callersFunctionplayGame
(p1: WebSocket, p2: WebSocket)
shooter/src/game/index.ts:101
↓ 1 callersFunctionprint
(hello)
event-loop/index.js:6
↓ 1 callersFunctionround
@param {number} x
set/src/index.js:139
↓ 1 callersFunctionrunAll
()
set/src/index.js:157
↓ 1 callersMethodsortLabels
()
shooter/pkg/pages/index.go:85
↓ 1 callersFunctiontick
()
event-loop/index.js:2
↓ 1 callersFunctionticker
(rate: number, writer: Writer)
shooter/src/game/index.ts:8
FunctionIndex
(c echo.Context)
shooter/pkg/pages/index.go:181
Methodconstructor
(private reportIntervalMS: number = 1000)
shooter/src/game/data-writer.ts:9
Methodconstructor
(private fireRateMS: number, distance: number = 1000)
shooter/src/game/game.ts:58
FunctioncreateString
* @param {number} count * @param {number} charsUntil
set/src/index.js:51
FunctionfindWithArray
* @param {() => string} iter
set/src/index.js:96
FunctionfindWithSet
* @param {() => string} iter
set/src/index.js:70
FunctioninitFromCLI
(args: Config)
shooter/src/game/consts.ts:13
FunctioninitFromEnv
()
shooter/src/game/consts.ts:19
Functionmain
()
shooter/src/main.rs:174
Functionmain
()
shooter/cmd/main.go:22
FunctionrandomCreateString
* @param {number} count * @param {number} charsUntil
set/src/index.js:24
Functionrun_client
(stream: Stream, fire_wait: u64, config: &'static Config, player: usize)
shooter/src/main.rs:65