Lines Matching refs:expandLimit
534 use expandLimit to setup how may frame match is needs
539 size_t expandLimit)
543 if (expandLimit == 0 or newCallFrames.size() < expandLimit or
544 cachedCallFrames.size() < expandLimit or
546 HLOGM("expandLimit %zu not match new %zu cache %zu", expandLimit, newCallFrames.size(),
554 const auto newIt = newCallFrames.end() - expandLimit;
557 expandLimit);
562 size_t distances = expandLimit - 1;
569 while (std::distance(cachedIt, cachedCallFrames.end()) >= signed(expandLimit)) {
573 if (std::equal(newIt, newIt + expandLimit, cachedIt)) {
574 HLOGM("match %s + %zu", newIt->ToString().c_str(), expandLimit);
575 cachedIt += expandLimit; // in while we check the boundary safe
604 size_t CallStack::ExpandCallStack(pid_t tid, std::vector<DfxFrame> &callFrames, size_t expandLimit)
607 if (expandLimit == 0) {
609 } else if (callFrames.size() < expandLimit) {
635 if (cachedCallStack.size() < expandLimit) {
639 expand = DoExpandCallStack(callFrames, cachedCallStack, expandLimit);