Merge branch 'content_tracing_patch' of https://github.com/deepak1556/atom-shell into deepak1556-content_tracing_patch
This commit is contained in:
commit
996a3c2a35
5 changed files with 27 additions and 3 deletions
|
@ -241,6 +241,7 @@ You can request the following paths by the name:
|
|||
* `userDesktop` The current user's Desktop directory.
|
||||
* `exe` The current executable file.
|
||||
* `module` The `libchromiumcontent` library.
|
||||
* `downloads` User's download directory.
|
||||
|
||||
### `app.setPath(name, path)`
|
||||
|
||||
|
|
|
@ -8,7 +8,12 @@ generated file to view the result.
|
|||
```javascript
|
||||
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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue