Skip to content

Instantly share code, notes, and snippets.

@tessguefen
Last active July 18, 2018 21:07
Show Gist options
  • Save tessguefen/bb8b0362ad4b0246ab0272eae163c78d to your computer and use it in GitHub Desktop.
Save tessguefen/bb8b0362ad4b0246ab0272eae163c78d to your computer and use it in GitHub Desktop.
Diagtool

Miva - Profiling and Diagnostic Process

logfile=diagtool.log
loglevel=144
logcookie=mivadiagtool
  • Visit page(s) that you're trying to troubleshoot
  • Download /private/mivadata/diagtool.log file
  • Run mvprof -o diagtool-output.txt diagtool.log in your terminal
MvCONFIG_LOG_FUNC_CALL              16          Calls to native (MivaScript) functions
MvCONFIG_LOG_FUNC_PARAM             32          Parameters to native (MivaScript) functions
MvCONFIG_LOG_FUNC_RETVAL            64          Return values from native (MivaScript) functions
MvCONFIG_LOG_FUNC_RETURN            128         Return from native (MivaScript) functions
MvCONFIG_LOG_EXTERNAL_FUNC_CALL     256         Calls to builtin or other external functions
MvCONFIG_LOG_EXTERNAL_FUNC_PARAM    512         Parameters to builtin or other external functions
MvCONFIG_LOG_EXTERNAL_FUNC_RETVAL   1024        Return values from builtin or other external functions
MvCONFIG_LOG_EXTERNAL_FUNC_RETURN   2048        Return from builtin or other external functions
MvCONFIG_LOG_MvDO_FILE_ENTER        4096        MvDO of an entire file has begun
MvCONFIG_LOG_MvDO_FILE_EXIT         8192        MvDO of an entire file has ended
MvCONFIG_LOG_MvCALL                 1048576     Logs raw request and response data for the MvCALL tag (requires v5.13)
MvCONFIG_LOG_APPLICATION_TIMEOUT    134217728   Logs globaltimeout terminations (requires v5.13)
MvCONFIG_LOG_RUNTIME_ERROR          268435456   All runtime errors
MvCONFIG_LOG_FATAL_ERROR            536870912   All fatal errors
MvCONFIG_LOG_TRACE                  1073741824  Logs each line of source code executed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment