Support stack frames pagination for a thread

Open
#1,311 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp

Research direction

Start by tracing HandleStackTraceRequestAsync to EnumFrameInfo and compare the requested frame range with the current parameter enumeration. The change is done when EnumFrameInfo receives the requested start and end levels, gathers information only for that range, and the handler still returns the requested slice. No file or test path is named in the issue.

Written by the indexing model from the issue text.

Description

Feature Request

At this moment EnumFrameInfo method reads parameters info for all stack frames of a thread in spite of a client requesting a range of them (e.g. vscode-cpptools by default requests only the first 20 frames).
Finally the HandleStackTraceRequestAsync handler replies to a client with a requested slice of frames. It means that some resources were wasted and it creates a significant delay on large stacks.

Is it possible to pass start and end frame level into the EnumFrameInfo to get necessary info only?

Dominant language
C#
Stars
859
Forks
233
Avg merge
1d 6h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/MIEngine

All issues in microsoft/MIEngine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.