Invention Grant
- Patent Title: Selectively tracing portions of computer process execution
-
Application No.: US16922887Application Date: 2020-07-07
-
Publication No.: US11249881B2Publication Date: 2022-02-15
- Inventor: Del Myers , Jackson Davis , Thomas Lai , Patrick Nelson , Jordi Mola , Juan Carlos Arevalo Baeza
- Applicant: Microsoft Technology Licensing, LLC
- Applicant Address: US WA Redmond
- Assignee: Microsoft Technology Licensing, LLC
- Current Assignee: Microsoft Technology Licensing, LLC
- Current Assignee Address: US WA Redmond
- Agency: Workman Nydegger
- Main IPC: G06F11/36
- IPC: G06F11/36 ; G06F11/30 ; G06F11/34

Abstract:
Expressly turning tracing on and off at each juncture between code that a developer wants to have traced and other code may reduce trace file size but adds computational cost. Described technologies support selectively tracing a process's execution, with some extra tracing done beyond the code the developer wanted traced, but with significantly reduced computational cost, by reducing the number of trace enablement and disablement operations. A trace controller uses a tracing disablement distance variable whose values indicate the computational distance from trace disablement. A distance variable modifier automatically moves the distance variable closer to a stop-tracing value as the process executes. The amount of extra tracing is balanced against the reduction in trace enablement/disablement operations by tuning thresholds, based on information about routine size and computational cost. Operation of the trace controller is illustrated by sample APIs, a tracing state diagram, and a side-by-side comparison, among other items.
Public/Granted literature
- US20200334129A1 SELECTIVELY TRACING PORTIONS OF COMPUTER PROCESS EXECUTION Public/Granted day:2020-10-22
Information query