Lines Matching full:format
4 Format management.
10 A new format named 'foo-bar' corresponds to Python module
11 'tracetool/format/foo_bar.py'.
13 A format module should provide a docstring, whose first non-empty line will be
19 Format functions
25 generate Called to generate a format-specific file.
47 for filename in os.listdir(tracetool.format.__path__[0]):
51 module = tracetool.try_import("tracetool.format." + modname)
69 """Return whether the given format exists."""
73 return tracetool.try_import("tracetool.format." + name)[1]
76 def generate(events, format, backend, group): argument
77 if not exists(format):
78 raise ValueError("unknown format: %s" % format)
79 format = format.replace("-", "_")
80 func = tracetool.try_import("tracetool.format." + format,
83 raise AttributeError("format has no 'generate': %s" % format)