-
Notifications
You must be signed in to change notification settings - Fork 2
VBA Profiler
VBA framework that allows you to monitor the runtime of your project's procedures with logging to txt/csv files, Excel range, VBA Immediate window or JSON file.
CProfiler.cls
VBA profiler object for monitoring VBA code productivity
MProfiler.bas
"Sugar" wrappers for VBA profiler object
COmniLogger.cls
OmniLogger object for logging events from VBA code
CJSONWriter.cls
Class to create JSON files
MSupport.bas
functions from Excel helpers snippets, which necessary for VBA Profiler framework
- Press
ALT+F11
to open VBA IDE
- Go to
MTests.bas
- Run procedure
testProfilerAndReportTypes()
to see how it works (comment/uncomment necessary log stream init procedure before run)
IMPORTANT! Do not forget to create 'logs' folder nearvba-profiler.xlsm
to avoid errors related to files creation into this folder
Just copy five modules: CProfiler.cls
, MProfiler.bas
, COmniLogger.cls
, CJSONWriter.cls
and MSupport.bas
to your project and you can start to measure your code productivity.
toRange
:
toJSON
:
toTXT
:
toCSV
:
toDebug
(parameter inTabularForm = False):
toDebug
(parameter inTabularForm = True):