ruby: remove unsued profile functions
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 20:53:25 +0000 (15:53 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 20:53:25 +0000 (15:53 -0500)
src/mem/protocol/RubySlicc_Profiler.sm
src/mem/ruby/profiler/Profiler.cc
src/mem/ruby/profiler/Profiler.hh
src/mem/ruby/slicc_interface/RubySlicc_Profiler_interface.cc
src/mem/ruby/slicc_interface/RubySlicc_Profiler_interface.hh

index e09f30056d3bd6e8e5690d6400032dea95369714..591366ebedba464e3b2b2a3ad2b95c615ccc1818 100644 (file)
 void profile_miss(RubyRequest msg);
 
 // used by CMP protocols
-void profile_request(std::string L1CacheStateStr, std::string L2CacheStateStr,
-    std::string directoryStateStr, std::string requestTypeStr);
 void profileMessageReordering(bool wasReordered);
 void profileMessageReorderingByNetwork(int vnet, bool wasReordered);
 void profile_token_retry(Address addr, AccessType type, int count);
 void profile_persistent_prediction(Address addr, AccessType type);
 void profile_filter_action(int act);
-void profile_multicast_retry(Address addr, int count);
-void profile_outstanding_request(int outstanding);
-void profile_outstanding_persistent_request(int outstanding);
 // void profile_overlapping_persistent_request(int overlapping);
 void profile_average_latency_estimate(int latency);
 
index 43c65883045d7c7f01ae52cc8b554cb0369cd271..4d05a5698d7b3c92a8f94adb834f595b8c42b631 100644 (file)
@@ -467,15 +467,6 @@ Profiler::printStats(ostream& out, bool short_stats)
             out << endl;
         }
 
-        if (m_outstanding_requests.size() > 0) {
-            out << "outstanding_requests: ";
-            m_outstanding_requests.printPercent(out);
-            out << endl;
-            out << endl;
-        }
-    }
-
-    if (!short_stats) {
         printRequestProfile(out);
 
         out << "filter_action: " << m_filter_action_histogram << endl;
@@ -576,13 +567,6 @@ Profiler::clearStats()
     m_cache_to_cache = 0;
     m_memory_to_cache = 0;
 
-    m_outstanding_requests.clear();
-    m_outstanding_persistent_requests.clear();
-
-    // Flush the prefetches through the system - used so that there
-    // are no outstanding requests after stats are cleared
-    //g_eventQueue_ptr->triggerAllEvents();
-
     // update the start time
     m_ruby_start = g_system_ptr->curCycle();
 }
index aabe7bfaaac63569eb91efaf2660dfbefe8bcdd2..02c37bd60f84d71bd54a9e0ac7029fc4d42e4b35 100644 (file)
@@ -103,18 +103,6 @@ class Profiler : public SimObject
 
     void profileConflictingRequests(const Address& addr);
 
-    void
-    profileOutstandingRequest(int outstanding)
-    {
-        m_outstanding_requests.add(outstanding);
-    }
-
-    void
-    profileOutstandingPersistentRequest(int outstanding)
-    {
-        m_outstanding_persistent_requests.add(outstanding);
-    }
-
     void
     profileAverageLatencyEstimate(int latency)
     {
@@ -213,11 +201,7 @@ class Profiler : public SimObject
     std::vector<Histogram> m_SWPrefetchLatencyHistograms;
     std::vector<Histogram> m_SWPrefetchMachLatencyHistograms;
 
-    Histogram m_outstanding_requests;
-    Histogram m_outstanding_persistent_requests;
-
     Histogram m_average_latency_estimate;
-
     m5::hash_set<Address> m_watch_address_set;
 
     //added by SS
index a8d8198caac105e59ba0025738bc4799d0ecdcac..5c8c8d1131b7b1531826da789d6019986977368a 100644 (file)
 
 using namespace std;
 
-void
-profile_outstanding_request(int outstanding)
-{
-    g_system_ptr->getProfiler()->profileOutstandingRequest(outstanding);
-}
-
 void
 profile_average_latency_estimate(int latency)
 {
index bfc0afd564b7b97c3b035d277de443bcd7ea74e8..b84a01ee955c7a2fec3473eb3a324b9bbad44d21 100644 (file)
@@ -42,8 +42,6 @@
 
 class Set;
 
-void profile_outstanding_persistent_request(int outstanding);
-void profile_outstanding_request(int outstanding);
 void profile_sharing(const Address& addr, AccessType type, NodeID requestor,
                      const Set& sharers, const Set& owner);
 void profile_miss(const RubyRequest& msg, NodeID id);
@@ -52,12 +50,9 @@ void profile_filter_action(int action);
 void profile_persistent_prediction(const Address& addr, AccessType type);
 void profile_average_latency_estimate(int latency);
 
-void profile_multicast_retry(const Address& addr, int count);
 void profileGetX(const Address& datablock, const Address& PC, const Set& owner,
                  const Set& sharers, NodeID requestor);
 void profileGetS(const Address& datablock, const Address& PC, const Set& owner,
                  const Set& sharers, NodeID requestor);
 
-void profileOverflow(const Address & addr, MachineID mach);
-
 #endif // __MEM_RUBY_SLICC_INTERFACE_RUBYSLICC_PROFILER_INTERFACE_HH__