I used this API to add code events in NodeJS so that I can show javascript
symbols in a sampled stack trace. I have a few observations for your
consideration.
The are many events that provide little value IMO:
•       “Stub: *”
•       "CallIC:A call IC from the snapshot"
•       "Builtin:A builtin from the snapshot"
•       "LoadIC:A load IC from the snapshot"
•       "KeyedLoadIC:A keyed load IC from the snapshot"
•       "StoreIC:A store IC from the snapshot"
•       Etc.
There are a lot of these and logging them all is a performance hit. Showing
these in a stack trace is not usually interesting to the javascript developer. It would be good if there was a way to filter these out. Currently I would have
to do a several string compares to achieve this.

If you don't want to filter them out entirely, perhaps you can add a code class value in the callback to make it easier to do the filtering. Or allow another
JitCodeEventOptions value to enable filtering.

https://chromiumcodereview.appspot.com/10795074/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to