v8/test/inspector/cpu-profiler
Franziska Hinkelmann 335c8ad009 [type-profile] Incorporate into inspector protocol.
JavaScript is a dynamically typed language. But most code is 
written with fixed types in mind. When debugging JavaScript, 
it is helpful to know the types of variables and parameters 
at runtime. It is often hard to infer types for complex code. 
Type profiling provides this information at runtime.

Node.js uses the inspector protocol. This CL allows Node.js users 
to access and analyse type profile for via Node modules or the
in-procress api. Type Profile helps developers to analyze 
their code for correctness and performance.  

Design doc: https://docs.google.com/a/google.com/document/d/1O1uepXZXBI6IwiawTrYC3ohhiNgzkyTdjn3R8ysbYgk/edit?usp=sharing

Add `takeTypeProfile` to the inspector protocol. It returns a list
of TypeProfileForScripts, which in turn contains the type profile for
each function. We can use TypeProfile data to annotate JavaScript code. 

Sample script with data from TypeProfile:
function f(/*Object, number, undefined*/a, 
           /*Array, number, null*/b, 
           /*boolean, Object, symbol*/c) {
  return 'bye';
/*string*/};
f({}, [], true);
f(3, 2.3, {a: 42});
f(undefined, null, Symbol('hello'));/*string*/

Bug: v8:5933
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: I626bfb886b752f90b9c86cc6953601558b18b60d
Reviewed-on: https://chromium-review.googlesource.com/508588
Commit-Queue: Franziska Hinkelmann <franzih@chromium.org>
Reviewed-by: Pavel Feldman <pfeldman@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47920}
2017-09-08 09:46:12 +00:00
..
console-profile-end-parameterless-crash-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-profile-end-parameterless-crash.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-profile-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
console-profile.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
coverage-block-expected.txt [coverage] clear call counts for precise coverage. 2017-08-28 03:49:59 +00:00
coverage-block.js [inspector] add flag to specify coverage granularity. 2017-08-23 07:44:39 +00:00
coverage-expected.txt [coverage] clear call counts for precise coverage. 2017-08-28 03:49:59 +00:00
coverage.js [type-profile] Incorporate into inspector protocol. 2017-09-08 09:46:12 +00:00
enable-disable-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
enable-disable.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
record-cpu-profile-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
record-cpu-profile.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
stop-without-preceeding-start-expected.txt Fix common misspellings 2017-08-02 09:35:28 +00:00
stop-without-preceeding-start.js Fix common misspellings 2017-08-02 09:35:28 +00:00