зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1628073 - Document some of the symbolication python code; r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74287
This commit is contained in:
Родитель
9f54341166
Коммит
11e4654387
|
@ -38,7 +38,23 @@ class SymbolInfo:
|
|||
|
||||
|
||||
class SymFileManager:
|
||||
# Symbol cache data structures
|
||||
"""This class fetches symbols from files and caches the results.
|
||||
|
||||
options (obj)
|
||||
symbolPaths : dictionary
|
||||
Paths to .SYM files, expressed internally as a mapping of app or platform
|
||||
names to directories. App & OS names from requests are converted to
|
||||
all-uppercase internally
|
||||
e.g. { "FIREFOX": "/tmp/path" }
|
||||
maxCacheEntries : number
|
||||
Maximum number of symbol files to keep in memory
|
||||
prefetchInterval : number
|
||||
Frequency of checking for recent symbols to cache (in hours)
|
||||
prefetchThreshold : number
|
||||
Oldest file age to prefetch (in hours)
|
||||
prefetchMaxSymbolsPerLib : (number)
|
||||
Maximum number of library versions to pre-fetch per library
|
||||
"""
|
||||
sCache = {}
|
||||
sCacheCount = 0
|
||||
sCacheLock = threading.Lock()
|
||||
|
@ -182,6 +198,7 @@ class SymFileManager:
|
|||
return SymbolInfo(symbolMap)
|
||||
|
||||
def PrefetchRecentSymbolFiles(self):
|
||||
"""This method runs in a loop. Use the options "prefetchThreshold" to adjust"""
|
||||
global PREFETCHED_LIBS
|
||||
|
||||
LogMessage("Prefetching recent symbol files")
|
||||
|
|
|
@ -123,6 +123,14 @@ class LinuxSymbolDumper:
|
|||
|
||||
|
||||
class ProfileSymbolicator:
|
||||
"""This class orchestrates symbolication for a Gecko profile.
|
||||
|
||||
It can be used by multiple pieces of testing infrastructure that generate Gecko
|
||||
performance profiles.
|
||||
|
||||
Args:
|
||||
options (obj): See SymFileManager for details on these options.
|
||||
"""
|
||||
|
||||
def __init__(self, options):
|
||||
self.options = options
|
||||
|
|
Загрузка…
Ссылка в новой задаче