tracing: fix docs and allow null values in file path conversion fromv8

This commit is contained in:
Robo 2015-11-13 02:36:38 +05:30
parent ce0167756e
commit 3d5437e0a4
2 changed files with 10 additions and 2 deletions

View file

@ -6,9 +6,14 @@ so you need to open `chrome://tracing/` in a Chrome browser and load the
generated file to view the result.
```javascript
var contentTracing = require('content-tracing');
const contentTracing = require('content-tracing');
contentTracing.startRecording('*', contentTracing.DEFAULT_OPTIONS, function() {
const options = {
categoryFilter: '*',
traceOptions: 'record-until-full,enable-sampling'
}
contentTracing.startRecording(options, function() {
console.log('Tracing started');
setTimeout(function() {