aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/oscl__file__stats_8h_source.html
blob: cc09d83f9a7dc460bf0d54e415ce83a43368952f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: oscl_file_stats.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>oscl_file_stats.h</h1><a href="oscl__file__stats_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- c++ -*-</span>
<a name="l00002"></a>00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="comment">//                     O S C L _ F I L E  _ STATS</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span>
<a name="l00007"></a>00007 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef OSCL_FILE_STATS_H_INCLUDED</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_FILE_STATS_H_INCLUDED</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;<a class="code" href="oscl__base_8h.html" title="The file oscl_base.h is the public header that should be included to pick up the...">oscl_base.h</a>&quot;</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include &quot;<a class="code" href="osclconfig__io_8h.html" title="This file contains common typedefs based on the ANSI C limits.h header.">osclconfig_io.h</a>&quot;</span>
<a name="l00024"></a>00024 
<a name="l00025"></a><a class="code" href="group__osclio.html#ga34c8a106fe300de026af3c35da5d4db0">00025</a> <span class="preprocessor">#define OSCL_FILE_STATS_LOGGER_NODE &quot;OsclFileStats&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a><a class="code" href="classOsclFileStatsItem.html">00027</a> <span class="keyword">class </span><a class="code" href="classOsclFileStatsItem.html">OsclFileStatsItem</a>
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029     <span class="keyword">public</span>:
<a name="l00030"></a><a class="code" href="classOsclFileStatsItem.html#a84128c9bdf320932c11916b421ac6636">00030</a>         uint32 <a class="code" href="classOsclFileStatsItem.html#a84128c9bdf320932c11916b421ac6636">iOpCount</a>;
<a name="l00031"></a><a class="code" href="classOsclFileStatsItem.html#a8200d961a155b593115e38e7eb19ab88">00031</a>         <a class="code" href="group__osclbase.html#gaeee93fd1c6230965ea7adc3e63fac06e">uint64</a> <a class="code" href="classOsclFileStatsItem.html#a8200d961a155b593115e38e7eb19ab88">iParam</a>;
<a name="l00032"></a><a class="code" href="classOsclFileStatsItem.html#a706324ef91c352ee610149665b49b8ee">00032</a>         <a class="code" href="osclconfig__io_8h.html#a97cda56383fc49167372a11658c80483">TOsclFileOffset</a> <a class="code" href="classOsclFileStatsItem.html#a706324ef91c352ee610149665b49b8ee">iParam2</a>;
<a name="l00033"></a><a class="code" href="classOsclFileStatsItem.html#a4bbeaf118cc5e99e4d5af64f1a93e2bf">00033</a>         uint32 <a class="code" href="classOsclFileStatsItem.html#a4bbeaf118cc5e99e4d5af64f1a93e2bf">iStartTick</a>;
<a name="l00034"></a><a class="code" href="classOsclFileStatsItem.html#a79f2ab751e84f43323ae6c6b1251c322">00034</a>         uint32 <a class="code" href="classOsclFileStatsItem.html#a79f2ab751e84f43323ae6c6b1251c322">iTotalTicks</a>;
<a name="l00035"></a>00035 };
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="group__osclio.html#gab57919719a32e6500ea77326ebd0ead2">00037</a> <span class="keyword">enum</span> <a class="code" href="group__osclio.html#gab57919719a32e6500ea77326ebd0ead2">TOsclFileOp</a>
<a name="l00038"></a>00038 {
<a name="l00039"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a4d73135b6381fdd9b72d5f5ef9b8aa65">00039</a>     <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a4d73135b6381fdd9b72d5f5ef9b8aa65">EOsclFileOp_Open</a>
<a name="l00040"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a7a1d566f2a3cf4b63b91fb8828ced2cb">00040</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a7a1d566f2a3cf4b63b91fb8828ced2cb">EOsclFileOp_Close</a>
<a name="l00041"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a02324b884276d2801a9c71c3b5f471d1">00041</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a02324b884276d2801a9c71c3b5f471d1">EOsclFileOp_Read</a>
<a name="l00042"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2add3499cad491475281992fe9e8f1cef9">00042</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2add3499cad491475281992fe9e8f1cef9">EOsclFileOp_Write</a>
<a name="l00043"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2ad61ef69bb00124794f6b16410be731a9">00043</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2ad61ef69bb00124794f6b16410be731a9">EOsclFileOp_Seek</a>
<a name="l00044"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2aa0ce6af1533dbd6263397349d89e41be">00044</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2aa0ce6af1533dbd6263397349d89e41be">EOsclFileOp_Tell</a>
<a name="l00045"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a2c409421c75d4c04bafb704fe8462933">00045</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a2c409421c75d4c04bafb704fe8462933">EOsclFileOp_Size</a>
<a name="l00046"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a34641b8ddee22210ff64faebc3acbfa4">00046</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a34641b8ddee22210ff64faebc3acbfa4">EOsclFileOp_Flush</a>
<a name="l00047"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a1790a176a4db22bce7bdb8047c034b48">00047</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a1790a176a4db22bce7bdb8047c034b48">EOsclFileOp_EndOfFile</a>
<a name="l00048"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a7512db5af532df740c8bccebc1b75a57">00048</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a7512db5af532df740c8bccebc1b75a57">EOsclFileOp_SetSize</a>
<a name="l00049"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a35ca9022e2cb87a660027cf5836c0c5d">00049</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a35ca9022e2cb87a660027cf5836c0c5d">EOsclFileOp_NativeOpen</a>
<a name="l00050"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a11f1c3f214d11d857a810705c1bfc398">00050</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a11f1c3f214d11d857a810705c1bfc398">EOsclFileOp_NativeClose</a>
<a name="l00051"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a110a08488e3da15b8b84888472b54c53">00051</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a110a08488e3da15b8b84888472b54c53">EOsclFileOp_NativeRead</a>
<a name="l00052"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a5aff3d32dbbb7688d3d347ae01664cf2">00052</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a5aff3d32dbbb7688d3d347ae01664cf2">EOsclFileOp_NativeWrite</a>
<a name="l00053"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a1a1a7439c54dd074f90131d28e6b35bd">00053</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a1a1a7439c54dd074f90131d28e6b35bd">EOsclFileOp_NativeSeek</a>
<a name="l00054"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a537632359b5a3ea69ee66e54f8e7df53">00054</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a537632359b5a3ea69ee66e54f8e7df53">EOsclFileOp_NativeTell</a>
<a name="l00055"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a97fcd6544f8e5152cd6c398edf2bd5a9">00055</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a97fcd6544f8e5152cd6c398edf2bd5a9">EOsclFileOp_NativeSize</a>
<a name="l00056"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a840fa69346fe8fc716ba08abb6a36f07">00056</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a840fa69346fe8fc716ba08abb6a36f07">EOsclFileOp_NativeFlush</a>
<a name="l00057"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a27f8a923bc526a10c9f1ddd4bdb9ca1a">00057</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a27f8a923bc526a10c9f1ddd4bdb9ca1a">EOsclFileOp_NativeEndOfFile</a>
<a name="l00058"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a5188475e9abbdce86b1c3ccaf3b26848">00058</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a5188475e9abbdce86b1c3ccaf3b26848">EOsclFileOp_NativeSetSize</a>
<a name="l00059"></a><a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a351436e153b68764e4c0b4a7b8740051">00059</a>     , <a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a351436e153b68764e4c0b4a7b8740051">EOsclFileOp_Last</a>
<a name="l00060"></a>00060 };
<a name="l00061"></a>00061 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> TOsclFileOpStr[] =
<a name="l00062"></a>00062 {
<a name="l00063"></a>00063     <span class="stringliteral">&quot;Open&quot;</span>
<a name="l00064"></a>00064     , <span class="stringliteral">&quot;Close&quot;</span>
<a name="l00065"></a>00065     , <span class="stringliteral">&quot;Read&quot;</span>
<a name="l00066"></a>00066     , <span class="stringliteral">&quot;Write&quot;</span>
<a name="l00067"></a>00067     , <span class="stringliteral">&quot;Seek&quot;</span>
<a name="l00068"></a>00068     , <span class="stringliteral">&quot;Tell&quot;</span>
<a name="l00069"></a>00069     , <span class="stringliteral">&quot;Size&quot;</span>
<a name="l00070"></a>00070     , <span class="stringliteral">&quot;Flush&quot;</span>
<a name="l00071"></a>00071     , <span class="stringliteral">&quot;EndOfFile&quot;</span>
<a name="l00072"></a>00072     , <span class="stringliteral">&quot;SetSize&quot;</span>
<a name="l00073"></a>00073     , <span class="stringliteral">&quot;NativeOpen&quot;</span>
<a name="l00074"></a>00074     , <span class="stringliteral">&quot;NativeClose&quot;</span>
<a name="l00075"></a>00075     , <span class="stringliteral">&quot;NativeRead&quot;</span>
<a name="l00076"></a>00076     , <span class="stringliteral">&quot;NativeWrite&quot;</span>
<a name="l00077"></a>00077     , <span class="stringliteral">&quot;NativeSeek&quot;</span>
<a name="l00078"></a>00078     , <span class="stringliteral">&quot;NativeTell&quot;</span>
<a name="l00079"></a>00079     , <span class="stringliteral">&quot;NativeSize&quot;</span>
<a name="l00080"></a>00080     , <span class="stringliteral">&quot;NativeFlush&quot;</span>
<a name="l00081"></a>00081     , <span class="stringliteral">&quot;NativeEndOfFile&quot;</span>
<a name="l00082"></a>00082     , <span class="stringliteral">&quot;NativeSetSize&quot;</span>
<a name="l00083"></a>00083     , <span class="stringliteral">&quot;???&quot;</span>
<a name="l00084"></a>00084 };
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>;
<a name="l00087"></a>00087 <span class="keyword">class </span><a class="code" href="classOscl__File.html">Oscl_File</a>;
<a name="l00088"></a>00088 
<a name="l00089"></a><a class="code" href="classOsclFileStats.html">00089</a> <span class="keyword">class </span><a class="code" href="classOsclFileStats.html">OsclFileStats</a>
<a name="l00090"></a>00090 {
<a name="l00091"></a>00091     <span class="keyword">public</span>:
<a name="l00092"></a>00092         <a class="code" href="classOsclFileStats.html#aa970ef9a9323a0fbeae3b902efcdc7b8">OsclFileStats</a>(<a class="code" href="classOscl__File.html">Oscl_File</a>* c);
<a name="l00093"></a>00093         <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a7840ef7464cb3af44bc25f94bcc3022e">Start</a>(uint32&amp; aTicks);
<a name="l00094"></a>00094         <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a134247bdf47fb4885f38fcc432aee1ec">End</a>(<a class="code" href="group__osclio.html#gab57919719a32e6500ea77326ebd0ead2">TOsclFileOp</a> aOp, uint32 aStart, uint32 aParam = 0, <a class="code" href="osclconfig__io_8h.html#a97cda56383fc49167372a11658c80483">TOsclFileOffset</a> aParam2 = 0);
<a name="l00095"></a>00095         <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a66aa36f673846bb01062819ffc2583a9">Log</a>(<a class="code" href="group__osclio.html#gab57919719a32e6500ea77326ebd0ead2">TOsclFileOp</a>, <a class="code" href="classPVLogger.html">PVLogger</a>*, uint32);
<a name="l00096"></a>00096         <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a28445f01879f3dfe87320e71f7394156">LogAll</a>(<a class="code" href="classPVLogger.html">PVLogger</a>*, uint32);
<a name="l00097"></a>00097 
<a name="l00098"></a>00098     <span class="keyword">private</span>:
<a name="l00099"></a>00099         <a class="code" href="classOscl__File.html">Oscl_File</a>* iContainer;
<a name="l00100"></a>00100         <span class="comment">//fixed array of the max time per item.</span>
<a name="l00101"></a>00101         <a class="code" href="classOsclFileStatsItem.html">OsclFileStatsItem</a> iStats[<a class="code" href="group__osclio.html#ggab57919719a32e6500ea77326ebd0ead2a351436e153b68764e4c0b4a7b8740051">EOsclFileOp_Last</a>];
<a name="l00102"></a>00102 };
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#endif</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.004.1.1 </small>
</small></address>
</body>
</html>