DescriptionCPU profiler: add secure profiles by filtering out functions using security tokens.
As several pages can run in a single V8 instance, it is possible to
have functions from different security contexts intermixed in a single
CPU profile. To avoid exposing function names from one page to
another, filtering is introduced.
The basic idea is that instead of capturing return addresses from
stack, we're now capturing JSFunction addresses (as we anyway work
only with JS stack frames.) Each JSFunction can reach out for
context's security token. When providing a profile to a page, the
profile is filtered using the security token of caller page. Any
functions with different security tokens are filtered out (yes, we
only do fast path check for now) and their ticks are attributed to
their parents.
Committed: http://code.google.com/p/v8/source/detail?r=4673
Patch Set 1 #
Total comments: 14
Patch Set 2 : Comments addressed #
Total comments: 2
Patch Set 3 : Reworded comment #
Messages
Total messages: 5 (0 generated)
|