~afrantzis/mir/fix-1462088-cursor-api-through-nested-test

« back to all changes in this revision

Viewing changes to benchmarks/mir_perf_framework/server.py

  • Committer: Tarmac
  • Author(s): Alexandros Frantzis
  • Date: 2015-06-29 09:40:43 UTC
  • mfrom: (2694.6.2 mir-perf-framework-doc)
  • Revision ID: tarmac-20150629094043-k03ghbcka6fzts4u
doc,benchmarks: Add documentation for the Mir performance framework.

Approved by Daniel van Vugt, Alan Griffiths, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
class Server:
8
8
    def __init__(self, executable=shutil.which("mir_demo_server"), host=None, reports=[], options=[]):
 
9
        """ Creates a Server object.
 
10
 
 
11
        The server is not run until it is passed to a PerformanceTest and the
 
12
        test is started.
 
13
 
 
14
        Args:
 
15
            executable (str): The server executable to run.
 
16
            host (Server): The host server to connect to (or None if this is a host server)
 
17
            reports (list of str): The lttng reports to enable. Use the 'client-' prefix to
 
18
                                   enable a client report.
 
19
            options (list of str): Command-line options to use when running the server.
 
20
        """
9
21
        self.executable = executable
10
22
        self.host = host
11
23
        self.reports = reports