Quick Start

November 28, 2017 ยท View on GitHub

English Korean

Scouter defaults to profile http service start/end event and sqls only if you don't set any other profile options.

But sometimes you need method level profiling, and you can set a few options for it. (The application should be started.)

The demo system below shows a basic level profile information the case of no method profile option set.

Refer to Quick Start Guide for install the demo system.

Basic Options

Optiondesc
hook_method_patternsmethod pattern signature to hook
use comma(,) to separate methods.
format : package.Class.method,package.Class2.method2
hook_method_patterns = com.scouter.HelloWorld.hello
//hook_method_patterns = com.scouter.*.* //package : com.scouter, class : any, method : any
//hook_method_patterns = com.scouter.HelloWorld.* //package : com.scouter, class : HelloWorld method : any

On set hook_method_patterns option at the demo system and restart it, you can see the profile below that include the method information.

Advanced Options

Optiondescdefault
hook_method_ignore_prefixesmethod prefix to exclude on a profilingget,set
hook_method_ignore_classesclasses pattern to exclude on a profiling
hook_method_access_public_enabledprofile public methodtrue
hook_method_access_private_enabledprofile private methodfalse
hook_method_access_protected_enabledprofile protected methodfalse
hook_method_access_none_enabledprofile default methodfalse