NaifyView\Observation\TextRenderer クラス
TextRenderer — profiler trace の plain text renderer
HTML UI ではなく、CLI や AI 観測で読みやすい text summary を返す。 比較ページや debug endpoint から profiler の状態を軽く確認するために使う。
使用例
echo TextRenderer::renderProfiler(Profiler::global());
メソッド
| メソッド | 説明 |
|---|---|
public
static
renderProfiler(Profiler $profiler): string
|
`renderProfiler()` を実行する |
private
static
appendLines(array $lines, array $headers): void
|
`appendLines()` を実行する |
private
static
appendTraceTree(array $lines, array $nodes, int $depth): void
|
`appendTraceTree()` を実行する |
private
static
appendCheckpointTrace(array $lines, array $checkpoints, float $startTime): void
|
`appendCheckpointTrace()` を実行する |
private
static
formatBytes(int $bytes): string
|
`formatBytes()` を実行する |
private
static
formatFloat(float $value): string
|
`formatFloat()` を実行する |
private
static
encodeInline(string $value): string
|
`encodeInline()` を実行する |
private
static
isOpCacheEnabled(): bool
|
`isOpCacheEnabled()` かを返す |
private
static
isJitEnabled(): bool
|
`isJitEnabled()` かを返す |