Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 156376 - Profiling Perspective does not load trace data captured from a Logging Agent.
Summary: Profiling Perspective does not load trace data captured from a Logging Agent.
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Eugene Chan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 119688
  Show dependency tree
 
Reported: 2006-09-06 11:28 EDT by Paul Slauenwhite CLA
Modified: 2016-05-05 10:59 EDT (History)
3 users (show)

See Also:


Attachments
DemoLoggingAgent.java (9.46 KB, application/octet-stream)
2006-09-06 11:32 EDT, Paul Slauenwhite CLA
no flags Details
ResourceContents_LoggingAgent.xmi (2.29 KB, text/plain)
2006-09-12 14:28 EDT, Paul Slauenwhite CLA
no flags Details
ResourceContents_Profiling.xmi (2.90 KB, text/plain)
2006-09-12 14:28 EDT, Paul Slauenwhite CLA
no flags Details
DemoLoggingAgent.java (7.72 KB, application/octet-stream)
2006-09-12 14:29 EDT, Paul Slauenwhite CLA
no flags Details
Trace XML file. (4.07 KB, text/xml)
2008-01-04 11:59 EST, Paul Slauenwhite CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Slauenwhite CLA 2006-09-06 11:28:56 EDT
Profiling Perspective does not load trace data captured from a Logging Agent.

Using the enclosed DemoLoggingAgent.java class (see instructions with attachment), the valid trace data send via a Logging Agent and loaded into the TPTP Trace model is not loaded into the various trace data views of the Profiling Perspective.  For example, opening the Memory Statistics view renders a blank table despite valid data being in the model and refreshing the view.
Comment 1 Paul Slauenwhite CLA 2006-09-06 11:32:14 EDT
Created attachment 49501 [details]
DemoLoggingAgent.java

Instructions:

1) Add the following methods to the org.eclipse.hyades.logging.core.LoggingAgent.java class (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=140242):

 public String getAgentUUID(){
    	return delegate.getAgentUUID();
    }
    
    public long getPID(){
    	return delegate.getPID();
    }
2) Run DemoLoggingAgent.java.

3) Attach to 'Demo Logging Agent' Logging Agent.
Comment 2 Eugene Chan CLA 2006-09-06 11:37:23 EDT
The view may be associated with Profiling type agent only and Logging agent is filtered to display trace data.
Comment 3 Paul Slauenwhite CLA 2006-09-12 14:26:33 EDT
This appears to be a model loading problem after further investigation.  Using the enclosed trace XML data (derived from profiling a Java application to a file), the context (e.g. node/process/agent) and core events (e.g. class definitions and object allocations) are loaded, but the method invocations are not (see the enclosed serialized models).    

As such, moving to the model component and assigning to Ruth.

Please increase the priority to P1 since this blocks #119688.
Comment 4 Ruth Lee CLA 2006-09-12 14:28:02 EDT
Based on a discussion with Paul, sounds like only part of the data is being loaded into the model. Reassigning to Platform.Model and upgrading to P1 because this is blocking Paul's Tech Preview, Java API Recorder.
Comment 5 Paul Slauenwhite CLA 2006-09-12 14:28:17 EDT
Created attachment 49962 [details]
ResourceContents_LoggingAgent.xmi
Comment 6 Paul Slauenwhite CLA 2006-09-12 14:28:53 EDT
Created attachment 49963 [details]
ResourceContents_Profiling.xmi
Comment 7 Paul Slauenwhite CLA 2006-09-12 14:29:54 EDT
Created attachment 49964 [details]
DemoLoggingAgent.java
Comment 8 Chris Aniszczyk CLA 2006-10-18 15:17:18 EDT
what's the ETA on this fix?
Comment 9 Paul Slauenwhite CLA 2006-11-02 23:36:04 EST
A work-around has been found for the API Recorder (163170) - manually setting the necessary configuration options on the target agent.  As such, this defect is not required by the API Recorder in 4.3 i3.  As such, lowering the severity.  However, this defect is still valid since emitting Trace XML data via a Logging Agent and loading the trace events in the Trace EMFD model is a standard use case for TPTP and our users/consumers.
Comment 10 Ruth Lee CLA 2006-11-03 12:34:10 EST
Defer these defects to 4.4 because they can't be contained by end of day today and they're not on any critical list. 
Comment 11 Eugene Chan CLA 2007-02-08 11:49:13 EST
Lower priority to P2 in the list of 4.4
Comment 12 Harm Sluiman CLA 2008-01-02 15:16:57 EST
Paul, can you provide a trcxml file with the events, or a standalone agent file fo events to reproduce this problem without having to run the sample agent etc.?

It iwll seed my debugging/fixing
Comment 13 Paul Slauenwhite CLA 2008-01-04 11:59:35 EST
Created attachment 86211 [details]
Trace XML file.
Comment 14 Paul Slauenwhite CLA 2008-01-04 12:03:50 EST
(In reply to comment #12)
> Paul, can you provide a trcxml file with the events, or a standalone agent file
> fo events to reproduce this problem without having to run the sample agent
> etc.?
> 
> It iwll seed my debugging/fixing
> 

Attached.  However, this import scenario seems to work.  The concern is with the attach scenario not loading the trace data, event with the agent type set to Profiler (this should not be required as well).
Comment 15 Paul Slauenwhite CLA 2009-06-30 07:00:00 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 16 Paul Slauenwhite CLA 2009-07-03 06:48:55 EDT
Reopening since still relevant.
Comment 17 Paul Slauenwhite CLA 2009-09-24 14:22:03 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. Since this defect is more than 2 years old, it may be no longer relevant. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this defect is resolved as WONTFIX. If this defect is still relevant and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.
Comment 18 Paul Slauenwhite CLA 2009-09-28 10:53:10 EDT
Reopening since still relevant.  Can we triage this into TPTP 4.6.2/4.6.3.
Comment 19 Kathy Chan CLA 2009-11-24 16:32:53 EST
Paul, how pervasive is this problem for the user?
Comment 20 Paul Slauenwhite CLA 2009-11-25 06:52:48 EST
(In reply to comment #19)
> Paul, how pervasive is this problem for the user?

Not very.  It does creep into the API Recorder use case but we have worked around it there.  Although emitting Trace XML data via a
Logging Agent and loading the trace events in the Trace EMF model is still a
valid use case, I am fine with closing it for now.
Comment 21 Kathy Chan CLA 2009-11-25 09:50:41 EST
Based on the resource on the team and the fact that the problem is not very pervasive, I'm resolving this defect as Won't Fix.
Comment 22 Paul Slauenwhite CLA 2009-11-25 10:15:08 EST
Closing.