Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Profile figures for /usr/bin/podbrowser suddenly running very slowly

by RCH (Sexton)
on Apr 25, 2014 at 09:33 UTC ( [id://1083765]=perlquestion: print w/replies, xml ) Need Help??

RCH has asked for the wisdom of the Perl Monks concerning the following question:

Dear Perl Monks

On my main (Ubuntu 13.04) computer "Sheep", podbrowser has suddenly started running very slowly (takes an age to respond to key presses, screen greys out while its thinking).

I uninstalled and reinstalled. No improvement whatsoever.

So I did

perl -d:NYTProf /usr/bin/podbrowser

on "Sheep", and on a second computer "Tiger" (also running Ubuntu 13.04)

Now I'm lost.

Here are the NYTProf figures for "Inclusive Time" Sheep milliseconds as a multiple of Tiger milliseconds.

2177.33 Gtk2::Ex::PodViewer::load_function 2089.11 Gtk2::init (xsub) 1880.71 utf8::SWASHNEW (recurses: max depth 1, inclusive ti +me 83┬╡s) 945.89 Gtk2::IconTheme::has_icon (xsub) 50.79 Gtk2::Ex::PodViewer::Parser::CORE:readline (opcode) 39.58 Gtk2::Widget::show (xsub) 17.30 Gtk2::main 16.50 main::generate_index 15.27 Gtk2::GladeXML::new (xsub) 6.34 main::CORE:match (opcode) 7.10 Gtk2::main_iteration (xsub) 5.11 main::toggle_mod_tree 3.75 main::search_input_changed 0.71 Gtk2::TreeStore::append (xsub) 0.41 Gtk2::TreeStore::set (xsub)

Any idea what may be the problem?

RichardH

Replies are listed 'Best First'.
Re: Profile figures for /usr/bin/podbrowser suddenly running very slowly
by RMGir (Prior) on Apr 25, 2014 at 12:00 UTC
    There's something garbled in your
    1880.71    utf8::SWASHNEW (recurses: max depth 1, inclusive time 83┬╡s)
    
    line.

    What does the inclusive time look like? Maybe something's broken in the utf8 handling?


    Mike

      Ohhhh my most grovelling apologies.
      The numbers in my original posting are hopelessly and horribly wrong
      The correct numbers are in the table below
      And my question becomes:-

      • How to investigate reason why computer "Sheep" spent so much time in podbrowser subroutine main::search_input_changed (Part A. of the table below)

      (Parts B. and C. of the table below, show that there were differences between the two computers in the lists of subroutines in nytrpof/index.html
      Could this be because I failed to give podbrowser the same task in the two computers?)

      Result of running perl -d:NYTProf /usr/bin/podbrowser on 2 computers "Sheep" and "Tiger"
      Data are "Inclusive Time" (ms); from the tables nytrpof/index.html
      A. Subroutine Tiger Sheep (Sheep /
      . / Tiger)
      Gtk2:: main 14,300 74,100 5.2
      main:: search_input_changed 49.9 47,200 945.9
      main:: toggle_mod_tree 39.6 685.0 17.3
      Gtk2:: main_iteration (xsub) 39.4 393.0 10.0
      Gtk2::TreeStore:: append (xsub) 9.9 236.0 23.8
      Gtk2::TreeStore:: set (xsub) 14.3 223.0 15.6
      Gtk2::GladeXML:: new (xsub) 36.0 184.0 5.1
      main:: generate_index 24.8 176.0 7.1
      Gtk2::Ex::PodViewer:: load_function 34.1 128.0 3.8
      main:: CORE:match (opcode) 19.4 123.0 6.3
      utf8:: SWASHNEW (recurses:... 163.0 115.0 0.7
      . ...max depth 1, inclusive time .. mu s)
      .
      B.Inclusive times from Sheep's nytrpof/index.html (Not found in Tiger)
      . Subroutine ... Sheep ...
      Gtk2::Ex::Simple::TiedList:: PUSH 25,700
      Gtk2::ListStore:: clear (xsub) 21,100
      Gtk2::ListStore:: append (xsub) 19,400
      Gtk2::ListStore:: set (xsub) 5,920
      .
      C.Inclusive times from Tiger's nytrpof/index.html;(not found in Sheep)
      . Subroutine Tiger ... ...
      Gtk2::Ex::PodViewer::Parser:: CORE:readline (opcode) 506.0
      Gtk2::Widget:: show (xsub) 14.6
      Gtk2:: init (xsub) 10.1
      Gtk2::IconTheme:: has_icon (xsub) 8.9

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1083765]
Approved by hdb
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-24 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found