Files
sousa-gecko/testing/mozbase/mozlog/setup.py
T
Florian Quèze 5079255bfd Bug 2035225 - mozlog: add 'count' and real byte fields to mozleak_object, r=jgraham.
The mozleak_object structured-log action's 'bytes' field has always
carried the leaked instance count, not a byte count. Add a 'count'
field with that same value to expose it under a correct name, and
add three required fields that expose the real BloatView numbers:
bytes_per_inst, bytes_leaked, and total_instances.

The legacy 'bytes' field is kept (still required) and continues to
carry the leaked instance count, so out-of-tree consumers of mozlog
data and wptreport.json files keep working unchanged.

Updates the leaklog parser to extract and forward all four BloatView
columns, the tbpl/mach formatters to read 'count', and the wptreport
JSON writer to emit both 'count' and 'bytes'.

Differential Revision: https://phabricator.services.mozilla.com/D296744
2026-05-05 19:28:06 +00:00

51 lines
1.8 KiB
Python

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import find_packages, setup
PACKAGE_NAME = "mozlog"
PACKAGE_VERSION = "9.0.0"
DEPS = [
"blessed>=1.19.1",
"mozterm",
"mozfile",
"mozsystemmonitor",
]
setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description="Robust log handling specialized for logging in the Mozilla universe",
long_description="see https://firefox-source-docs.mozilla.org/mozbase/index.html",
author="Mozilla Automation and Testing Team",
author_email="tools@lists.mozilla.org",
url="https://wiki.mozilla.org/Auto-tools/Projects/Mozbase",
license="Mozilla Public License 2.0 (MPL 2.0)",
packages=find_packages(),
zip_safe=False,
install_requires=DEPS,
tests_require=["mozfile"],
platforms=["Any"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
],
package_data={"mozlog": ["formatters/html/main.js", "formatters/html/style.css"]},
entry_points={"console_scripts": ["structlog = mozlog.scripts:main"]},
python_requires=">=3.8",
)