mheinsen / seec

Program visualization and debugging for novice C programmers
http://seec-team.github.io/seec/
MIT License
3 stars 0 forks source link

Split seec::trace::TracedFunction into separate objects for active and completed functions. #12

Closed mheinsen closed 10 years ago

mheinsen commented 11 years ago

The current implementation of TracedFunction is bad design. We should use one class for tracing an active function, then generate a new object (of a different) class when that function completes. The object for the completed function won't require any of the active-only information such as the active instruction, allocas, byval areas, stack saves, or current runtime values. The object for the active function won't require information such as the offset of the FunctionEnd event, or the thread time at which the function was exited.

mheinsen commented 10 years ago

Done in 020e557c324467b3f41dbc498c6f124f74e03df3.