ProfileTopTable
The heaviest functions of a profile: a table by flat value (the innermost frame) and cumulative value (anywhere in the stack), sortable by either, per sample type, with a drill-down from a function to the stacks that reach it. Not specific to Go: any samples of a value, a unit and a stack fit.
Import
Section titled “Import”import { ProfileTopTable } from "@flanksource/clicky-ui/data";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | — |
samples* |
ProfileSample[] |
— | Samples of any profile: a value of some type and unit attributed to a stack, innermost frame first. |
topN |
number |
20 |
Functions shown before "Show all"; defaults to 20. |