You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<scriptid="__config" type="application/json">{"annotate":null,"base":"/","features":[],"search":"/assets/javascripts/workers/search.e2d2d235.min.js","tags":null,"translations":{"clipboard.copied":"Copied to clipboard","clipboard.copy":"Copy to clipboard","search.result.more.one":"1 more on this page","search.result.more.other":"# more on this page","search.result.none":"No matching documents","search.result.one":"1 matching document","search.result.other":"# matching documents","search.result.placeholder":"Type to start searching","search.result.term.missing":"Missing","select.version":"Select version"},"version":null}</script>
<p>Wall time measures the real-world time elapsed between any two moments in seconds. If there are other processes concurrently running on the system that use significant CPU or disk time during a profiling run then the reported results will be larger than expected. On Windows, wall time is measured using <code>GetTickCount()</code>, on MacOS by <code>mach_absolute_time</code>, on Linux by <code>clock_gettime</code> and otherwise by <code>gettimeofday</code>. Use <code>RubyProf::WALL_TIME</code> to select this mode.</p>
815
+
<p>Wall time measures the real-world time elapsed between any two moments in seconds. If there are other processes concurrently running on the system that use significant CPU or disk time during a profiling run then the reported results will be larger than expected. On Windows, wall time is measured using <code>QueryPerformanceCounter</code> and on other platforms by <code>clock_gettime(CLOCK_MONOTONIC)</code>. Use <code>RubyProf::WALL_TIME</code> to select this mode.</p>
<p>Process time measures the time used by a process between any two moments in seconds. It is unaffected by other processes concurrently running on the system. Remember with process time that calls to methods like sleep will not be included in profiling results. On Windows, process time is measured using <code>GetProcessTimes</code> and on other platforms by <code>clock_gettime</code>. Use <code>RubyProf::PROCESS_TIME</code> to select this mode.</p>
<p>Object allocations measures show how many objects each method in a program allocates. Measurements are done via Ruby's <code>GC.stat</code>api. Use <code>RubyProf::ALLOCATIONS</code> to select this mode.</p>
819
+
<p>Object allocations measures how many objects each method in a program allocates. Measurements are done via Ruby's <code>RUBY_INTERNAL_EVENT_NEWOBJ</code>trace event, counting each new object created (excluding internal <code>T_IMEMO</code> objects). Use <code>RubyProf::ALLOCATIONS</code> to select this mode.</p>
<p>It can be helpful to save the results of a profiling run for later analysis. Results can be saved using Ruby's <ahref="https://ruby-doc.org/core-2.6.3/Marshal.html">marshal</a> library.</p>
867
+
<p>It can be helpful to save the results of a profiling run for later analysis. Results can be saved using Ruby's <ahref="https://docs.ruby-lang.org/en/master/Marshal.html">marshal</a> library.</p>
</span><spanid="__span-7-8"><aid="__codelineno-7-8" name="__codelineno-7-8" href="#__codelineno-7-8"></a><spanclass="c1"># Sometime later load the results</span>
<p><strong>!!!WARNING!!!</strong> - Only load ruby-prof profiles that you know are safe. Demarshaling data can lead to arbitrary code execution and thus can be <ahref="https://ruby-doc.org/core-2.6.3/Marshal.html#module-Marshal-label-Security+considerations">dangerous</a>.</p>
878
+
<p><strong>!!!WARNING!!!</strong> - Only load ruby-prof profiles that you know are safe. Demarshaling data can lead to arbitrary code execution and thus can be <ahref="https://docs.ruby-lang.org/en/master/Marshal.html#module-Marshal-label-Security+considerations">dangerous</a>.</p>
<scriptid="__config" type="application/json">{"annotate":null,"base":"..","features":[],"search":"../assets/javascripts/workers/search.e2d2d235.min.js","tags":null,"translations":{"clipboard.copied":"Copied to clipboard","clipboard.copy":"Copy to clipboard","search.result.more.one":"1 more on this page","search.result.more.other":"# more on this page","search.result.none":"No matching documents","search.result.one":"1 matching document","search.result.other":"# matching documents","search.result.placeholder":"Type to start searching","search.result.term.missing":"Missing","select.version":"Select version"},"version":null}</script>
0 commit comments