<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2403</bug_id>
          
          <creation_ts>2012-05-03 08:08:31 +0000</creation_ts>
          <short_desc>Make the build profiling in pictures</short_desc>
          <delta_ts>2012-06-26 06:43:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(QA testing completed) Done</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21049</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-03 08:08:31 +0000</bug_when>
    <thetext>Add a script to poky/scripts/ which uses gnuplot to analyze the building time, we can figure out the build time from tmp/stamps/, then we can see clearly which pkg or task is the hot point, we may use this to reduce the build time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21318</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-12 09:23:43 +0000</bug_when>
    <thetext>Hi Richard,

I&apos;ve heard from Randy that you had already done a similar work of this for yocto, is it? I will drop this one if it is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21319</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-05-12 10:26:18 +0000</bug_when>
    <thetext>See https://wiki.yoctoproject.org/wiki/Build_Performance and in particular

https://lists.yoctoproject.org/pipermail/poky/2011-February/003740.html

It could use some improvement to autoscale the axies though (or generate multiple charts that tile)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21320</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-12 11:10:24 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; See https://wiki.yoctoproject.org/wiki/Build_Performance and in particular
&gt; 
&gt; https://lists.yoctoproject.org/pipermail/poky/2011-February/003740.html
&gt; 
&gt; It could use some improvement to autoscale the axies though (or generate
&gt; multiple charts that tile)

Thanks, Richard, I&apos;ve read the emails, and took a look at the pybootchartgui, it is GPL v3, I think that we can&apos;t add it to poky/scripts/ since poky is GPL V2 and MIT, I&apos;d like to add a shell script (Randy had showed me the proto of the script) to poky/scripts which can auto generate the similar charts like http://tim.rpsys.net/bootchart.png.

// Robert</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21321</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-05-12 12:37:23 +0000</bug_when>
    <thetext>No, please do not reinvent the wheel.

I don&apos;t think adding a python script under GPLv3 to the system should be an issue. Its clearly always distributed with the source to it and the only implication it will likely have is the modifications to the script would also be GPLv3. The code to generate this is relatively complex, it already exists and I don&apos;t see the license as a good reason to reinvent it.

It is worth checking with the legal people but this shouldn&apos;t be a problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21323</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-14 02:20:15 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; No, please do not reinvent the wheel.
&gt; 
&gt; I don&apos;t think adding a python script under GPLv3 to the system should be an
&gt; issue. Its clearly always distributed with the source to it and the only
&gt; implication it will likely have is the modifications to the script would
&gt; also be GPLv3. The code to generate this is relatively complex, it already
&gt; exists and I don&apos;t see the license as a good reason to reinvent it.
&gt; 
&gt; It is worth checking with the legal people but this shouldn&apos;t be a problem.

Thanks, I will add the pybootchartgui to poky/script/, I think here are the work that I should do:

1) Investigate pybootchartgui
2) Apply the patch that you had made for it
3) Try to make some improvements (autoscale the axies or generate multiple charts that tile)

I will ask you for more help when I know more about it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22265</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-06-18 01:54:53 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3d78bc19c5b63541fd45dad7580ade55ba512764
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=bc5b86f025c9c1d9f0e1a58e92fe8c1381c096a5
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0ad3f754324eb6337243ca7d28f32b047eca0b51
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1b112fa9cf0f0a3efe022e68d3ad1575c8b9de74</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22583</commentid>
    <comment_count>7</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-06-26 06:43:33 +0000</bug_when>
    <thetext>run &quot;path_to_git/scripts/pybootchartgui/pybootchartgui.py&quot; , such as below:
pybootchartgui.py  path_to_builddir/tmp/buildstats/core-image-sato-qemux86/201206251800/

pybootchartgui.py  path_to_builddirtmp/buildstats/core-image-minimal-qemux86/201206211644/


can get Bootchart popup window.

./pybootchartgui.py -s 4 -o /home/yocto/test_profiling/ path_to_builddir/tmp/buildstats/core-image-sato-qemux86/201206251800/
can get 4 svg files in dir &quot;/home/yocto/test_profiling/&quot;.

git info:8ce8d25bcda0e2e0b62204d5ca5875dedcaacf7d
git branch:poky/master

test host: ubuntu 12.04 x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>