diff options
| author | Mircea Trofin <mtrofin@google.com> | 2022-07-21 08:30:23 -0700 |
|---|---|---|
| committer | Mircea Trofin <mtrofin@google.com> | 2022-07-22 09:17:59 -0700 |
| commit | 7b81a81d5f9cccb1b091cfc5264bc483b0acc83a (patch) | |
| tree | 6ddcbbb88af2267a262ed7a48933f86640569596 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | f5759add702eb0b1243198d7f49b7a010b977f5d (diff) | |
[NFC] FunctionSamples::getEntrySamples -> getHeadSamplesEstimate
The name `getEntrySamples` was misleading for 2 reasons. One, it's
close in name to `Function::getEntryCount`, but the equivalent here is
`getHeadSamples`; second, as opposed to the other get* APIs in
`FunctionSamples`, it performs an estimate/heuristic rather than just
retrieving raw data (or a non-heuristic derivate off that data, like
`getMaxCountInside`)
The new name should more clearly communicate its intent; and, being
close (in name) to `getHeadSamples`, it should allow the reader discover
the relation between them.
Also updated the doc comments for both `getHeadSamples[Estimate]` so a
reader may better understand the relation between them.
Differential Revision: https://reviews.llvm.org/D130281
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
