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

Side by Side Diff: include/v8-profiler.h

Issue 17642009: CPUProfiler: propagate scriptId to the front-end (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: debug build was fixed Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 typedef uint32_t SnapshotObjectId; 68 typedef uint32_t SnapshotObjectId;
69 69
70 /** 70 /**
71 * CpuProfileNode represents a node in a call graph. 71 * CpuProfileNode represents a node in a call graph.
72 */ 72 */
73 class V8EXPORT CpuProfileNode { 73 class V8EXPORT CpuProfileNode {
74 public: 74 public:
75 /** Returns function name (empty string for anonymous functions.) */ 75 /** Returns function name (empty string for anonymous functions.) */
76 Handle<String> GetFunctionName() const; 76 Handle<String> GetFunctionName() const;
77 77
78 /** Returns id of the script where function is located. */
79 int GetScriptId() const;
80
78 /** Returns resource name for script from where the function originates. */ 81 /** Returns resource name for script from where the function originates. */
79 Handle<String> GetScriptResourceName() const; 82 Handle<String> GetScriptResourceName() const;
80 83
81 /** 84 /**
82 * Returns the number, 1-based, of the line where the function originates. 85 * Returns the number, 1-based, of the line where the function originates.
83 * kNoLineNumberInfo if no line number information is available. 86 * kNoLineNumberInfo if no line number information is available.
84 */ 87 */
85 int GetLineNumber() const; 88 int GetLineNumber() const;
86 89
87 /** 90 /**
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 }; 602 };
600 603
601 604
602 } // namespace v8 605 } // namespace v8
603 606
604 607
605 #undef V8EXPORT 608 #undef V8EXPORT
606 609
607 610
608 #endif // V8_V8_PROFILER_H_ 611 #endif // V8_V8_PROFILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698