You can use the Drools guvnor to measure the execution time of each rule.
This is the feature of that.
On Mon, Nov 14, 2011 at 11:00 AM, Zhao Yi zhaoyi0...@gmail.com wrote:
I want to check how long each rule executed. Can I add any listener on
drools
run time to get the rule time?
Thanks,
Sure, you can use
/ksession.addEventListener( listener )/
to add your listeners. You'll have to implement the /AgendaEventListener/
interface: in particular, the /beforeActivationFired/ and
/afterActivationFired/ handlers.
If needed, the /WorkingMemoryEventListener/ will let you monitor object