<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16">
  <compounddef id="perf_8h" kind="file" language="C++">
    <compoundname>perf.h</compoundname>
    <includes refid="times_8h" local="no">ubixos/times.h</includes>
    <incdepgraph>
      <node id="5">
        <label>sys/select.h</label>
        <link refid="select_8h"/>
        <childnode refid="6" relation="include">
        </childnode>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="7" relation="include">
        </childnode>
        <childnode refid="8" relation="include">
        </childnode>
        <childnode refid="9" relation="include">
        </childnode>
      </node>
      <node id="9">
        <label>sys/_sigset.h</label>
        <link refid="__sigset_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="3">
        <label>sys/types.h</label>
        <link refid="include_2sys_2types_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
      <node id="2">
        <label>ubixos/times.h</label>
        <link refid="times_8h"/>
        <childnode refid="3" relation="include">
        </childnode>
      </node>
      <node id="6">
        <label>sys/cdefs.h</label>
        <link refid="cdefs_8h"/>
      </node>
      <node id="1">
        <label>C:/Dev/git/UbixOS/sys/include/net/arch/perf.h</label>
        <link refid="perf_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
      </node>
      <node id="4">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="7">
        <label>sys/_timespec.h</label>
        <link refid="__timespec_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="8">
        <label>sys/_timeval.h</label>
        <link refid="__timeval_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
    </incdepgraph>
      <sectiondef kind="define">
      <memberdef kind="define" id="perf_8h_1aa1d6977095e51331f65dcfb2b076da52" prot="public" static="no">
        <name>PERF_START</name>
        <initializer>/* null definition */</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" line="20" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" bodystart="20" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="perf_8h_1a8ac3afe5d720793a229fbf70a78eb82f" prot="public" static="no">
        <name>PERF_STOP</name>
        <param><defname>x</defname></param>
        <initializer>/* null definition */</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" line="21" column="9" bodyfile="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" bodystart="21" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="perf_8h_1ab2440c269fc0ef33e7b7c103271ad986" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void perf_init</definition>
        <argsstring>(char *fname)</argsstring>
        <name>perf_init</name>
        <param>
          <type>char *</type>
          <declname>fname</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" line="30" column="6" declfile="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" declline="30" declcolumn="6"/>
      </memberdef>
      <memberdef kind="function" id="perf_8h_1ad30d8d40f4e25543ba0c1d338a1d40e3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void perf_print</definition>
        <argsstring>(unsigned long c1l, unsigned long c1h, unsigned long c2l, unsigned long c2h, char *key)</argsstring>
        <name>perf_print</name>
        <param>
          <type>unsigned long</type>
          <declname>c1l</declname>
        </param>
        <param>
          <type>unsigned long</type>
          <declname>c1h</declname>
        </param>
        <param>
          <type>unsigned long</type>
          <declname>c2l</declname>
        </param>
        <param>
          <type>unsigned long</type>
          <declname>c2h</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" line="24" column="6" declfile="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" declline="24" declcolumn="6"/>
      </memberdef>
      <memberdef kind="function" id="perf_8h_1a4368d83d04614f580a657530a68b1a5f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void perf_print_times</definition>
        <argsstring>(struct tms *start, struct tms *end, char *key)</argsstring>
        <name>perf_print_times</name>
        <param>
          <type>struct <ref refid="structtms" kindref="compound">tms</ref> *</type>
          <declname>start</declname>
        </param>
        <param>
          <type>struct <ref refid="structtms" kindref="compound">tms</ref> *</type>
          <declname>end</declname>
        </param>
        <param>
          <type>char *</type>
          <declname>key</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" line="28" column="6" declfile="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h" declline="28" declcolumn="6"/>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="preprocessor">#ifndef<sp/>__ARCH_PERF_H__</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>__ARCH_PERF_H__</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="3"><highlight class="normal"></highlight></codeline>
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="times_8h" kindref="compound">ubixos/times.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#ifdef<sp/>PERF</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PERF_START<sp/><sp/>{<sp/>\</highlight></codeline>
<codeline lineno="8"><highlight class="preprocessor"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>unsigned<sp/>long<sp/>__c1l,<sp/>__c1h,<sp/>__c2l,<sp/>__c2h;<sp/>\</highlight></codeline>
<codeline lineno="9"><highlight class="preprocessor"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>__asm__(&quot;.byte<sp/>0x0f,<sp/>0x31&quot;<sp/>:<sp/>&quot;=a&quot;<sp/>(__c1l),<sp/>&quot;=d&quot;<sp/>(__c1h))</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PERF_STOP(x)<sp/><sp/><sp/>__asm__(&quot;.byte<sp/>0x0f,<sp/>0x31&quot;<sp/>:<sp/>&quot;=a&quot;<sp/>(__c2l),<sp/>&quot;=d&quot;<sp/>(__c2h));<sp/>\</highlight></codeline>
<codeline lineno="11"><highlight class="preprocessor"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>perf_print(__c1l,<sp/>__c1h,<sp/>__c2l,<sp/>__c2h,<sp/>x);}</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="comment">/*#define<sp/>PERF_START<sp/>do<sp/>{<sp/>\</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>struct<sp/>tms<sp/>__perf_start,<sp/>__perf_end;<sp/>\</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>times(&amp;__perf_start)</highlight></codeline>
<codeline lineno="16"><highlight class="comment">#define<sp/>PERF_STOP(x)<sp/>times(&amp;__perf_end);<sp/>\</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>perf_print_times(&amp;__perf_start,<sp/>&amp;__perf_end,<sp/>x);\</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/>while(0)*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">/*<sp/>PERF<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="20" refid="perf_8h_1aa1d6977095e51331f65dcfb2b076da52" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PERF_START<sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>null<sp/>definition<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="21" refid="perf_8h_1a8ac3afe5d720793a229fbf70a78eb82f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>PERF_STOP(x)<sp/><sp/></highlight><highlight class="comment">/*<sp/>null<sp/>definition<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">/*<sp/>PERF<sp/>*/</highlight><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="23"><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="perf_8h_1ad30d8d40f4e25543ba0c1d338a1d40e3" kindref="member">perf_print</ref>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>c1l,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>c1h,</highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>c2l,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>c2h,</highlight></codeline>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*key);</highlight></codeline>
<codeline lineno="27"><highlight class="normal"></highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="perf_8h_1a4368d83d04614f580a657530a68b1a5f" kindref="member">perf_print_times</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtms" kindref="compound">tms</ref><sp/>*start,<sp/></highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structtms" kindref="compound">tms</ref><sp/>*end,<sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*key);</highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="perf_8h_1ab2440c269fc0ef33e7b7c103271ad986" kindref="member">perf_init</ref>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*fname);</highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
    </programlisting>
    <location file="C:/Dev/git/UbixOS/sys/include/net/arch/perf.h"/>
  </compounddef>
</doxygen>
