github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/services/TestData.ts (about)

     1  import { Profile } from '@pyroscope/models/src';
     2  
     3  const SimpleGoApp: Profile = {
     4    flamebearer: {
     5      names: [
     6        'total',
     7        'runtime.main',
     8        'main.slowFunction',
     9        'main.work',
    10        'main.main',
    11        'main.fastFunction',
    12      ],
    13      levels: [
    14        [0, 988, 0, 0],
    15        [0, 988, 0, 1],
    16        [0, 214, 0, 5, 0, 3, 2, 4, 0, 771, 0, 2],
    17        [0, 214, 214, 3, 2, 1, 1, 5, 0, 771, 771, 3],
    18      ],
    19      numTicks: 988,
    20      maxSelf: 771,
    21    },
    22    metadata: {
    23      format: 'single' as const,
    24      sampleRate: 100,
    25      spyName: 'gospy',
    26      units: 'samples',
    27    },
    28    version: 1,
    29  };
    30  
    31  export default SimpleGoApp;