mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 949304 - Print Makefile counts during config.status; r=glandium
We now capture and print the number of Makefile.in and the number of generated Makefile as part of config.status. This should give us a nice, easy to extract metric going forward. Pushing on a CLOSED TREE because this patch didn't deserve to get backed out. --HG-- extra : amend_source : 36028b17fd09c57455aef681bbe459891f5ed607
This commit is contained in:
parent
5a3894b20b
commit
bcd2f1cb1a
@ -268,17 +268,25 @@ class RecursiveMakeBackend(CommonBackend):
|
||||
self._ipdl_sources = set()
|
||||
|
||||
def detailed(summary):
|
||||
s = '{:d} total backend files. {:d} created; {:d} updated; {:d} unchanged'.format(
|
||||
s = '{:d} total backend files; ' \
|
||||
'{:d} created; {:d} updated; {:d} unchanged; ' \
|
||||
'{:d} deleted; {:d} -> {:d} Makefile'.format(
|
||||
summary.created_count + summary.updated_count +
|
||||
summary.unchanged_count, summary.created_count,
|
||||
summary.updated_count, summary.unchanged_count)
|
||||
if summary.deleted_count:
|
||||
s+= '; {:d} deleted'.format(summary.deleted_count)
|
||||
summary.unchanged_count,
|
||||
summary.created_count,
|
||||
summary.updated_count,
|
||||
summary.unchanged_count,
|
||||
summary.deleted_count,
|
||||
summary.makefile_in_count,
|
||||
summary.makefile_out_count)
|
||||
|
||||
return s
|
||||
|
||||
# This is a little kludgy and could be improved with a better API.
|
||||
self.summary.backend_detailed_summary = types.MethodType(detailed,
|
||||
self.summary)
|
||||
self.summary.makefile_in_count = 0
|
||||
self.summary.makefile_out_count = 0
|
||||
|
||||
self._test_manifests = {}
|
||||
|
||||
@ -664,6 +672,7 @@ class RecursiveMakeBackend(CommonBackend):
|
||||
if not stub:
|
||||
self.log(logging.DEBUG, 'substitute_makefile',
|
||||
{'path': makefile}, 'Substituting makefile: {path}')
|
||||
self.summary.makefile_in_count += 1
|
||||
|
||||
for tier, skiplist in self._may_skip.items():
|
||||
if tier in ('compile', 'binaries'):
|
||||
@ -1104,6 +1113,8 @@ class RecursiveMakeBackend(CommonBackend):
|
||||
# the autogenerated one automatically.
|
||||
self.backend_input_files.add(obj.input_path)
|
||||
|
||||
self.summary.makefile_out_count += 1
|
||||
|
||||
def _handle_webidl_collection(self, webidls):
|
||||
if not webidls.all_stems():
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user