From GridLAB-D Wiki
The profile option produces profiler output from GridLAB-D. It is managed by the global variable profiler, which is by default FALSE.
GLM
To enable profile mode use the directive
#set profile=1
To disable profile mode use the directive
#set profile=0
Command line
To toggle profile mode use the option
host% gridlabd --profile
To enable profile mode use the option
host% gridlabd -D profile=1
To disable profile mode use the option
host% gridlabd -D profile=0