TPIE

v1.1rc1-6-g0c97303
stats.h
Go to the documentation of this file.
1 // -*- mode: c++; tab-width: 4; indent-tabs-mode: t; c-file-style: "stroustrup"; -*-
2 // vi:set ts=4 sts=4 sw=4 noet :
3 // Copyright 2008, 2012, The TPIE development team
4 //
5 // This file is part of TPIE.
6 //
7 // TPIE is free software: you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License as published by the
9 // Free Software Foundation, either version 3 of the License, or (at your
10 // option) any later version.
11 //
12 // TPIE is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 // License for more details.
16 //
17 // You should have received a copy of the GNU Lesser General Public License
18 // along with TPIE. If not, see <http://www.gnu.org/licenses/>
19 
23 
24 #ifndef _TPIE_STATS_H
25 #define _TPIE_STATS_H
26 #include <tpie/types.h>
27 
28 namespace tpie {
29 
33  stream_size_type get_temp_file_usage();
34 
39  void increment_temp_file_usage(stream_offset_type delta);
40 
44  stream_size_type get_bytes_read();
45 
49  stream_size_type get_bytes_written();
50 
55  void increment_bytes_read(stream_size_type delta);
56 
61  void increment_bytes_written(stream_size_type delta);
62 
63 } // tpie namespace
64 #endif //_TPIE_STATS_H
Standard types.
void increment_bytes_written(stream_size_type delta)
Inform the stats module that an additional delta bytes have been written to disk. ...
stream_size_type get_bytes_read()
Return the number of bytes read from disk since program start.
stream_size_type get_temp_file_usage()
Return the number of bytes currently being used by temporary files.
void increment_bytes_read(stream_size_type delta)
Inform that stats module that an additional delta bytes have been read from disk. ...
void increment_temp_file_usage(stream_offset_type delta)
Increment (possibly by a negative amount) the number of bytes being used by temporary files...
stream_size_type get_bytes_written()
Return the number of bytes written to disk since program start.