flamegraphFrame.tsx 500 B

123456789101112131415161718192021
  1. import {CallTreeNode} from './callTreeNode';
  2. import {Frame} from './frame';
  3. export interface FlamegraphFrame {
  4. children: FlamegraphFrame[];
  5. depth: number;
  6. end: number;
  7. frame: Frame;
  8. key: number;
  9. node: CallTreeNode;
  10. parent: FlamegraphFrame | null;
  11. start: number;
  12. processId?: number;
  13. threadId?: number;
  14. }
  15. export function getFlamegraphFrameSearchId(frame: FlamegraphFrame) {
  16. return (
  17. frame.frame.name + (frame.frame.file ? frame.frame.file : '') + String(frame.start)
  18. );
  19. }