The API is not intended to be used that way. The ConnectionFactory class would only be useful if you write you own profiler based on the API.
You would have to use method triggers for this use case. This means that you have to specify the methods in the method trigger rather than using an annotation. See here for more on trigger configuration.