Ignore:
Timestamp:
May 20, 2008, 4:32:49 PM (17 years ago)
Author:
[email protected]
Message:

2008-05-20 Kevin McCullough <[email protected]>

Reviewed by Darin.

<rdar://problem/5950796> JSProfiler: dump functions are in the code
Removed dump and logging functions from the Release version of the code
and renamed them to be obviously for debugging only.

  • JavaScriptCore.exp:
  • profiler/Profile.cpp: (KJS::Profile::debugPrintData): (KJS::Profile::debugPrintDataSampleStyle):
  • profiler/Profile.h:
  • profiler/ProfileNode.cpp: (KJS::ProfileNode::debugPrintData): (KJS::ProfileNode::debugPrintDataSampleStyle):
  • profiler/ProfileNode.h:
  • profiler/Profiler.cpp:
  • profiler/Profiler.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/profiler/Profile.cpp

    r33941 r33947  
    7373}
    7474
    75 void Profile::printDataInspectorStyle() const
     75#ifndef NDEBUG
     76void Profile::debugPrintData() const
    7677{
    7778    printf("Call graph:\n");
    78     m_callTree->printDataInspectorStyle(0);
     79    m_callTree->debugPrintData(0);
    7980}
    8081
     
    8687}
    8788
    88 void Profile::printDataSampleStyle() const
     89void Profile::debugPrintDataSampleStyle() const
    8990{
    9091    typedef Vector<NameCountPair> NameCountPairVector;
     
    9293    FunctionCallHashCount countedFunctions;
    9394    printf("Call graph:\n");
    94     m_callTree->printDataSampleStyle(0, countedFunctions);
     95    m_callTree->debugPrintDataSampleStyle(0, countedFunctions);
    9596
    9697    printf("\nTotal number in stack:\n");
     
    104105    printf("\nSort by top of stack, same collapsed (when >= 5):\n");
    105106}
     107#endif
    106108
    107109}   // namespace KJS
Note: See TracChangeset for help on using the changeset viewer.