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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 /** | 54 /** |
55 * Returns the number, 1-based, of the line where the function originates. | 55 * Returns the number, 1-based, of the line where the function originates. |
56 * kNoLineNumberInfo if no line number information is available. | 56 * kNoLineNumberInfo if no line number information is available. |
57 */ | 57 */ |
58 int GetLineNumber() const; | 58 int GetLineNumber() const; |
59 | 59 |
60 /** | 60 /** |
61 * Returns total (self + children) execution time of the function, | 61 * Returns total (self + children) execution time of the function, |
62 * in milliseconds, estimated by samples count. | 62 * in milliseconds, estimated by samples count. |
63 */ | 63 */ |
64 V8_DEPRECATED(double GetTotalTime() const); | 64 double GetTotalTime() const; |
65 | 65 |
66 /** | 66 /** |
67 * Returns self execution time of the function, in milliseconds, | 67 * Returns self execution time of the function, in milliseconds, |
68 * estimated by samples count. | 68 * estimated by samples count. |
69 */ | 69 */ |
70 V8_DEPRECATED(double GetSelfTime() const); | 70 double GetSelfTime() const; |
71 | 71 |
72 /** Returns the count of samples where function exists. */ | 72 /** Returns the count of samples where function exists. */ |
73 V8_DEPRECATED(double GetTotalSamplesCount() const); | 73 double GetTotalSamplesCount() const; |
74 | 74 |
75 /** DEPRECATED. Please use GetHitCount instead. | 75 /** Returns the count of samples where function was currently executing. */ |
76 * Returns the count of samples where function was currently executing. | |
77 */ | |
78 double GetSelfSamplesCount() const; | 76 double GetSelfSamplesCount() const; |
79 | 77 |
80 /** | |
81 * Returns the count of samples where the function was currently executing. | |
82 */ | |
83 unsigned GetHitCount() const; | |
84 | |
85 /** Returns function entry UID. */ | 78 /** Returns function entry UID. */ |
86 unsigned GetCallUid() const; | 79 unsigned GetCallUid() const; |
87 | 80 |
88 /** Returns id of the node. The id is unique within the tree */ | 81 /** Returns id of the node. The id is unique within the tree */ |
89 unsigned GetNodeId() const; | 82 unsigned GetNodeId() const; |
90 | 83 |
91 /** Returns child nodes count of the node. */ | 84 /** Returns child nodes count of the node. */ |
92 int GetChildrenCount() const; | 85 int GetChildrenCount() const; |
93 | 86 |
94 /** Retrieves a child node by index. */ | 87 /** Retrieves a child node by index. */ |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 uint32_t index; // Index of the time interval that was changed. | 568 uint32_t index; // Index of the time interval that was changed. |
576 uint32_t count; // New value of count field for the interval with this index. | 569 uint32_t count; // New value of count field for the interval with this index. |
577 uint32_t size; // New value of size field for the interval with this index. | 570 uint32_t size; // New value of size field for the interval with this index. |
578 }; | 571 }; |
579 | 572 |
580 | 573 |
581 } // namespace v8 | 574 } // namespace v8 |
582 | 575 |
583 | 576 |
584 #endif // V8_V8_PROFILER_H_ | 577 #endif // V8_V8_PROFILER_H_ |
OLD | NEW |