Skip to Main Content

How to to programmatically create diagnostic profile ?

938644Sep 16 2012 — edited Sep 17 2012
Hi,
I'm trying to create a diaganostic profile programmatically .
I didn't see any example like this. My purpose is to create a profile like in the ' Visualizer ' tool.
I'm trying to use these lines:
...

Application a=new ApplicationImpl(myApp);
DiagnosticProfileManagerImpl diagnosticProfileManagerImpl=new DiagnosticProfileManagerImpl(a);

probeNames=new ObjectName;
diagnosticProfileManagerImpl.createDiagnosticProfile(profileName, probeNames);
....

I got a NullPointerException .
Any ideas? examples ?
Comments
Post Details
Added on Sep 16 2012
3 comments
436 views