Skip to main content

Hello,

We are using VSC 6.0 with VS2019 and compile directive TRACE along with outdd to find out where our cobol code is slowing down sometimes.  We get each paragraph or section heading as it is executed but we would like to see if we can get a timestamp with it, so we can see where the code slows down.

I have looked at CTF Tracing, but it does not seem to give the same information as above.

Any pointers would be appreciated.

George Sinclair

Hello,

We are using VSC 6.0 with VS2019 and compile directive TRACE along with outdd to find out where our cobol code is slowing down sometimes.  We get each paragraph or section heading as it is executed but we would like to see if we can get a timestamp with it, so we can see where the code slows down.

I have looked at CTF Tracing, but it does not seem to give the same information as above.

Any pointers would be appreciated.

George Sinclair

You cannot output timestamp information along with output from TRACE.

Using CTF with the right options you could get a trace of only the programs that were called along with the timestamp but it does not show it at the granularity of sections and paragraphs.

If you are looking for where time is being spent within each paragraph or section then you might try to generate a profile report for your application. This will break it down by paragraph along with the percentage of time being spent in that paragraph along with a count of how many times it has been entered.

See Profiler