<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 6:32 AM, Tomas Jelinek <span dir="ltr">&lt;<a href="mailto:tjelinek@redhat.com" target="_blank">tjelinek@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">yes, you can try to debug it:<br><a>https://www.ovirt.org/develop/<wbr>developer-guide/debugfrontend/</a><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">On Thu, Jul 13, 2017 at 10:51 AM, 紫星雨 <span dir="ltr">&lt;<a>liu123fang@qq.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5">Hello!<br>     <br><p class="gmail-m_-1921560608569300635m_6800437533363135665tgt" style="margin:0px 0px 0.4em;padding:0px;border-width:0px;border-style:none;border-color:currentcolor;font-size:14px;font-weight:normal;line-height:21px;color:rgb(43,43,43);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial">Recently, I am debugging the &#39;Webadmin&#39; module to add a new function. But <span style="color:rgb(43,43,43);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">the time of compiling the &#39;Webadmin&#39; module is very long, nearly eight minutes. </span><br><span style="color:rgb(43,43,43);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">Is there any debug method that can compile quickly.  <br></span></p><p class="gmail-m_-1921560608569300635m_6800437533363135665tgt" style="margin:0px 0px 0.4em;padding:0px;border-width:0px;border-style:none;border-color:currentcolor;font-size:14px;font-weight:normal;line-height:21px;color:rgb(43,43,43);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial"><br></p></div></div></blockquote></div></div></blockquote><div><br><div>The only way to really decrease the compile time of webadmin is to 
reduce the number of GWT permutations.  There is a new GWT compile for 
every permutation, and there is a permutation for every browser * every 
locale.  A full oVirt build will do 3 browsers (ie10, gecko/firefox and 
safari/webkit/chrome) and 9 languages for a total of 27 permutations.<br><br></div><div>The debug page shows a few build commands that can reduce the number of permutations included.<br><br></div><div>When
 I compile, I only compile for 1 browser (chrome), 1 language (English),
 include all of the unit tests and exclude the userportal.  Here is my 
build command:<br><br>  make \<br>    clean install-dev \<br>    PREFIX=$HOME/ovirt-engine \<br>    BUILD_UT=1 \<br>    BUILD_GWT=1 \<br>    BUILD_GWT_USERPORTAL=0 \<br>    DEV_EXTRA_BUILD_FLAGS=&quot;-Dgwt.<wbr>compiler.localWorkers=1&quot; \<br>    DEV_EXTRA_BUILD_FLAGS_GWT_<wbr>DEFAULTS=&quot;-Dgwt.<wbr>cssResourceStyle=pretty -Dgwt.userAgent=safari -Dgwt.locale=en_US&quot;<br><br></div><div>On compiles after only changing source in webadmin, I&#39;ll drop the &#39;clean&#39; and set BUILD_UT=0.<br><br></div>If
 you want more then one language, just add the extra local comma 
separated.  For example, to get English and German, use 
&#39;-Dgwt.locale=en_US,de_DE&#39;.<br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><p class="gmail-m_-1921560608569300635m_6800437533363135665tgt" style="margin:0px 0px 0.4em;padding:0px;border-width:0px;border-style:none;border-color:currentcolor;font-size:14px;font-weight:normal;line-height:21px;color:rgb(43,43,43);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial">(I use ovirt-engine 4.1 version)</p><p class="gmail-m_-1921560608569300635m_6800437533363135665tgt" style="margin:0px 0px 0.4em;padding:0px;border-width:0px;border-style:none;border-color:currentcolor;font-size:14px;font-weight:normal;line-height:21px;color:rgb(43,43,43);font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(43,43,43);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(248,248,248);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"><br></span></p><br><br><br><br><img><br></div></div>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a>Devel@ovirt.org</a><br>
<a rel="noreferrer">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/">http://lists.ovirt.org/</a><wbr>mailman/listinfo/devel<br></blockquote></div><br></div></div>