StatImp.cpp 732 B

1234567891011121314151617181920212223242526272829
  1. 
  2. #include "StatImp.h"
  3. #include "../FrameworkServer.h"
  4. ///////////////////////////////////////////////////////////
  5. //
  6. int StatImp::reportMicMsg( const map<tars::StatMicMsgHead, tars::StatMicMsgBody>& statmsg,bool bFromClient, tars::CurrentPtr current )
  7. {
  8. // LOG_CONSOLE_DEBUG << "report---------------------------------access size:" << statmsg.size() << "|bFromClient:" <<bFromClient << endl;
  9. if(bFromClient)
  10. {
  11. _clientStatData.push_back(statmsg);
  12. }
  13. else
  14. {
  15. _serverStatData.push_back(statmsg);
  16. }
  17. return 0;
  18. }
  19. int StatImp::reportSampleMsg(const vector<StatSampleMsg> &msg,tars::CurrentPtr current )
  20. {
  21. TLOGINFO("sample---------------------------------access size:" << msg.size() << endl);
  22. return 0;
  23. }