TransferWare / dbug

DBUG - debugging for C and Oracle PL/SQL
https://TransferWare.github.io/dbug/
GNU Lesser General Public License v3.0
0 stars 0 forks source link

It must be possible to profile based on other logging modules than DBUG_PROFILER. #10

Open gpaulissen opened 19 hours ago

gpaulissen commented 19 hours ago

When you activate the channelPROFILER via DBUG.ACTIVATE('PROFILER') you will get profiling. However when other channels like 'LOG4PLSQL' are activated you should be able to determine profiling info as well.

Therefore you must replay the enter/leave actions in the other channel logging thru DBUG_PROFILER.

First step is to add timestamps (Oracle function SYSTIMESTAMP) to other channel logging so you determine the time elapsed. Next step is to enhance the packages DBUG_*:

gpaulissen commented 15 hours ago

See DBUG_PROFILER.ENTER, DBUG_PROFILER.LEAVE and DBUG_LOG4PLSQL.FEED_PROFILER. Table TLOG altered with two new columns: LSESSION and UTC_TIMESTAMP.