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