Exclude Classes and JARs from Being Instrumented
Classes
You can exclude one or more class names from being instrumented, using the "adeum" excludeClasses snippet. You can specify the classes that matches the wildcard patterns, see Supported Wildcards.
To exclude named classes from instrumentation, add the class names to the excludeClasses array, using matching patterns where needed:
...
adeum {
// Excludes all the classes in the android.support.multidex and okio packages.
excludeClasses = ['android.support.multidex.*', 'okio.**']
}
...
JARs
You can exclude one or more JARs from being instrumented, using the "adeum" excludeJars snippet. You can specify the JARs that matches the wildcard patterns, see Supported Wildcards.
...
adeum {
excludeJars = [
"okhttp*.jar",
"**/cache/**/analytics.jar"
]
}
...
インストゥルメンテーションにクラスを含める
インストルメンテーション中に含めるクラスの数を減らす必要がある場合は、"adeum" includeClasses スニペットを使用できます。これにより、エージェントは、includeClasses に記載されていない新しく追加されたクラスをインストゥルメント化しません。ワイルドカードパターンと一致するクラスを指定できます。「サポートされるワイルドカード」を参照してください。
この方法では、指定されたクラスのみが含まれ、残りのクラスはインストゥルメント化から除外されます。
...
adeum {
// Includes the classes that are in the codeissues folder.
includeClasses = ['com/appdynamics/everyfeature/codeissues/**']
}
...
サポートされるワイルドカード
クラス名にはワイルドカードを含めることができます。
| ? | 1 文字用。 |
| *。 | 任意の数の文字用(ただし、パッケージの区切り文字以外)。 |
| ** | 任意の数の文字用。 |
| $ | 内部クラス名用のプレフィックス。 |