mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-12-12 19:23:07 +03:00
10 lines
348 B
TypeScript
10 lines
348 B
TypeScript
|
import * as fs from 'fs'
|
||
|
import {importFromBGFlameGraph} from './bg-flamegraph'
|
||
|
import {dumpProfile} from '../test-utils'
|
||
|
|
||
|
test('importFromBGFlameGraph', () => {
|
||
|
const input = fs.readFileSync('./sample/profiles/stackcollapse/simple.txt', 'utf8')
|
||
|
const profile = importFromBGFlameGraph(input)
|
||
|
expect(dumpProfile(profile)).toMatchSnapshot()
|
||
|
})
|