Commit 0dfdff28 by PE Hladik

update documentation

parent e0168bfc
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8d6238250f69b97f9d900e69d2ee510c
config: c103baf0970c33bc4d41f39bfbad1b13
tags: 645f666f9bcd5a90fca523b33c5a78b7
......@@ -125,8 +125,8 @@ It is possible to get more information from the tasks using :class:`Results <sim
Or the number of preemptions per task::
for task in model.results.task_list:
print("%s %d" % (task.name, sum([job.preemption_count for job in task.jobs])))
for task in model.results.tasks.values():
print("%s %s" % (task.name, task.preemption_count))
You can get all the metrics provided in the :class:`TaskR <simso.core.results.TaskR>` and :class:`JobR <simso.core.results.JobR>` objects. Read the documentation of these classes to know exactly what is directly accessible.
......@@ -137,8 +137,8 @@ It is also possible to get the monitor object from each processors. This is a ve
prev = None
for evt in processor.monitor:
if evt[1].event == ProcEvent.RUN:
if prev is not None and prev != evt[1].args.identifier:
if prev is not None and prev != evt[1].args.task:
cxt += 1
prev = evt[1].args.identifier
prev = evt[1].args.task
print("Number of context switches (without counting the OS): " + str(cxt))
......@@ -130,7 +130,7 @@ Then the Scheduler can be initialized like this::
class P_EDF(PartitionedScheduler):
def init(self):
PartitionedScheduler.init(self, SchedulerInfo("simso.schedulers.EDF_mono"))
PartitionedScheduler.init(self, SchedulerInfo("EDF_mono", EDF_mono))
Defining the packing
......@@ -170,7 +170,7 @@ Complete source code::
class P_EDF(PartitionedScheduler):
def init(self):
PartitionedScheduler.init(self, SchedulerInfo("simso.schedulers.EDF_mono"))
PartitionedScheduler.init(self, SchedulerInfo("EDF_mono", EDF_mono))
def packer(self):
# First Fit
......
......@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -197,7 +197,10 @@ h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink {
dt:hover > a.headerlink,
caption:hover > a.headerlink,
p.caption:hover > a.headerlink,
div.code-block-caption:hover > a.headerlink {
visibility: visible;
}
......@@ -314,6 +317,13 @@ table.docutils {
border-collapse: collapse;
}
table caption span.caption-number {
font-style: italic;
}
table caption span.caption-text {
}
table.docutils td, table.docutils th {
padding: 1px 8px 1px 5px;
border-top: 0;
......@@ -344,6 +354,25 @@ table.citation td {
border-bottom: none;
}
/* -- figures --------------------------------------------------------------- */
div.figure {
margin: 0.5em;
padding: 0.5em;
}
div.figure p.caption {
padding: 0.3em;
}
div.figure p.caption span.caption-number {
font-style: italic;
}
div.figure p.caption span.caption-text {
}
/* -- other body styles ----------------------------------------------------- */
ol.arabic {
......@@ -406,6 +435,10 @@ dl.glossary dt {
font-size: 1.3em;
}
.sig-paren {
font-size: larger;
}
.versionmodified {
font-style: italic;
}
......@@ -471,22 +504,51 @@ table.highlighttable td {
padding: 0 0.5em 0 0.5em;
}
tt.descname {
div.code-block-caption {
padding: 2px 5px;
font-size: small;
}
div.code-block-caption code {
background-color: transparent;
}
div.code-block-caption + div > div.highlight > pre {
margin-top: 0;
}
div.code-block-caption span.caption-number {
padding: 0.1em 0.3em;
font-style: italic;
}
div.code-block-caption span.caption-text {
}
div.literal-block-wrapper {
padding: 1em 1em 0;
}
div.literal-block-wrapper div.highlight {
margin: 0;
}
code.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
}
tt.descclassname {
code.descclassname {
background-color: transparent;
}
tt.xref, a tt {
code.xref, a code {
background-color: transparent;
font-weight: bold;
}
h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
background-color: transparent;
}
......
......@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -91,6 +91,30 @@ jQuery.fn.highlightText = function(text, className) {
});
};
/*
* backward compatibility for jQuery.browser
* This will be supported until firefox bug is fixed.
*/
if (!jQuery.browser) {
jQuery.uaMatch = function(ua) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
/(msie) ([\w.]+)/.exec(ua) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
[];
return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
jQuery.browser = {};
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
}
/**
* Small JavaScript module for the documentation.
*/
......@@ -152,9 +176,10 @@ var Documentation = {
/**
* workaround a firefox stupidity
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
*/
fixFirefoxAnchorBug : function() {
if (document.location.hash && $.browser.mozilla)
if (document.location.hash)
window.setTimeout(function() {
document.location.href += '';
}, 10);
......

368 Bytes | W: | H:

347 Bytes | W: | H:

docs/html/_static/down-pressed.png
docs/html/_static/down-pressed.png
docs/html/_static/down-pressed.png
docs/html/_static/down-pressed.png
  • 2-up
  • Swipe
  • Onion skin

363 Bytes | W: | H:

347 Bytes | W: | H:

docs/html/_static/down.png
docs/html/_static/down.png
docs/html/_static/down.png
docs/html/_static/down.png
  • 2-up
  • Swipe
  • Onion skin

392 Bytes | W: | H:

358 Bytes | W: | H:

docs/html/_static/file.png
docs/html/_static/file.png
docs/html/_static/file.png
docs/html/_static/file.png
  • 2-up
  • Swipe
  • Onion skin
This source diff could not be displayed because it is too large. You can view the blob instead.

199 Bytes | W: | H:

173 Bytes | W: | H:

docs/html/_static/minus.png
docs/html/_static/minus.png
docs/html/_static/minus.png
docs/html/_static/minus.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- nature theme.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -226,7 +226,7 @@ pre {
-moz-box-shadow: 1px 1px 1px #d8d8d8;
}
tt {
code {
background-color: #ecf0f3;
color: #222;
/* padding: 1px 2px; */
......@@ -242,4 +242,10 @@ div.viewcode-block:target {
background-color: #f4debf;
border-top: 1px solid #ac9;
border-bottom: 1px solid #ac9;
}
div.code-block-caption {
background-color: #ddd;
color: #222;
border: 1px solid #C6C9CB;
}
\ No newline at end of file

199 Bytes | W: | H:

173 Bytes | W: | H:

docs/html/_static/plus.png
docs/html/_static/plus.png
docs/html/_static/plus.png
docs/html/_static/plus.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilties for the full-text search.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -439,7 +439,7 @@ var Search = {
dataType: "text",
complete: function(jqxhr, textstatus) {
var data = jqxhr.responseText;
if (data !== '') {
if (data !== '' && data !== undefined) {
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
}
Search.output.append(listItem);
......

372 Bytes | W: | H:

345 Bytes | W: | H:

docs/html/_static/up-pressed.png
docs/html/_static/up-pressed.png
docs/html/_static/up-pressed.png
docs/html/_static/up-pressed.png
  • 2-up
  • Swipe
  • Onion skin

363 Bytes | W: | H:

345 Bytes | W: | H:

docs/html/_static/up.png
docs/html/_static/up.png
docs/html/_static/up.png
docs/html/_static/up.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,7 +4,7 @@
*
* sphinx.websupport utilties for all documentation.
*
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
......@@ -50,51 +50,51 @@
}
function initEvents() {
$('a.comment-close').live("click", function(event) {
$(document).on("click", 'a.comment-close', function(event) {
event.preventDefault();
hide($(this).attr('id').substring(2));
});
$('a.vote').live("click", function(event) {
$(document).on("click", 'a.vote', function(event) {
event.preventDefault();
handleVote($(this));
});
$('a.reply').live("click", function(event) {
$(document).on("click", 'a.reply', function(event) {
event.preventDefault();
openReply($(this).attr('id').substring(2));
});
$('a.close-reply').live("click", function(event) {
$(document).on("click", 'a.close-reply', function(event) {
event.preventDefault();
closeReply($(this).attr('id').substring(2));
});
$('a.sort-option').live("click", function(event) {
$(document).on("click", 'a.sort-option', function(event) {
event.preventDefault();
handleReSort($(this));
});
$('a.show-proposal').live("click", function(event) {
$(document).on("click", 'a.show-proposal', function(event) {
event.preventDefault();
showProposal($(this).attr('id').substring(2));
});
$('a.hide-proposal').live("click", function(event) {
$(document).on("click", 'a.hide-proposal', function(event) {
event.preventDefault();
hideProposal($(this).attr('id').substring(2));
});
$('a.show-propose-change').live("click", function(event) {
$(document).on("click", 'a.show-propose-change', function(event) {
event.preventDefault();
showProposeChange($(this).attr('id').substring(2));
});
$('a.hide-propose-change').live("click", function(event) {
$(document).on("click", 'a.hide-propose-change', function(event) {
event.preventDefault();
hideProposeChange($(this).attr('id').substring(2));
});
$('a.accept-comment').live("click", function(event) {
$(document).on("click", 'a.accept-comment', function(event) {
event.preventDefault();
acceptComment($(this).attr('id').substring(2));
});
$('a.delete-comment').live("click", function(event) {
$(document).on("click", 'a.delete-comment', function(event) {
event.preventDefault();
deleteComment($(this).attr('id').substring(2));
});
$('a.comment-markup').live("click", function(event) {
$(document).on("click", 'a.comment-markup', function(event) {
event.preventDefault();
toggleCommentMarkupBox($(this).attr('id').substring(2));
});
......@@ -700,8 +700,8 @@
(<a href="#" class="comment-markup" id="ab<%id%>">markup</a>):</p>\
<div class="comment-markup-box" id="mb<%id%>">\
reStructured text markup: <i>*emph*</i>, <b>**strong**</b>, \
<tt>``code``</tt>, \
code blocks: <tt>::</tt> and an indented block after blank line</div>\
<code>``code``</code>, \
code blocks: <code>::</code> and an indented block after blank line</div>\
<form method="post" id="cf<%id%>" class="comment-form" action="">\
<textarea name="comment" cols="80"></textarea>\
<p class="propose-button">\
......
......@@ -27,8 +27,8 @@
<link rel="next" title="How to write a scheduling policy" href="write_scheduler.html" />
<link rel="prev" title="Introduction" href="introduction.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -43,13 +43,13 @@
<li class="right" >
<a href="introduction.html" title="Introduction"
accesskey="P">previous</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<div class="section" id="frequently-asked-questions">
<h1>Frequently Asked Questions<a class="headerlink" href="#frequently-asked-questions" title="Permalink to this headline"></a></h1>
......@@ -78,7 +78,7 @@
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -93,10 +93,10 @@
<li class="right" >
<a href="introduction.html" title="Introduction"
>previous</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
......@@ -26,8 +26,8 @@
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="SimSo documentation" href="index.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -36,13 +36,13 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<h1 id="index">Index</h1>
......@@ -720,7 +720,7 @@
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -729,10 +729,10 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
......@@ -26,8 +26,8 @@
<link rel="top" title="SimSo documentation" href="#" />
<link rel="next" title="Introduction" href="introduction.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -39,13 +39,13 @@
<li class="right" >
<a href="introduction.html" title="Introduction"
accesskey="N">next</a> |</li>
<li><a href="#">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="#">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<div class="section" id="simso-documentation">
<h1>SimSo documentation<a class="headerlink" href="#simso-documentation" title="Permalink to this headline"></a></h1>
......@@ -97,9 +97,9 @@
<div class="section" id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h1>
<ul class="simple">
<li><a class="reference internal" href="genindex.html"><em>Index</em></a></li>
<li><a class="reference internal" href="py-modindex.html"><em>Module Index</em></a></li>
<li><a class="reference internal" href="search.html"><em>Search Page</em></a></li>
<li><a class="reference internal" href="genindex.html"><span>Index</span></a></li>
<li><a class="reference internal" href="py-modindex.html"><span>Module Index</span></a></li>
<li><a class="reference internal" href="search.html"><span>Search Page</span></a></li>
</ul>
</div>
......@@ -108,7 +108,7 @@
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -120,10 +120,10 @@
<li class="right" >
<a href="introduction.html" title="Introduction"
>next</a> |</li>
<li><a href="#">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="#">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
......@@ -27,8 +27,8 @@
<link rel="next" title="Frequently Asked Questions" href="faq.html" />
<link rel="prev" title="SimSo documentation" href="index.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -43,13 +43,13 @@
<li class="right" >
<a href="index.html" title="SimSo documentation"
accesskey="P">previous</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<div class="section" id="introduction">
<h1>Introduction<a class="headerlink" href="#introduction" title="Permalink to this headline"></a></h1>
......@@ -156,7 +156,7 @@
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -171,10 +171,10 @@
<li class="right" >
<a href="index.html" title="SimSo documentation"
>previous</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
......@@ -26,8 +26,8 @@
<link rel="top" title="SimSo documentation" href="index.html" />
<link rel="prev" title="Main modules" href="modules.html" />
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -39,13 +39,13 @@
<li class="right" >
<a href="modules.html" title="Main modules"
accesskey="P">previous</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<div class="section" id="licenses">
<h1>Licenses<a class="headerlink" href="#licenses" title="Permalink to this headline"></a></h1>
......@@ -111,7 +111,7 @@ in GPL and LGPL versions.</p>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -123,10 +123,10 @@ in GPL and LGPL versions.</p>
<li class="right" >
<a href="modules.html" title="Main modules"
>previous</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
No preview for this file type
......@@ -28,8 +28,8 @@
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -38,13 +38,13 @@
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<h1>Python Module Index</h1>
......@@ -61,72 +61,72 @@
<td><img src="_static/minus.png" class="toggler"
id="toggle-1" style="display: none" alt="-" /></td>
<td>
<tt class="xref">simso</tt></td><td>
<code class="xref">simso</code></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.configuration"><tt class="xref">simso.configuration</tt></a></td><td>
<a href="modules.html#module-simso.configuration"><code class="xref">simso.configuration</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.configuration.Configuration"><tt class="xref">simso.configuration.Configuration</tt></a></td><td>
<a href="modules.html#module-simso.configuration.Configuration"><code class="xref">simso.configuration.Configuration</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core"><tt class="xref">simso.core</tt></a></td><td>
<a href="modules.html#module-simso.core"><code class="xref">simso.core</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Job"><tt class="xref">simso.core.Job</tt></a></td><td>
<a href="modules.html#module-simso.core.Job"><code class="xref">simso.core.Job</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Logger"><tt class="xref">simso.core.Logger</tt></a></td><td>
<a href="modules.html#module-simso.core.Logger"><code class="xref">simso.core.Logger</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Model"><tt class="xref">simso.core.Model</tt></a></td><td>
<a href="modules.html#module-simso.core.Model"><code class="xref">simso.core.Model</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Processor"><tt class="xref">simso.core.Processor</tt></a></td><td>
<a href="modules.html#module-simso.core.Processor"><code class="xref">simso.core.Processor</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.results"><tt class="xref">simso.core.results</tt></a></td><td>
<a href="modules.html#module-simso.core.results"><code class="xref">simso.core.results</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Scheduler"><tt class="xref">simso.core.Scheduler</tt></a></td><td>
<a href="modules.html#module-simso.core.Scheduler"><code class="xref">simso.core.Scheduler</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Task"><tt class="xref">simso.core.Task</tt></a></td><td>
<a href="modules.html#module-simso.core.Task"><code class="xref">simso.core.Task</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.core.Timer"><tt class="xref">simso.core.Timer</tt></a></td><td>
<a href="modules.html#module-simso.core.Timer"><code class="xref">simso.core.Timer</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.generator.task_generator"><tt class="xref">simso.generator.task_generator</tt></a></td><td>
<a href="modules.html#module-simso.generator.task_generator"><code class="xref">simso.generator.task_generator</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&nbsp;&nbsp;&nbsp;
<a href="modules.html#module-simso.utils.PartitionedScheduler"><tt class="xref">simso.utils.PartitionedScheduler</tt></a></td><td>
<a href="modules.html#module-simso.utils.PartitionedScheduler"><code class="xref">simso.utils.PartitionedScheduler</code></a></td><td>
<em></em></td></tr>
</table>
......@@ -135,7 +135,7 @@
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -144,10 +144,10 @@
<li class="right" >
<a href="#" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
......@@ -33,8 +33,8 @@
</head>
<body>
<div class="related">
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -43,13 +43,13 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="body">
<div class="body" role="main">
<h1 id="search-documentation">Search</h1>
<div id="fallback" class="admonition warning">
......@@ -79,7 +79,7 @@
</div>
<div class="clearer"></div>
</div>
<div class="related">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
......@@ -88,10 +88,10 @@
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li><a href="index.html">SimSo documentation</a> &raquo;</li>
<li class="nav-item nav-item-0"><a href="index.html">SimSo documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer">
<div class="footer" role="contentinfo">
</div>
</body>
</html>
\ No newline at end of file
......@@ -125,8 +125,8 @@ It is possible to get more information from the tasks using :class:`Results <sim
Or the number of preemptions per task::
for task in model.results.task_list:
print("%s %d" % (task.name, sum([job.preemption_count for job in task.jobs])))
for task in model.results.tasks.values():
print("%s %s" % (task.name, task.preemption_count))
You can get all the metrics provided in the :class:`TaskR <simso.core.results.TaskR>` and :class:`JobR <simso.core.results.JobR>` objects. Read the documentation of these classes to know exactly what is directly accessible.
......@@ -137,8 +137,8 @@ It is also possible to get the monitor object from each processors. This is a ve
prev = None
for evt in processor.monitor:
if evt[1].event == ProcEvent.RUN:
if prev is not None and prev != evt[1].args.identifier:
if prev is not None and prev != evt[1].args.task:
cxt += 1
prev = evt[1].args.identifier
prev = evt[1].args.task
print("Number of context switches (without counting the OS): " + str(cxt))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment