Implement tagging of profiler log event blocks.
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Feb 2010 13:23:46 +0000 (13:23 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Feb 2010 13:23:46 +0000 (13:23 +0000)
commit39e63f0aecb4d7b143bae8327a240dce2662a1ab
treeee2625ac892ec6015850d9e94916fc85764e54b4
parent1b526cc7009c725173883fae383656d9bc5f3a82
Implement tagging of profiler log event blocks.

This change allows to associate integer tags with blocks of profiler
log events, and repeat calls to 'ResumeProfiler' / 'PauseProfiler' in
order to establsh nested (not necessary properly nested) blocks. By
supporting this, we will be able to match WebInspector's CPU profiler
abilities in DevTools.

I also refactored some testing code.

Review URL: http://codereview.chromium.org/619004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3889 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8.h
src/api.cc
src/checks.h
src/debug-delay.js
src/log.cc
src/log.h
src/runtime.cc
src/runtime.h
test/cctest/test-log.cc