gecko-dev/toolkit/library/Makefile.in
Nathan Froyd 2b3a15afe9 Bug 1542746 - use a static MOZ_PROFILE_ORDER_FILE; r=nalexander,chmanchester
We're planning on switching to IR-based profiling, so we can't use the
frontend-based instrumentation to collect the order in which functions
are executed...at least not during the build itself.  Performance tests
indicate that not having the order information decreases performance
significantly.  So we're going to check in static files for Win32 and
Win64 and use those to perform the ordering.  It's OK if these files are
slightly out of date; as of this writing, builds that generate and then
use these files complain that ~1/3 of the functions can't be found (!).
We're just trying to do something slightly smarter than whatever the
linker default is.

Differential Revision: https://phabricator.services.mozilla.com/D31132

--HG--
extra : moz-landing-system : lando
2019-05-24 01:54:59 +00:00

21 lines
547 B
Makefile

# 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/.
include $(topsrcdir)/config/config.mk
include $(topsrcdir)/config/rules.mk
DUMP_SYMBOLS_FLAGS = --count-ctors
ifdef CLANG_CL
ifdef MOZ_PROFILE_USE
ifeq (x86,$(CPU_ARCH))
PGO_LDFLAGS += -ORDER:@$(topsrcdir)/build/win32/orderfile.txt
endif
ifeq (x86_64,$(CPU_ARCH))
PGO_LDFLAGS += -ORDER:@$(topsrcdir)/build/win64/orderfile.txt
endif
endif
endif