<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://humanemulator.net/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://humanemulator.net/wiki/feed.php">
        <title>Human Emulator wiki en:objects:debug:memory</title>
        <description></description>
        <link>https://humanemulator.net/wiki/</link>
        <image rdf:resource="https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-09-21T04:02:33+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_cpu_usage&amp;rev=1785958524&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_cur_mem_size&amp;rev=1785958525&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_free_physical_mem_size&amp;rev=1785958525&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_gui_resources&amp;rev=1785958526&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_max_mem_size&amp;rev=1785958526&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_min_mem_size&amp;rev=1785958527&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_process_id&amp;rev=1785958527&amp;do=diff"/>
                <rdf:li rdf:resource="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:optimize_memory&amp;rev=1785958528&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Human Emulator wiki</title>
        <link>https://humanemulator.net/wiki/</link>
        <url>https://humanemulator.net/wiki///humanemulator.net/wiki/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_cpu_usage&amp;rev=1785958524&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:24+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_cpu_usage</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_cpu_usage&amp;rev=1785958524&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7011&quot;;

//
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1. cpu usage by the program: &lt;br&gt;&quot;;
echo &quot;CPU:&quot;.$debug-&gt;get_cpu_usage().&quot;% &lt;br&gt;&quot;;

//
echo &quot;&lt;hr&gt; &lt;br&gt;&quot;;

//Quit
$app-&gt;quit();
?&gt;</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_cur_mem_size&amp;rev=1785958525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_cur_mem_size</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_cur_mem_size&amp;rev=1785958525&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7083&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

for($i = 0; $i &lt;10; $i ++)
{
//1
echo &quot;1.Display the current size of the allocated memory:&quot;;
echo($debug-&gt;get_cur_mem_size()/1024/1024).&quot;Mb &lt;br&gt;&quot;;

//2
echo &quot;2.Let&#039;s do memory optimization:&quot;;
echo $deb…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_free_physical_mem_size&amp;rev=1785958525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_free_physical_mem_size</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_free_physical_mem_size&amp;rev=1785958525&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Display the current free physical memory size:&quot;;
echo($debug-&gt;get_free_physical_mem_size()/1024/1024).&quot;Mb &lt;br&gt;&quot;;

//2
echo &quot;2.Let&#039;s do memory optimization:&quot;;
echo $debug-&gt;optimize_memory().…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_gui_resources&amp;rev=1785958526&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_gui_resources</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_gui_resources&amp;rev=1785958526&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Print the current GDI number: &lt;br&gt;&quot;;
echo &quot;GUI:&quot;.$debug-&gt;get_gui_resources(0).&quot;&lt;br&gt;&quot;;
echo &quot;USER:&quot;.$debug-&gt;get_gui_resources(1).&quot;&lt;br&gt;&quot;;
echo &quot;MAX GUI:&quot;.$debug-&gt;get_gui_resources(2).&quot;&lt;br&gt;&quot;;
…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_max_mem_size&amp;rev=1785958526&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_max_mem_size</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_max_mem_size&amp;rev=1785958526&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Let&#039;s display the maximum memory size(stack) that the program occupied:&quot;;
echo($debug-&gt;get_max_mem_size()/1024/1024).&quot;Mb &lt;br&gt;&quot;;

//2
echo &quot;2.Let&#039;s do memory optimization:&quot;;
echo $debug-&gt;opt…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_min_mem_size&amp;rev=1785958527&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_min_mem_size</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_min_mem_size&amp;rev=1785958527&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7010&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Let&#039;s print the minimum memory size(stack) that the program used to occupy:&quot;;
echo($debug-&gt;get_min_mem_size()/1024/1024).&quot;Mb &lt;br&gt;&quot;;

//2
echo &quot;2.Let&#039;s do memory optimization:&quot;;
echo $debug-…</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_process_id&amp;rev=1785958527&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:get_process_id</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:get_process_id&amp;rev=1785958527&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7028&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
   $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//Start
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//1
echo &quot;1.Let&#039;s display the identifier of the human process:&quot;;
echo $debug-&gt;get_process_id();

//end
echo &quot;&lt;hr&gt; &lt;br&gt;&quot;;

//Quit
$app-&gt;quit();
?&gt;</description>
    </item>
    <item rdf:about="https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:optimize_memory&amp;rev=1785958528&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-08-05T22:35:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>en:objects:debug:memory:optimize_memory</title>
        <link>https://humanemulator.net/wiki/doku.php?id=en:objects:debug:memory:optimize_memory&amp;rev=1785958528&amp;do=diff</link>
        <description>PHP example: 

&lt;?php $xhe_host = &quot;127.0.0.1:7017&quot;;

//connect the object to control the emulator, if not already connected
if(!isset($path))
  $path = &quot;../../../Templates/xweb_human_emulator.php&quot;;
require($path);

//resources
echo &quot;&lt;hr&gt; &lt;font color = blue&gt; debug-&gt;&quot;.basename(__FILE__).&quot;&lt;/font&gt; &lt;hr&gt;&quot;;

//memory
$begmem = $debug-&gt;get_cur_mem_size();
$gdi = $debug-&gt;get_gui_resources(0);
$user = $debug-&gt;get_gui_resources(1);

//check the efficiency of cleaning memory
$num = 0;
for($i = 0; $i &lt;5; $i +…</description>
    </item>
</rdf:RDF>
