Changeset 12082


Ignore:
Timestamp:
08/01/09 07:58:15 (14 years ago)
Author:
ehuelsmann
Message:

Hot spot counting for the profiler.

Location:
trunk/abcl/src/org/armedbear/lisp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/LispThread.java

    r12080 r12082  
    835835    {
    836836        StackFrame s = stack;
     837
     838        for (int i = 0; i < 8; i++) {
     839            if (s == null)
     840                break;
     841            LispObject operator = s.operator;
     842            if (operator != null) {
     843                operator.incrementHotCount();
     844                operator.incrementCallCount();
     845            }
     846            s = s.next;
     847        }
     848
    837849        while (s != null) {
    838850            LispObject operator = s.operator;
  • trunk/abcl/src/org/armedbear/lisp/Profiler.java

    r12080 r12082  
    6969                        if (object != null) {
    7070                            object.setCallCount(0);
     71                            object.setHotCount(0);
    7172                            if (object instanceof StandardGenericFunction) {
    7273                                LispObject methods =
     
    7576                                    StandardMethod method = (StandardMethod) methods.car();
    7677                                    method.getFunction().setCallCount(0);
     78                                    method.getFunction().setHotCount(0);
    7779                                    methods = methods.cdr();
    7880                                }
Note: See TracChangeset for help on using the changeset viewer.