sthread_stats.cpp

00001 /*<std-header orig-src='shore'>
00002 
00003  $Id: sthread_stats.cpp,v 1.10 2010/07/19 18:35:15 nhall Exp $
00004 
00005 SHORE -- Scalable Heterogeneous Object REpository
00006 
00007 Copyright (c) 1994-99 Computer Sciences Department, University of
00008                       Wisconsin -- Madison
00009 All Rights Reserved.
00010 
00011 Permission to use, copy, modify and distribute this software and its
00012 documentation is hereby granted, provided that both the copyright
00013 notice and this permission notice appear in all copies of the
00014 software, derivative works or modified versions, and any portions
00015 thereof, and that both notices appear in supporting documentation.
00016 
00017 THE AUTHORS AND THE COMPUTER SCIENCES DEPARTMENT OF THE UNIVERSITY
00018 OF WISCONSIN - MADISON ALLOW FREE USE OF THIS SOFTWARE IN ITS
00019 "AS IS" CONDITION, AND THEY DISCLAIM ANY LIABILITY OF ANY KIND
00020 FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
00021 
00022 This software was developed with support by the Advanced Research
00023 Project Agency, ARPA order number 018 (formerly 8230), monitored by
00024 the U.S. Army Research Laboratory under contract DAAB07-91-C-Q518.
00025 Further funding for this work was provided by DARPA through
00026 Rome Research Laboratory Contract No. F30602-97-2-0247.
00027 
00028 */
00029 
00030 #include "w_defines.h"
00031 
00032 /*  -- do not edit anything above this line --   </std-header>*/
00033 
00034 
00035 #include "sthread_stats.h"
00036 #include "sthread_stats_inc_gen.cpp"
00037 /*
00038  * #include "sthread_stats_stat_gen.cpp"
00039  * #include "sthread_stats_out_gen.cpp"
00040  not used
00041  */
00042 
00043 /**\cond skip */
00044 const char *sthread_stats::stat_names[] = {
00045 #include "sthread_stats_msg_gen.h"
00046     0
00047 };
00048 /**\endcond skip */
00049 
00050 /* This replaces that generated by stats.pl */
00051 ostream &operator <<(ostream &o, const sthread_stats &s)
00052 {
00053     o << "STHREAD STATS:" << endl;
00054 
00055     o << "rwlock_r_wait:" << endl 
00056         << "  count: " << s.rwlock_r_wait
00057         << endl;
00058     o << "rwlock_w_wait:" << endl 
00059         << "  count: " << s.rwlock_w_wait
00060         << endl;
00061 
00062     return o;
00063 }

Generated on Mon Jan 2 15:13:57 2012 for Shore Storage Manager by  doxygen 1.4.7