python: Export periodicStatDump
Some configuration scripts need periodic stat dumps. One of the ways this can be achieved is by using the pariodicStatDump helper function. This function was previously only exported in the internal name space. Export it as a normal function in m5.stat instead. Change-Id: Ic88bf1fd33042a62ab436d5944d8ed778264ac98 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
This commit is contained in:
parent
73627fa007
commit
8702208f3f
3 changed files with 6 additions and 3 deletions
|
@ -42,7 +42,7 @@ import os
|
||||||
import m5
|
import m5
|
||||||
from m5.objects import *
|
from m5.objects import *
|
||||||
from m5.util import addToPath
|
from m5.util import addToPath
|
||||||
from m5.internal.stats import periodicStatDump
|
from m5.stats import periodicStatDump
|
||||||
|
|
||||||
addToPath('../')
|
addToPath('../')
|
||||||
from common import MemConfig
|
from common import MemConfig
|
||||||
|
|
|
@ -40,7 +40,7 @@ import optparse
|
||||||
import m5
|
import m5
|
||||||
from m5.objects import *
|
from m5.objects import *
|
||||||
from m5.util import addToPath
|
from m5.util import addToPath
|
||||||
from m5.internal.stats import periodicStatDump
|
from m5.stats import periodicStatDump
|
||||||
|
|
||||||
addToPath('../')
|
addToPath('../')
|
||||||
|
|
||||||
|
|
|
@ -30,10 +30,13 @@
|
||||||
import m5
|
import m5
|
||||||
|
|
||||||
from m5 import internal
|
from m5 import internal
|
||||||
from m5.internal.stats import schedStatEvent as schedEvent
|
|
||||||
from m5.objects import Root
|
from m5.objects import Root
|
||||||
from m5.util import attrdict, fatal
|
from m5.util import attrdict, fatal
|
||||||
|
|
||||||
|
# Stat exports
|
||||||
|
from m5.internal.stats import schedStatEvent as schedEvent
|
||||||
|
from m5.internal.stats import periodicStatDump
|
||||||
|
|
||||||
outputList = []
|
outputList = []
|
||||||
def initText(filename, desc=True):
|
def initText(filename, desc=True):
|
||||||
output = internal.stats.initText(filename, desc)
|
output = internal.stats.initText(filename, desc)
|
||||||
|
|
Loading…
Reference in a new issue