pypdevsbbl.tracers.ProfileTracer.html 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title>pypdevsbbl.tracers.ProfileTracer module &#8212; Python(P)DEVS-BBL documentation</title>
  8. <link rel="stylesheet" href="_static/nature.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  10. <link rel="stylesheet" type="text/css" href="_static/custom.css" />
  11. <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
  12. <script type="text/javascript" src="_static/jquery.js"></script>
  13. <script type="text/javascript" src="_static/underscore.js"></script>
  14. <script type="text/javascript" src="_static/doctools.js"></script>
  15. <script type="text/javascript" src="_static/language_data.js"></script>
  16. <script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
  17. <link rel="index" title="Index" href="genindex.html" />
  18. <link rel="search" title="Search" href="search.html" />
  19. <link rel="next" title="pypdevsbbl.tracers.StatisticsTracer module" href="pypdevsbbl.tracers.StatisticsTracer.html" />
  20. <link rel="prev" title="pypdevsbbl.tracers.PlotTracer module" href="pypdevsbbl.tracers.PlotTracer.html" />
  21. </head><body>
  22. <div class="related" role="navigation" aria-label="related navigation">
  23. <h3>Navigation</h3>
  24. <ul>
  25. <li class="right" style="margin-right: 10px">
  26. <a href="genindex.html" title="General Index"
  27. accesskey="I">index</a></li>
  28. <li class="right" >
  29. <a href="py-modindex.html" title="Python Module Index"
  30. >modules</a> |</li>
  31. <li class="right" >
  32. <a href="pypdevsbbl.tracers.StatisticsTracer.html" title="pypdevsbbl.tracers.StatisticsTracer module"
  33. accesskey="N">next</a> |</li>
  34. <li class="right" >
  35. <a href="pypdevsbbl.tracers.PlotTracer.html" title="pypdevsbbl.tracers.PlotTracer module"
  36. accesskey="P">previous</a> |</li>
  37. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  38. <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> &#187;</li>
  39. <li class="nav-item nav-item-2"><a href="pypdevsbbl.tracers.html" accesskey="U">pypdevsbbl.tracers package</a> &#187;</li>
  40. </ul>
  41. </div>
  42. <div class="document">
  43. <div class="documentwrapper">
  44. <div class="bodywrapper">
  45. <div class="body" role="main">
  46. <div class="section" id="module-pypdevsbbl.tracers.ProfileTracer">
  47. <span id="pypdevsbbl-tracers-profiletracer-module"></span><h1>pypdevsbbl.tracers.ProfileTracer module<a class="headerlink" href="#module-pypdevsbbl.tracers.ProfileTracer" title="Permalink to this headline">¶</a></h1>
  48. <p>Makes up a profile of a simulation run.</p>
  49. <p>This file contains the tracer that can analyze the performance and throughput of
  50. the messages traveling through a model during simulation.</p>
  51. <dl class="class">
  52. <dt id="pypdevsbbl.tracers.ProfileTracer.ProfileTracer">
  53. <em class="property">class </em><code class="descclassname">pypdevsbbl.tracers.ProfileTracer.</code><code class="descname">ProfileTracer</code><span class="sig-paren">(</span><em>uid</em>, <em>server</em>, <em>filename</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/tracers/ProfileTracer.html#ProfileTracer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.tracers.ProfileTracer.ProfileTracer" title="Permalink to this definition">¶</a></dt>
  54. <dd><p>Bases: <a class="reference internal" href="pypdevsbbl.tracers.html#pypdevsbbl.tracers.BaseTracer" title="pypdevsbbl.tracers.BaseTracer"><code class="xref py py-class docutils literal notranslate"><span class="pre">pypdevsbbl.tracers.BaseTracer</span></code></a></p>
  55. <p>Traces all the coming and going of messages and transitions.</p>
  56. <p>The output file is in CSV-format and contains two tables, separated with a
  57. newline. For all DEVS blocks that underwent transitions, a summary of the
  58. counts of the internal, external and confluent ones. For all connections, an
  59. overview will be presented of the amount of messages that passed over these
  60. connections. Finally, a total for all values will be given as well.</p>
  61. <table class="docutils field-list" frame="void" rules="none">
  62. <col class="field-name" />
  63. <col class="field-body" />
  64. <tbody valign="top">
  65. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
  66. <li><strong>uid</strong> – A unique identifier for distributed simulation.
  67. Will be set automatically.</li>
  68. <li><strong>server</strong> – The server that runs the distributed simulation.
  69. Will be set automatically.</li>
  70. <li><strong>filename</strong> (<em>str</em>) – The name of the file to write the results to. When
  71. <code class="docutils literal notranslate"><span class="pre">None</span></code>, the console output will be used instead.</li>
  72. </ul>
  73. </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. <dl class="method">
  78. <dt id="pypdevsbbl.tracers.ProfileTracer.ProfileTracer.stopTracer">
  79. <code class="descname">stopTracer</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/tracers/ProfileTracer.html#ProfileTracer.stopTracer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.tracers.ProfileTracer.ProfileTracer.stopTracer" title="Permalink to this definition">¶</a></dt>
  80. <dd></dd></dl>
  81. <dl class="method">
  82. <dt id="pypdevsbbl.tracers.ProfileTracer.ProfileTracer.traceInternal">
  83. <code class="descname">traceInternal</code><span class="sig-paren">(</span><em>aDEVS</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/tracers/ProfileTracer.html#ProfileTracer.traceInternal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.tracers.ProfileTracer.ProfileTracer.traceInternal" title="Permalink to this definition">¶</a></dt>
  84. <dd></dd></dl>
  85. <dl class="method">
  86. <dt id="pypdevsbbl.tracers.ProfileTracer.ProfileTracer.traceExternal">
  87. <code class="descname">traceExternal</code><span class="sig-paren">(</span><em>aDEVS</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/tracers/ProfileTracer.html#ProfileTracer.traceExternal"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.tracers.ProfileTracer.ProfileTracer.traceExternal" title="Permalink to this definition">¶</a></dt>
  88. <dd></dd></dl>
  89. <dl class="method">
  90. <dt id="pypdevsbbl.tracers.ProfileTracer.ProfileTracer.traceConfluent">
  91. <code class="descname">traceConfluent</code><span class="sig-paren">(</span><em>aDEVS</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pypdevsbbl/tracers/ProfileTracer.html#ProfileTracer.traceConfluent"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pypdevsbbl.tracers.ProfileTracer.ProfileTracer.traceConfluent" title="Permalink to this definition">¶</a></dt>
  92. <dd></dd></dl>
  93. </dd></dl>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  99. <div class="sphinxsidebarwrapper">
  100. <h4>Previous topic</h4>
  101. <p class="topless"><a href="pypdevsbbl.tracers.PlotTracer.html"
  102. title="previous chapter">pypdevsbbl.tracers.PlotTracer module</a></p>
  103. <h4>Next topic</h4>
  104. <p class="topless"><a href="pypdevsbbl.tracers.StatisticsTracer.html"
  105. title="next chapter">pypdevsbbl.tracers.StatisticsTracer module</a></p>
  106. <div id="searchbox" style="display: none" role="search">
  107. <h3>Quick search</h3>
  108. <div class="searchformwrapper">
  109. <form class="search" action="search.html" method="get">
  110. <input type="text" name="q" />
  111. <input type="submit" value="Go" />
  112. <input type="hidden" name="check_keywords" value="yes" />
  113. <input type="hidden" name="area" value="default" />
  114. </form>
  115. </div>
  116. </div>
  117. <script type="text/javascript">$('#searchbox').show(0);</script>
  118. </div>
  119. </div>
  120. <div class="clearer"></div>
  121. </div>
  122. <div class="related" role="navigation" aria-label="related navigation">
  123. <h3>Navigation</h3>
  124. <ul>
  125. <li class="right" style="margin-right: 10px">
  126. <a href="genindex.html" title="General Index"
  127. >index</a></li>
  128. <li class="right" >
  129. <a href="py-modindex.html" title="Python Module Index"
  130. >modules</a> |</li>
  131. <li class="right" >
  132. <a href="pypdevsbbl.tracers.StatisticsTracer.html" title="pypdevsbbl.tracers.StatisticsTracer module"
  133. >next</a> |</li>
  134. <li class="right" >
  135. <a href="pypdevsbbl.tracers.PlotTracer.html" title="pypdevsbbl.tracers.PlotTracer module"
  136. >previous</a> |</li>
  137. <li class="nav-item nav-item-0"><a href="index.html">Python(P)DEVS-BBL documentation</a> &#187;</li>
  138. <li class="nav-item nav-item-1"><a href="pypdevsbbl.html" >pypdevsbbl package</a> &#187;</li>
  139. <li class="nav-item nav-item-2"><a href="pypdevsbbl.tracers.html" >pypdevsbbl.tracers package</a> &#187;</li>
  140. </ul>
  141. </div>
  142. <div class="footer" role="contentinfo">
  143. &#169; Copyright 2020, Randy Paredis.
  144. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.8.5.
  145. </div>
  146. </body>
  147. </html>