From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mail.openembedded.org (Postfix) with ESMTP id 2024871E5F for ; Wed, 25 Jan 2017 12:41:13 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 25 Jan 2017 04:41:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,283,1477983600"; d="scan'208";a="35260434" Received: from marquiz.fi.intel.com ([10.237.72.155]) by orsmga002.jf.intel.com with ESMTP; 25 Jan 2017 04:41:13 -0800 From: Markus Lehtonen To: openembedded-core@lists.openembedded.org Date: Wed, 25 Jan 2017 14:41:00 +0200 Message-Id: <20170125124101.29425-10-markus.lehtonen@linux.intel.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170125124101.29425-1-markus.lehtonen@linux.intel.com> References: <20170125124101.29425-1-markus.lehtonen@linux.intel.com> Subject: [PATCH RFC 09/10] python-pgo-image: switch python default profile task to pybench X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 12:41:13 -0000 Switch to pybench in order to reduce the time taken by profiling. [YOCTO #9338] Signed-off-by: Markus Lehtonen --- meta/recipes-devtools/images/python-pgo-image.bb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/meta/recipes-devtools/images/python-pgo-image.bb b/meta/recipes-devtools/images/python-pgo-image.bb index 222d7a8..82cb001 100644 --- a/meta/recipes-devtools/images/python-pgo-image.bb +++ b/meta/recipes-devtools/images/python-pgo-image.bb @@ -1,7 +1,8 @@ SUMMARY = "Minimal image for doing Python profiling (for PGO)" IMAGE_FEATURES += "ssh-server-dropbear" -IMAGE_INSTALL = "packagegroup-core-boot python-profile-opt python-profile-opt-tests" +IMAGE_INSTALL = "packagegroup-core-boot" +IMAGE_INSTALL += "python-profile-opt python-profile-opt-tests python-profile-opt-tools" LICENSE = "MIT" @@ -9,12 +10,13 @@ inherit core-image PYTHON_PROFILE_DIR ?= "${TMPDIR}/work-shared/${MACHINE}/python/pgo-data" PYTHON_PROFILE_TASK_DEFAULT = "-m test.regrtest --pgo -w -x test_asyncore test_gdb test_multiprocessing test_subprocess" -# Exclude tests that are segfaulting on qemux86 target -PYTHON_PROFILE_TASK_DEFAULT += "test_bytes test_str test_string test_tuple test_unicode test_userstring test_xmlrpc" -# Exclude tests that are failing on qemux86 -PYTHON_PROFILE_TASK_DEFAULT += "test_StringIO test_builtin test_calendar test_cmath test_ctypes test_distutils test_exceptions test_getargs test_gzip test_json test_math test_shutil test_socket test_sqlite test_traceback test_warnings" -# Exclude tests that are taking very long on qemux86 -PYTHON_PROFILE_TASK_DEFAULT += "test_io test_lib2to3 test_itertools" +## Exclude tests that are segfaulting on qemux86 target +#PYTHON_PROFILE_TASK_DEFAULT += "test_bytes test_str test_string test_tuple test_unicode test_userstring test_xmlrpc" +## Exclude tests that are failing on qemux86 +#PYTHON_PROFILE_TASK_DEFAULT += "test_StringIO test_builtin test_calendar test_cmath test_ctypes test_distutils test_exceptions test_getargs test_gzip test_json test_math test_shutil test_socket test_sqlite test_traceback test_warnings" +## Exclude tests that are taking very long on qemux86 +#PYTHON_PROFILE_TASK_DEFAULT += "test_io test_lib2to3 test_itertools" +PYTHON_PROFILE_TASK_DEFAULT = "/opt/share/doc/python-profile-opt/Tools/pybench/pybench.py -n 2 --with-gc --with-syscheck" PYTHON_PROFILE_TASK ?= "${PYTHON_PROFILE_TASK_DEFAULT}" # We need these because we're utilizing the runtime test helpers from oeqa -- 2.10.2