Menu

#26 Display method statistics in the editor.

open
nobody
None
5
2003-04-03
2003-04-03
Markus KARG
No

I think it would be a real good feature to be able to start
the profiler, then open some java source code file, and
have some effects here, e. g.:

- methods in the source view are slightly
background-colored red/yellow/green to indicate their
percentage of time consumption

- pointing the mouse over a method in the editor shows a
popup containing infos like how often this specific method
was called, how long this needed etc.

- mark a block of code (either by selection or by markers
on the left side bar of the editor), and switch in a
"focused mode": The profile will focus (filter) on the
methods inside of this block now. This would be really
good to do very fast setting / resetting of filters and
speeds up detection of performance bottlenecks. You can
just mark a block with the mouse and would e. g. see the
performance data of the black in a popup, in would see
filtered data in the performance panels, and so on.

This would allow some kind of "performance debugging"
inside of the code view, and is more intuitive that using
the explicit profiler panels and then changing to the code.

Discussion

  • Konstantin Scheglov

    Logged In: YES
    user_id=333751

    > - methods in the source view are slightly
    > background-colored red/yellow/green to indicate their
    > percentage of time consumption
    Do you know how to do this? I never saw such feature in Eclipse editor - change background for part of text.

    > - pointing the mouse over a method in the editor shows a
    > popup containing infos like how often this specific method
    > was called, how long this needed etc.
    Why now use "Thread call graph view"? You can see popup with statistics, and open method by double click on method figure.

    > - mark a block of code (either by selection or by markers
    > on the left side bar of the editor), and switch in a
    > "focused mode": The profile will focus (filter) on the
    > methods inside of this block now. This would be really
    > good to do very fast setting / resetting of filters and
    > speeds up detection of performance bottlenecks. You can
    > just mark a block with the mouse and would e. g. see the
    > performance data of the black in a popup, in would see
    > filtered data in the performance panels, and so on.
    In any case, this will allow only filtering inside of plugin, JVM with program still will use old filters...

    > This would allow some kind of "performance debugging"
    > inside of the code view, and is more intuitive that using
    > the explicit profiler panels and then changing to the code
    In general, your request look complex (for most things I don't know how to implement this in Eclipse API) and what is more important I am not sure, that this is really usefull features.

     
  • Markus KARG

    Markus KARG - 2003-04-05

    Logged In: YES
    user_id=309221

    The idea is that it is more intuitive for the user to have
    information on the mouse while pointing on the code; it is one
    of the founding ideas behind eclipse that the code is the
    central point of every work. Sure all what you say is right, but
    for the user it is easier to connect information with the source,
    than with the call graph. I often missed this before: When
    single stepping through a code, I often wished to have some
    information like "the step before needed xxx seconds" or
    something. At the moment the plugin is very useful if you want
    to cut away the top xxx % of performance consumption by
    tracking down to the problematic source line. In reality often
    the problem is reversed: The overall performance is very good,
    but users feel that some operations "hang" and the
    programmers debugs and wonders what line is the problem.
    And this is very much more intuitive to do in the source code.

     
  • Nobody/Anonymous

    Logged In: NO

    >> - methods in the source view are slightly
    >> background-colored red/yellow/green to indicate their
    >> percentage of time consumption
    > Do you know how to do this? I never saw such feature in
    Eclipse
    >editor - change background for part of text.

    What about the sidebar of the editor, where warnings and
    errors show up, that one might be useable?

     

Log in to post a comment.

MongoDB Logo MongoDB