FIXME: it should be possible to fetch more frames for an arbitrary thread, without making it current.
| 432 | // FIXME: it should be possible to fetch more frames for |
| 433 | // an arbitrary thread, without making it current. |
| 434 | void FrameStackModel::fetchMoreFrames() |
| 435 | { |
| 436 | Q_D(FrameStackModel); |
| 437 | |
| 438 | d->m_subsequentFrameFetchOperations += 1; |
| 439 | const int fetch = 20 * d->m_subsequentFrameFetchOperations * d->m_subsequentFrameFetchOperations; |
| 440 | if (d->m_currentThread != -1 && d->m_hasMoreFrames[d->m_currentThread]) { |
| 441 | setHasMoreFrames(d->m_currentThread, false); |
| 442 | const int frameCount = d->m_frames[d->m_currentThread].size(); |
| 443 | fetchFrames(d->m_currentThread, frameCount, frameCount - 1 + fetch); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | } |
| 448 |