Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:09:49+00:00 2026-05-26T18:09:49+00:00

We need to implement an application for evaluating results of an online programming challenge.

  • 0

We need to implement an application for evaluating results of an online programming challenge. The users will implement the programming challenge and compile their source through a web interface. We are supposed to compile the submitted sources on the fly and present some statistics of the program like expected memory consumption and possible performance indicators of the sources. Does anybody know how can we gather memory consumption and performance indicators of the program statically from the sources?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:09:49+00:00Added an answer on May 26, 2026 at 6:09 pm

    Found something very useful. I am not sure if this is what I am looking for. I am yet to analyse the results. But this is quite interesting.
    We can gather some performance statistics using the HPROF profiler agent shipped with the JDK release. The good thing is that it can be run during the compilation to produce some interesting statistics on the code beign compiled. Following are some samples. More details can be found at http://download.oracle.com/javase/7/docs/webnotes/tsg/TSG-VM/html/tooldescr.html#gbluz

    $ javac -J-agentlib:hprof=heap=sites Hello.java
    SITES BEGIN (ordered by live bytes) Wed Oct 4 13:13:42 2006
              percent          live          alloc'ed  stack class
     rank   self  accum     bytes objs     bytes  objs trace name
        1 44.13% 44.13%   1117360 13967  1117360 13967 301926 java.util.zip.ZipEntry
        2  8.83% 52.95%    223472 13967   223472 13967 301927 com.sun.tools.javac.util.List
        3  5.18% 58.13%    131088    1    131088     1 300996 byte[]
        4  5.18% 63.31%    131088    1    131088     1 300995 com.sun.tools.javac.util.Name[]
    
    $ javac -J-agentlib:hprof=heap=dump Hello.java
    HEAP DUMP BEGIN (39793 objects, 2628264 bytes) Wed Oct 4 13:54:03 2006
    ROOT 50000114 (kind=<thread>, id=200002, trace=300000)
    ROOT 50000006 (kind=<JNI global ref>, id=8, trace=300000)
    ROOT 50008c6f (kind=<Java stack>, thread=200000, frame=5)
    :
    CLS 50000006 (name=java.lang.annotation.Annotation, trace=300000)
        loader        90000001
    OBJ 50000114 (sz=96, trace=300001, class=java.lang.Thread@50000106)
        name        50000116
        group        50008c6c
        contextClassLoader    50008c53
        inheritedAccessControlContext    50008c79
        blockerLock    50000115
    OBJ 50008c6c (sz=48, trace=300000, class=java.lang.ThreadGroup@50000068)
        name        50008c7d
        threads    50008c7c
        groups        50008c7b
    ARR 50008c6f (sz=16, trace=300000, nelems=1, 
         elem type=java.lang.String[]@5000008e)
        [0]        500007a5
    CLS 5000008e (name=java.lang.String[], trace=300000)
        super        50000012
        loader        90000001
    :
    HEAP DUMP END
    
    
    $ javac -J-agentlib:hprof=cpu=times Hello.java
    CPU TIME (ms) BEGIN (total = 2082665289) Wed oct 4 13:43:42 2006
    rank   self  accum   count trace method
       1  3.70%  3.70%       1 311243 com.sun.tools.javac.Main.compile
       2  3.64%  7.34%       1 311242 com.sun.tools.javac.main.Main.compile
       3  3.64% 10.97%       1 311241 com.sun.tools.javac.main.Main.compile
       4  3.11% 14.08%       1 311173 com.sun.tools.javac.main.JavaCompiler.compile
       5  2.54% 16.62%       8 306183 com.sun.tools.javac.jvm.ClassReader.listAll
       6  2.53% 19.15%      36 306182 com.sun.tools.javac.jvm.ClassReader.list
       7  2.03% 21.18%       1 307195 com.sun.tools.javac.comp.Enter.main
       8  2.03% 23.21%       1 307194 com.sun.tools.javac.comp.Enter.complete
       9  1.68% 24.90%       1 306392 com.sun.tools.javac.comp.Enter.classEnter
      10  1.68% 26.58%       1 306388 com.sun.tools.javac.comp.Enter.classEnter
    ...
    CPU TIME (ms) END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement a dialog for a web application (ASP.NET/C#) where users can
We've been working on web application where in we need to implement traditional web-apps
I want to implement program by c# application. first of all I need web
I need to implement minimum password complexity checking in a Java web application (Spring/Hibernate).
I'm working on a custom Cortex-M3-based device and I need to implement in-application programming
I need to implement a web application hosted on sharepoint. This is a client
I need to implement email confirmation in my java web application. I am stuck
for a web application I need to implement a function that allowed to export
I need to implement a simple logging mechanism for my web application. I have
I need to implement a draft application for a fantasy sports website. Each users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.