#!/usr/bin/perl -w # # A example which represents some XML as a tree use strict; use lib '../lib'; use GraphViz::XML; my $xml = '<Report> <Rpt_Note> <ReportType>timing</ReportType> </Rpt_Note> <PathList> <Path> <Path_Node> <StartPoint>xxx.xxx.xxx</StartPoint> <EndPoint>ccc.ccc.ccc</EndPoint> <DelayType>Max</DelayType> </Path_Node> <Point> <PointType>NetOrPort</PointType> <Name>xxx.xxx.xxx</Name> <Trigger>Rising</Trigger> <IncDelay>0.000</IncDelay> <TotalDelay>9.623</TotalDelay> </Point> <Point> <PointType>NetOrPort</PointType> <Name>ccc.ccc.ccc</Name> <Trigger>Falling</Trigger> <IncDelay>0.100</IncDelay> <TotalDelay>9.723</TotalDelay> </Point> </Path> </PathList> </Report>'; my $graph = GraphViz::XML->new($xml); $graph->as_png("xml.png"); #print $g->as_text; #print $g->_as_debug;pic XML spanning tree Refs: Graph Visualization Software
2010年8月17日 星期二
Path dealy @ graphviz Pt1
graphviz 提供了Flow Chart(GUI) 讓使用者能夠快速的知道Data的flow跟每個struct 的相關性,底下用XML Viewer @ SOC當範例.
tool environments
step1. install graphviz lib from Graph Visualization Software
step2. install GraphViz module from cpan
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言