thread-instruction-count: tidelta / ticount don't exist in tracing file
See original GitHub issueEnvironment 1 puppeteer-core: 2.0.0 docker image: node:12-slim os version: macOS 10.14.6 node.js version: 12 chrome version: 77/78
Environment 2 puppeteer-core: 2.0.0 virtualisation: virtualbox 6 os version: Ubuntu 18.04 node.js version: 12 chrome version: 77
What steps will reproduce the problem?
According to this message. Puppeteer provides RTI data in trace file when flags: --enable-thread-instruction-count
and --no-sandbox
are used. Information should be placed in tidelta
and ticount
properties.
Case:
const puppeteer = require('puppeteer')
;(async () => {
const browser = await puppeteer.launch({
args: ['--no-sandbox', '--enable-thread-instruction-count'],
})
const page = await browser.newPage()
await page.tracing.start({ path: './trace.json' })
await page.goto('https://www.example.com/')
await page.tracing.stop()
await browser.close()
})()
Dockerfile Chrome-Detect&Downloader
What is the expected result?
tidelta
exist in trace.json and parameter not empty.
What happens instead?
tidelta
doesn’t exist in trace.json.
What a goal to use this feature? I want to use RTI data for Web Perf Testing in tools like size-limit, estimo, etc.
PS
I tried this case with docker image node:10-slim, chrome 77 and chrome 78.
But tidelta
always didn’t exist in trace file.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:41
Top GitHub Comments
I just noticed that I was comparing two different chrome versions:
Will update chrome and test again
When I manually launch chrome and enable tracing, I see in output
Seems
perf_event_open failed
is source of problem?And magic command “allow kernel profiling for non-privileged users”, that I find here - seems help:
After enabling it - I see
ticount
in json results of your test file!