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

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

Issue 18332010: Revert "CPUProfiler: propagate scriptId to the front-end" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
81 /** Returns resource name for script from where the function originates. */ 78 /** Returns resource name for script from where the function originates. */
82 Handle<String> GetScriptResourceName() const; 79 Handle<String> GetScriptResourceName() const;
83 80
84 /** 81 /**
85 * Returns the number, 1-based, of the line where the function originates. 82 * Returns the number, 1-based, of the line where the function originates.
86 * kNoLineNumberInfo if no line number information is available. 83 * kNoLineNumberInfo if no line number information is available.
87 */ 84 */
88 int GetLineNumber() const; 85 int GetLineNumber() const;
89 86
90 /** 87 /**
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 }; 599 };
603 600
604 601
605 } // namespace v8 602 } // namespace v8
606 603
607 604
608 #undef V8EXPORT 605 #undef V8EXPORT
609 606
610 607
611 #endif // V8_V8_PROFILER_H_ 608 #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