Serialization for structured tracing in managed code
Abstract
A system and method, useful in tracing program execution, for serializing data, such as an object data, into consistent, structured (e.g., XML) output. A serializer processes an object's data, and for each set of data, records the object's data in a structured (e.g., XML) format that reflects the object's current state. Nodes corresponding to fields and properties of the object are nested in the structure. Simple types define nodes with the current data value associated with the tag. More complex types including arrays, collections, dictionaries and exceptions are stored as individual members of a type, with any complex members further broken down into sub-nodes. Object data including custom collections, dictionaries, non-public fields and properties and properties with only get-accessor are serialized. The resulting output, such as in an XML formatted structure, is easy to read by humans, and is easily processed, such as for automated analysis purposes.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computing environment, a method of logging tracing data into a consistent and structured output, the method comprising: providing public methods for implementing structured tracing comprising: XmlTracer which initializes a new instance of an XmlTracer class, GetHashCode which serves as a hash function for a particular type for use in hashing algorithms and data structures, GetType which gets the type of a current instance of a tracer object, Serialize which serializes the tracer object, and ToString which returns a string that represents the current tracer object; providing attributes use
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗