]> khamidou — GitHub mirrors - electron.git/commitdiff
Merge branch 'content_tracing_patch' of https://github.com/deepak1556/atom-shell...
authorCheng Zhao <zcbenz@gmail.com>
Fri, 13 Nov 2015 04:29:18 +0000 (12:29 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 13 Nov 2015 04:29:18 +0000 (12:29 +0800)
1  2 
docs/api/app.md
docs/api/content-tracing.md

diff --cc docs/api/app.md
Simple merge
index 734e2c47cfb4aeb24d150a5355cec52d5d46de4b,9fc335b3bc183563ee2cc6bec6eb2c5b19b2f578..aae5306523ae6d10faa6f6501d90cffc729899c5
@@@ -6,9 -6,14 +6,14 @@@ so you need to open `chrome://tracing/
  generated file to view the result.
  
  ```javascript
 -const contentTracing = require('content-tracing');
 +const contentTracing = require('electron').contentTracing;
  
- 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() {