Skip to main content
Bumped by Community user
Tweeted twitter.com/StackSoftEng/status/1284140825149087747
Bumped by Community user

I was recently tasked with thinking about returning optional tracing information about the execution of a complex algorithm. It's the kind of data you need to analyse the inner workings - a bit like logging of intermediate results but being programmatically available to the caller and optional.

I only had rather bad ideas that involve too many changes to the core algorithm, like passing additional parameters all the way through. Also Also I couldcouldn't find anything on the web.

thanks fricke

I was recently tasked with thinking about returning optional tracing information about the execution of a complex algorithm. It's the kind of data you need to analyse the inner workings - a bit like logging of intermediate results but being programmatically available to the caller and optional.

I only had rather bad ideas that involve too many changes to the core algorithm, like passing additional parameters all the way through. Also I could find anything on the web.

thanks fricke

I was recently tasked with thinking about returning optional tracing information about the execution of a complex algorithm. It's the kind of data you need to analyse the inner workings - a bit like logging of intermediate results but being programmatically available to the caller and optional.

I only had rather bad ideas that involve too many changes to the core algorithm, like passing additional parameters all the way through. Also I couldn't find anything on the web.

Source Link
fricke
  • 157
  • 2

How to return "debugging" information during the execution of an algorithm

I was recently tasked with thinking about returning optional tracing information about the execution of a complex algorithm. It's the kind of data you need to analyse the inner workings - a bit like logging of intermediate results but being programmatically available to the caller and optional.

I only had rather bad ideas that involve too many changes to the core algorithm, like passing additional parameters all the way through. Also I could find anything on the web.

thanks fricke