-# content-tracing
+# contentTracing
The `content-tracing` module is used to collect tracing data generated by the
underlying Chromium content module. This module does not include a web interface
generated file to view the result.
```javascript
-var tracing = require('content-tracing');
+var contentTracing = require('content-tracing');
tracing.startRecording('*', tracing.DEFAULT_OPTIONS, function() {
console.log('Tracing started');
The `content-tracing` module has the following methods:
-### `tracing.getCategories(callback)`
+### `contentTracing.getCategories(callback)`
* `callback` Function
Once all child processes have acknowledged the `getCategories` request the
`callback` is invoked with an array of category groups.
-### `tracing.startRecording(categoryFilter, traceOptions, callback)`
+### `contentTracing.startRecording(categoryFilter, traceOptions, callback)`
* `categoryFilter` String
* `traceOptions` String
`record-until-full`, `enable_sampling` and `enable_systrace` set to `false`)
before options parsed from `traceOptions` are applied on it.
-### `tracing.stopRecording(resultFilePath, callback)`
+### `contentTracing.stopRecording(resultFilePath, callback)`
* `resultFilePath` String
* `callback` Function
temporary file. The actual file path will be passed to `callback` if it's not
`null`.
-### `tracing.startMonitoring(categoryFilter, traceOptions, callback)`
+### `contentTracing.startMonitoring(categoryFilter, traceOptions, callback)`
* `categoryFilter` String
* `traceOptions` String
Once all child processes have acknowledged the `startMonitoring` request the
`callback` will be called.
-### `tracing.stopMonitoring(callback)`
+### `contentTracing.stopMonitoring(callback)`
* `callback` Function
Once all child processes have acknowledged the `stopMonitoring` request the
`callback` is called.
-### `tracing.captureMonitoringSnapshot(resultFilePath, callback)`
+### `contentTracing.captureMonitoringSnapshot(resultFilePath, callback)`
* `resultFilePath` String
* `callback` Function
request the `callback` will be called with a file that contains the traced data.
-### `tracing.getTraceBufferUsage(callback)`
+### `contentTracing.getTraceBufferUsage(callback)`
* `callback` Function
full state. When the TraceBufferUsage value is determined the `callback` is
called.
-### `tracing.setWatchEvent(categoryName, eventName, callback)`
+### `contentTracing.setWatchEvent(categoryName, eventName, callback)`
* `categoryName` String
* `eventName` String
`callback` will will be called every time the given event occurs on any
process.
-### `tracing.cancelWatchEvent()`
+### `contentTracing.cancelWatchEvent()`
Cancel the watch event. This may lead to a race condition with the watch event
callback if tracing is enabled.