| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>oscl_file_stats.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><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>00001 <span class="comment">// -*- c++ -*-</span> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <span class="comment">// O S C L _ F I L E _ STATS</span> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00019 <span class="preprocessor">#ifndef OSCL_FILE_STATS_H_INCLUDED</span> |
| 00020 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_FILE_STATS_H_INCLUDED</span> |
| 00021 <span class="preprocessor"></span> |
| 00022 <span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> |
| 00023 <span class="preprocessor">#include "<a class="code" href="osclconfig__io_8h.html">osclconfig_io.h</a>"</span> |
| 00024 |
| <a name="l00025"></a><a class="code" href="group__osclio.html#a19">00025</a> <span class="preprocessor">#define OSCL_FILE_STATS_LOGGER_NODE "OsclFileStats"</span> |
| 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> |
| 00028 { |
| 00029 <span class="keyword">public</span>: |
| <a name="l00030"></a><a class="code" href="classOsclFileStatsItem.html#m0">00030</a> uint32 <a class="code" href="classOsclFileStatsItem.html#m0">iOpCount</a>; |
| <a name="l00031"></a><a class="code" href="classOsclFileStatsItem.html#m1">00031</a> uint32 <a class="code" href="classOsclFileStatsItem.html#m1">iParam</a>; |
| <a name="l00032"></a><a class="code" href="classOsclFileStatsItem.html#m2">00032</a> <a class="code" href="osclconfig__io_8h.html#a48">TOsclFileOffset</a> <a class="code" href="classOsclFileStatsItem.html#m2">iParam2</a>; |
| <a name="l00033"></a><a class="code" href="classOsclFileStatsItem.html#m3">00033</a> uint32 <a class="code" href="classOsclFileStatsItem.html#m3">iStartTick</a>; |
| <a name="l00034"></a><a class="code" href="classOsclFileStatsItem.html#m4">00034</a> uint32 <a class="code" href="classOsclFileStatsItem.html#m4">iTotalTicks</a>; |
| 00035 }; |
| 00036 |
| <a name="l00037"></a><a class="code" href="group__osclio.html#a29">00037</a> <span class="keyword">enum</span> <a class="code" href="group__osclio.html#a29">TOsclFileOp</a> |
| 00038 { |
| 00039 <a class="code" href="group__osclio.html#a29a2">EOsclFileOp_Open</a> |
| 00040 , <a class="code" href="group__osclio.html#a29a3">EOsclFileOp_Close</a> |
| 00041 , <a class="code" href="group__osclio.html#a29a4">EOsclFileOp_Read</a> |
| 00042 , <a class="code" href="group__osclio.html#a29a5">EOsclFileOp_Write</a> |
| 00043 , <a class="code" href="group__osclio.html#a29a6">EOsclFileOp_Seek</a> |
| 00044 , <a class="code" href="group__osclio.html#a29a7">EOsclFileOp_Tell</a> |
| 00045 , <a class="code" href="group__osclio.html#a29a8">EOsclFileOp_Size</a> |
| 00046 , <a class="code" href="group__osclio.html#a29a9">EOsclFileOp_Flush</a> |
| 00047 , <a class="code" href="group__osclio.html#a29a10">EOsclFileOp_EndOfFile</a> |
| 00048 , <a class="code" href="group__osclio.html#a29a11">EOsclFileOp_NativeOpen</a> |
| 00049 , <a class="code" href="group__osclio.html#a29a12">EOsclFileOp_NativeClose</a> |
| 00050 , <a class="code" href="group__osclio.html#a29a13">EOsclFileOp_NativeRead</a> |
| 00051 , <a class="code" href="group__osclio.html#a29a14">EOsclFileOp_NativeWrite</a> |
| 00052 , <a class="code" href="group__osclio.html#a29a15">EOsclFileOp_NativeSeek</a> |
| 00053 , <a class="code" href="group__osclio.html#a29a16">EOsclFileOp_NativeTell</a> |
| 00054 , <a class="code" href="group__osclio.html#a29a17">EOsclFileOp_NativeSize</a> |
| 00055 , <a class="code" href="group__osclio.html#a29a18">EOsclFileOp_NativeFlush</a> |
| 00056 , <a class="code" href="group__osclio.html#a29a19">EOsclFileOp_NativeEndOfFile</a> |
| 00057 , <a class="code" href="group__osclio.html#a29a20">EOsclFileOp_Last</a> |
| 00058 }; |
| 00059 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keyword">const</span> TOsclFileOpStr[] = |
| 00060 { |
| 00061 <span class="stringliteral">"Open"</span> |
| 00062 , <span class="stringliteral">"Close"</span> |
| 00063 , <span class="stringliteral">"Read"</span> |
| 00064 , <span class="stringliteral">"Write"</span> |
| 00065 , <span class="stringliteral">"Seek"</span> |
| 00066 , <span class="stringliteral">"Tell"</span> |
| 00067 , <span class="stringliteral">"Size"</span> |
| 00068 , <span class="stringliteral">"Flush"</span> |
| 00069 , <span class="stringliteral">"EndOfFile"</span> |
| 00070 , <span class="stringliteral">"NativeOpen"</span> |
| 00071 , <span class="stringliteral">"NativeClose"</span> |
| 00072 , <span class="stringliteral">"NativeRead"</span> |
| 00073 , <span class="stringliteral">"NativeWrite"</span> |
| 00074 , <span class="stringliteral">"NativeSeek"</span> |
| 00075 , <span class="stringliteral">"NativeTell"</span> |
| 00076 , <span class="stringliteral">"NativeSize"</span> |
| 00077 , <span class="stringliteral">"NativeFlush"</span> |
| 00078 , <span class="stringliteral">"NativeEndOfFile"</span> |
| 00079 , <span class="stringliteral">"???"</span> |
| 00080 }; |
| 00081 |
| 00082 <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>; |
| 00083 <span class="keyword">class </span><a class="code" href="classOscl__File.html">Oscl_File</a>; |
| 00084 |
| <a name="l00085"></a><a class="code" href="classOsclFileStats.html">00085</a> <span class="keyword">class </span><a class="code" href="classOsclFileStats.html">OsclFileStats</a> |
| 00086 { |
| 00087 <span class="keyword">public</span>: |
| 00088 <a class="code" href="classOsclFileStats.html#a0">OsclFileStats</a>(<a class="code" href="classOscl__File.html">Oscl_File</a>* c); |
| 00089 <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a1">Start</a>(uint32& aTicks); |
| 00090 <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a2">End</a>(<a class="code" href="group__osclio.html#a29">TOsclFileOp</a> aOp, uint32 aStart, uint32 aParam = 0, <a class="code" href="osclconfig__io_8h.html#a48">TOsclFileOffset</a> aParam2 = 0); |
| 00091 <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a3">Log</a>(<a class="code" href="group__osclio.html#a29">TOsclFileOp</a>, <a class="code" href="classPVLogger.html">PVLogger</a>*, uint32); |
| 00092 <span class="keywordtype">void</span> <a class="code" href="classOsclFileStats.html#a4">LogAll</a>(<a class="code" href="classPVLogger.html">PVLogger</a>*, uint32); |
| 00093 |
| 00094 <span class="keyword">private</span>: |
| 00095 <a class="code" href="classOscl__File.html">Oscl_File</a>* iContainer; |
| 00096 <span class="comment">//fixed array of the max time per item.</span> |
| 00097 <a class="code" href="classOsclFileStatsItem.html">OsclFileStatsItem</a> iStats[<a class="code" href="group__osclio.html#a29a20">EOsclFileOp_Last</a>]; |
| 00098 }; |
| 00099 |
| 00100 |
| 00101 |
| 00102 <span class="preprocessor">#endif</span> |
| 00103 <span class="preprocessor"></span> |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> |
| </small></address> |
| </body> |
| </html> |