|
@@ -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() {
|