OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |