<div dir="ltr">You would need to show your source; that line by itself is not enough.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 2:20 PM, Fabien R <span dir="ltr"><<a href="mailto:theedge456@free.fr" target="_blank">theedge456@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I have troubles profiling my EPG grabber.<br>
<br>
The profile log is:<br>
--------------------------<br>
        Thu Feb  8 17:14 2018 Time and Allocation Profiling Report  (Final)<br>
<br>
           tv_grab_fr +RTS -pa -hc -i1 -RTS --days 1 --output-file /res.xml<br>
<br>
        total time  =      103.35 secs   (103353 ticks @ 1000 us, 1 processor)<br>
        total alloc = 7,602,130,080 bytes  (excludes profiling overheads)<br>
<br>
COST CENTRE                                     MODULE<br>
                    SRC<br>
                  %time %alloc  ticks     bytes<br>
<br>
GC                                              GC<br>
                    <built-in><br>
                   50.5    0.0  52166     57504<br>
parse<br>
Text.HTML.TagSoup.<wbr>Specification<br>
src/Text/HTML/TagSoup/<wbr>Specification.hs:35:1-19<br>
15.4   15.2  15879 1159030944<br>
output<br>
Text.HTML.TagSoup.<wbr>Implementation<br>
src/Text/HTML/TagSoup/<wbr>Implementation.hs:(80,1)-(142,<wbr>44)<br>
13.5   22.9  14000 1743780696<br>
expand<br>
Text.HTML.TagSoup.<wbr>Implementation<br>
src/Text/HTML/TagSoup/<wbr>Implementation.hs:(49,1)-(60,<wbr>30)<br>
11.6   39.0  11976 2962740856<br>
--------------------------<br>
Further in the log, I see:<br>
<br>
TvGrabPrograms.<wbr>mySccGetProgramDetails<br>
TvGrabPrograms<br>
src/TvGrabPrograms.hs:69:1-17                             5000<br>
19    0.6    2.2    42.3   79.2    640 165979512<br>
     ~/=<br>
 Text.HTML.TagSoup<br>
src/Text/HTML/TagSoup.hs:103:<wbr>1-25                         5543<br>
135987    0.1    0.0    28.5   44.4     54   3263688<br>
      ~==<br>
 Text.HTML.TagSoup<br>
src/Text/HTML/TagSoup.hs:(87,<wbr>1)-(99,21)                   5544<br>
135987    0.5    0.3    28.4   44.3    485  19485856<br>
       parseTags<br>
 Text.HTML.TagSoup.Parser<br>
src/Text/HTML/TagSoup/Parser.<wbr>hs:16:1-41                   5545<br>
135987    0.0    0.0    27.9   44.1     44         0<br>
        parseTagsOptions<br>
 Text.HTML.TagSoup.Parser<br>
src/Text/HTML/TagSoup/Parser.<wbr>hs:25:1-39                   5546<br>
135987    0.1    0.1    27.9   44.1    138   7615272<br>
         parseTagsOptions<br>
 Text.HTML.TagSoup.Manual<br>
src/Text/HTML/TagSoup/Manual.<wbr>hs:12:1-54                   5547<br>
135987    0.4    0.3    27.7   44.0    422  22845912<br>
          output<br>
 Text.HTML.TagSoup.<wbr>Implementation<br>
src/Text/HTML/TagSoup/<wbr>Implementation.hs:(80,1)-(142,<wbr>44)   5548<br>
135987    8.0   13.1     8.0   13.2   8221 994675336<br>
--------------------------<br>
But I see no function (~/=) calling (~==) calling parseTags in my code.<br>
<br>
The only line using parseTags is:<br>
let !tl = parseTags $ L8.unpack $ responseBody httpRsp<br>
<br>
Did I miss something ?<br>
<br>
Thanks in advance,<br>
Fabien<br>
<br>
<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div>