Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instrument eyeglass for perf analysis with heimdalljs.
- Loading branch information
1 parent
b906ac2
commit 70577ca
Showing
9 changed files
with
146 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,10 @@ | |
{ | ||
"path": "packages/ember-cli-eyeglass" | ||
} | ||
] | ||
], | ||
"settings": { | ||
"cSpell.words": [ | ||
"heimdall" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
interface Stats { | ||
[k: string]: number; | ||
} | ||
interface StatsSchema<T> { | ||
new (): T; | ||
} | ||
export class Cookie { | ||
readonly stats: Stats; | ||
stop(): void; | ||
resume(): void; | ||
} | ||
export function start(name: string): Cookie; | ||
export function node<Return, Context = undefined>( | ||
name: string, | ||
callback: (this: Context, stats: Stats) => Return | Promise<Return>, | ||
context?: Context | ||
): Promise<Return>; | ||
export function node<Return, Schema extends object, Context = undefined>( | ||
name: string, | ||
schema: StatsSchema<Schema>, | ||
callback: (this: Context, stats: Schema) => Return | Promise<Return>, | ||
context?: Context | ||
): Promise<Return>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters