__init__.py (8296:be7f03723412) __init__.py (8297:d57afdcf38f5)
1# Copyright (c) 2007 The Regents of The University of Michigan
2# Copyright (c) 2010 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 25 unchanged lines hidden (view full) ---

34from m5.objects import Root
35from m5.util import attrdict, fatal
36
37outputList = []
38def initText(filename, desc=True):
39 output = internal.stats.initText(filename, desc)
40 outputList.append(output)
41
1# Copyright (c) 2007 The Regents of The University of Michigan
2# Copyright (c) 2010 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 25 unchanged lines hidden (view full) ---

34from m5.objects import Root
35from m5.util import attrdict, fatal
36
37outputList = []
38def initText(filename, desc=True):
39 output = internal.stats.initText(filename, desc)
40 outputList.append(output)
41
42def initMySQL(host, database, user='', passwd='', project='test', name='test',
43 sample='0'):
44 if not user:
45 import getpass
46 user = getpass.getuser()
47
48 output = internal.stats.initMySQL(host, database, user, passwd,
49 project, name, sample)
50 outputList.append(output)
51
52def initSimStats():
53 internal.stats.initSimStats()
54
55names = []
56stats_dict = {}
57stats_list = []
58raw_stats_list = []
59def enable():

--- 88 unchanged lines hidden ---
42def initSimStats():
43 internal.stats.initSimStats()
44
45names = []
46stats_dict = {}
47stats_list = []
48raw_stats_list = []
49def enable():

--- 88 unchanged lines hidden ---