[ grinder-Bugs-2992248 ] New Instrumentation method not working for 'record'
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.grinder.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2992248, was opened at 2010-04-26 10:05
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=2992248&group_id=18598
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core engine
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: New Instrumentation method not working for 'record'
Initial Comment:
I have downloaded Grinder 3.4 and installed on a Windows 2003 server, with Jython2.5.1 and Java sdk jdk1.6.0_20
When I run the sample helloworld script (as listed at the end of this email) which uses the 'record' method for instrumentation it seems that although the log file is being written to, however the Console does not get any aggregated data when using ‘record’
No data is written to the data file (example: data_gwydlg030322-0.log)
If we use the older ‘wrap’ method with the new instrumentation all works ok.
We see certain text in the log file proving that it is using the new instrumentation:
instrumentation agents: byte code transforming instrumenter for Jython 2.5; byte code transforming instrumenter….
4/21/10 11:34:05 AM (thread 5 run 22): Hello World
4/21/10 11:34:05 AM (thread 6 run 3): Hello World
Any help greatly appreciated
/Kevin
ps Via the grinder.properties we set the instrumentation to the new version: ingrinder.dcrinstrumentation: true
Helloworld.py
from net.grinder.script import Test
from net.grinder.script.Grinder import grinder
test1 = Test(1, "Log method")
# Instrument the output() method with our Test.
test1.record(grinder.logger.output)
class TestRunner:
def __call__(self):
grinder.logger.output("Hello World")
------------------------
Kevin,
You're right - it appears the new instrumentation is not working for
Java functions. Its working for other things, e.g. you should find the
following works:
from net.grinder.script import Test
from net.grinder.script.Grinder import grinder
test1 = Test(1, "Log method")
# Instrument the output() method with our Test.
def foo(x):
grinder.logger.output(x)
test1.record(foo)
class TestRunner:
def __call__(self):
foo("Hello World")
Apologies for not trying this immediately. Dave - thanks for the
confirmation.
Please open a bug report on the sourceforge website.
- Phil
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=118598&aid=2992248&group_id=18598
------------------------------------------------------------------------------
_______________________________________________
Grinder-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-development