Skip to content

Commit 9662322

Browse files
committed
Added usage for components prop in options
1 parent f131923 commit 9662322

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,28 @@ Below is the schema of the performance measures that are logged to the console.
297297
}
298298
```
299299

300+
**components**
301+
302+
You can also inspect the performance of specific components using options through **`components`** property.
303+
304+
<img src="http://g.recordit.co/sAQGSOrCA7.gif">
305+
306+
Example -
307+
308+
```js
309+
var options = {
310+
shouldLog: true,
311+
port: 3000,
312+
components: ['App', 'Main'] // Assuming you've these components in your project
313+
}
314+
315+
function callback(measures) {
316+
// do something with measures
317+
}
318+
319+
registerObserver(options, callback)
320+
```
321+
300322
## Description
301323

302324
<p align="center">

0 commit comments

Comments
 (0)