Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1105)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json

Issue 2244783004: DevTools: Refactor Profiler domain interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Runtime", 4 "domain": "Runtime",
5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.", 5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.",
6 "types": [ 6 "types": [
7 { 7 {
8 "id": "ScriptId", 8 "id": "ScriptId",
9 "type": "string", 9 "type": "string",
10 "description": "Unique script identifier." 10 "description": "Unique script identifier."
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 { 792 {
793 "domain": "Profiler", 793 "domain": "Profiler",
794 "dependencies": ["Runtime", "Debugger"], 794 "dependencies": ["Runtime", "Debugger"],
795 "experimental": true, 795 "experimental": true,
796 "types": [ 796 "types": [
797 { 797 {
798 "id": "CPUProfileNode", 798 "id": "CPUProfileNode",
799 "type": "object", 799 "type": "object",
800 "description": "CPU Profile node. Holds callsite information, ex ecution statistics and child nodes.", 800 "description": "CPU Profile node. Holds callsite information, ex ecution statistics and child nodes.",
801 "properties": [ 801 "properties": [
802 { "name": "id", "type": "integer", "description": "Unique id of the node." },
802 { "name": "callFrame", "$ref": "Runtime.CallFrame", "descrip tion": "Function location." }, 803 { "name": "callFrame", "$ref": "Runtime.CallFrame", "descrip tion": "Function location." },
803 { "name": "hitCount", "type": "integer", "description": "Num ber of samples where this node was on top of the call stack." }, 804 { "name": "hitCount", "type": "integer", "description": "Num ber of samples where this node was on top of the call stack." },
804 { "name": "children", "type": "array", "items": { "$ref": "C PUProfileNode" }, "description": "Child nodes." }, 805 { "name": "children", "type": "array", "items": { "type": "i nteger" }, "description": "Child node ids." },
805 { "name": "deoptReason", "type": "string", "description": "T he reason of being not optimized. The function may be deoptimized or marked as d on't optimize."}, 806 { "name": "deoptReason", "type": "string", "experimental": t rue, "description": "The reason of being not optimized. The function may be deop timized or marked as don't optimize."},
806 { "name": "id", "type": "integer", "description": "Unique id of the node." }, 807 { "name": "positionTicks", "type": "array", "items": { "$ref ": "PositionTickInfo" }, "experimental": true, "description": "An array of sourc e position ticks." }
807 { "name": "positionTicks", "type": "array", "items": { "$ref ": "PositionTickInfo" }, "description": "An array of source position ticks." }
808 ] 808 ]
809 }, 809 },
810 { 810 {
811 "id": "CPUProfile", 811 "id": "CPUProfile",
812 "type": "object", 812 "type": "object",
813 "description": "Profile.", 813 "description": "Profile.",
814 "properties": [ 814 "properties": [
815 { "name": "head", "$ref": "CPUProfileNode" }, 815 { "name": "nodes", "type": "array", "items": { "$ref": "CPUP rofileNode" }, "description": "The list of profile nodes. First item is the root node." },
816 { "name": "startTime", "type": "number", "description": "Pro filing start time in seconds." }, 816 { "name": "startTime", "type": "number", "description": "Pro filing start time in seconds." },
817 { "name": "endTime", "type": "number", "description": "Profi ling end time in seconds." }, 817 { "name": "endTime", "type": "number", "description": "Profi ling end time in seconds." },
818 { "name": "samples", "optional": true, "type": "array", "ite ms": { "type": "integer" }, "description": "Ids of samples top nodes." }, 818 { "name": "samples", "optional": true, "type": "array", "ite ms": { "type": "integer" }, "description": "Ids of samples top nodes." },
819 { "name": "timestamps", "optional": true, "type": "array", " items": { "type": "number" }, "description": "Timestamps of the samples in micro seconds." } 819 { "name": "timestamps", "optional": true, "type": "array", " items": { "type": "number" }, "description": "Timestamps of the samples in micro seconds." }
820 ] 820 ]
821 }, 821 },
822 { 822 {
823 "id": "PositionTickInfo", 823 "id": "PositionTickInfo",
824 "type": "object", 824 "type": "object",
825 "experimental": true,
825 "description": "Specifies a number of samples attributed to a ce rtain source position.", 826 "description": "Specifies a number of samples attributed to a ce rtain source position.",
826 "properties": [ 827 "properties": [
827 { "name": "line", "type": "integer", "description": "Source line number (1-based)." }, 828 { "name": "line", "type": "integer", "description": "Source line number (1-based)." },
828 { "name": "ticks", "type": "integer", "description": "Number of samples attributed to the source line." } 829 { "name": "ticks", "type": "integer", "description": "Number of samples attributed to the source line." }
829 ] 830 ]
830 } 831 }
831 ], 832 ],
832 "commands": [ 833 "commands": [
833 { 834 {
834 "name": "enable" 835 "name": "enable"
(...skipping 17 matching lines...) Expand all
852 { "name": "profile", "$ref": "CPUProfile", "description": "R ecorded profile." } 853 { "name": "profile", "$ref": "CPUProfile", "description": "R ecorded profile." }
853 ] 854 ]
854 } 855 }
855 ], 856 ],
856 "events": [ 857 "events": [
857 { 858 {
858 "name": "consoleProfileStarted", 859 "name": "consoleProfileStarted",
859 "parameters": [ 860 "parameters": [
860 { "name": "id", "type": "string" }, 861 { "name": "id", "type": "string" },
861 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Location of console.profile()." }, 862 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Location of console.profile()." },
862 { "name": "title", "type": "string", "optional": true, "desc ription": "Profile title passed as argument to console.profile()." } 863 { "name": "title", "type": "string", "optional": true, "desc ription": "Profile title passed as an argument to console.profile()." }
863 ], 864 ],
864 "description": "Sent when new profile recodring is started using console.profile() call." 865 "description": "Sent when new profile recodring is started using console.profile() call."
865 }, 866 },
866 { 867 {
867 "name": "consoleProfileFinished", 868 "name": "consoleProfileFinished",
868 "parameters": [ 869 "parameters": [
869 { "name": "id", "type": "string" }, 870 { "name": "id", "type": "string" },
870 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Location of console.profileEnd()." }, 871 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Location of console.profileEnd()." },
871 { "name": "profile", "$ref": "CPUProfile" }, 872 { "name": "profile", "$ref": "CPUProfile" },
872 { "name": "title", "type": "string", "optional": true, "desc ription": "Profile title passed as argunet to console.profile()." } 873 { "name": "title", "type": "string", "optional": true, "desc ription": "Profile title passed as an argument to console.profile()." }
873 ] 874 ]
874 } 875 }
875 ] 876 ]
876 }, 877 },
877 { 878 {
878 "domain": "HeapProfiler", 879 "domain": "HeapProfiler",
879 "dependencies": ["Runtime"], 880 "dependencies": ["Runtime"],
880 "experimental": true, 881 "experimental": true,
881 "types": [ 882 "types": [
882 { 883 {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 { 1000 {
1000 "name": "heapStatsUpdate", 1001 "name": "heapStatsUpdate",
1001 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1002 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1002 "parameters": [ 1003 "parameters": [
1003 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."} 1004 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."}
1004 ] 1005 ]
1005 } 1006 }
1006 ] 1007 ]
1007 }] 1008 }]
1008 } 1009 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8ProfilerAgentImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698