uber-common / jvm-profiler

JVM Profiler Sending Metrics to Kafka, Console Output or Custom Reporter
Other
1.79k stars 342 forks source link

multiple packages/methods for duration profiling #69

Closed Vkodthiv closed 4 years ago

Vkodthiv commented 4 years ago

I have a need for profiling multiple packages. Tried durationProfiling=com.optum.voyager.core.persistence.service.repository.HL7ResourceRepository.*,com.optum.voyager.core.persistence.service.repository.ElasticServiceImpl.*

with following results Caused by: java.lang.IllegalArgumentException: Arguments for the agent should be like: key1=value1,key2=value2 at com.uber.profiling.Arguments.parseArgs(Arguments.java:94) at com.uber.profiling.Agent.premain(Agent.java:35)

What is the right way to specify multiple packages?

Vkodthiv commented 4 years ago

never mind. found the answer durationProfiling=a.bc.foo,durationProfiling=ab.c.d.test