From nobody Mon Jun 20 05:57:22 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 23C6685F118; Mon, 20 Jun 2022 05:57:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LRJnv0QVrz4brF; Mon, 20 Jun 2022 05:57:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655704643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+XGVxzOUc/Or19RVlWP76mwLLJVNbG0KSvI+65DFxkc=; b=jYG0Hss8P+nQqgWa/QypzY985L5cOPuBKQNHATzrooIWM3cKh1mkLgvZp/+srTsr1xq9O+ fIH53KF8Og8t2PJ0Oi1oFCi2XDpkSJWd0AA0eRp6g19bL+9KYVDCPPNdBWZl78w2vC+a4O RYfmC1/3YQuY8d1WIxFBoMPrWMFXYWvw5QlemvWy8jU2nyjCKdcN3seDYQMDU+SpXjoCJX Wr+LI8qUAqY6XBmux4J7y54ox8e8c4imQ/7SImo9oereUhkHqHXVtb7Mh4V4TWd0oPIjie khV3ZFgsR1Rv8gJXRxGOLDZN7JnCjAGXFfXH5MypmCQOlHQdBbtHu3S+RvXS+Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E26BE17BB4; Mon, 20 Jun 2022 05:57:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25K5vMkx045883; Mon, 20 Jun 2022 05:57:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25K5vMev045882; Mon, 20 Jun 2022 05:57:22 GMT (envelope-from git) Date: Mon, 20 Jun 2022 05:57:22 GMT Message-Id: <202206200557.25K5vMev045882@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 0be255af9271 - main - devel/easy-profiler: New port: Library and tool for converting vertex formats List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0be255af9271989f53058b48e444fe2e8baf41aa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655704643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+XGVxzOUc/Or19RVlWP76mwLLJVNbG0KSvI+65DFxkc=; b=AEMTUgtwFUdeYCftlKXa8vdHAH/2y5JoZ4O/8guA6yphY1jI1eNpZkkZZQLz9TR1wNKiOi SIOK4B4IEfxmiHaKhhAZD1q6knQU7Aj1t9oWL8/UZ4FCClxhWdVjcp77mnZE+9UldXcGGa RWo73e1oSK6JnnvMxFksdUqWwAbrARXtVLS8WgHoDK+VhJjNDomFqrHAgJMz0YzzhQvejI Oq46z8Wq7m3mXPVL13QAg9nUQ2rCW/gCroC1vcXUg41ouHFfGSg1AIv6N2rHpACah7nrPD kPNPxXLMGA3cK6UwgfCn12tvch1s1JKVBr8DD6SfGHeZw9l50fGmRzyEpxtwlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655704643; a=rsa-sha256; cv=none; b=g1ctbajVdbMANLL1H6Ru5GnloW8+MMS3j+yaNoLVAcZzZ8ohHCDc/tfNmuD3n3471+hNSz F330yp1uRMdXixA7m8JPiIQMTeb43WRb6jfLbP+0J5cPfLKHCRoYIpYi7TErTjgLrLSiCh 8H1/TdNo0N1JlnLusIP8SS8nUSx4srlRAEMTDh/Il46EZeliw2ig6jcxSG6Ad868hi/jDD WsvintVi7j/AQ2qngG8F0e8jkR45Bd0JaH03l8yDAqclCxA3PQlHbVuWyVqnbFgMnGF0sj wbGff0BIFSkeHrcx07lTqvuRBCcJ/2IN46hxBEf08v5oQI0rPKB5NsTZq5htdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0be255af9271989f53058b48e444fe2e8baf41aa commit 0be255af9271989f53058b48e444fe2e8baf41aa Author: Yuri Victorovich AuthorDate: 2022-06-20 05:56:51 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-20 05:57:20 +0000 devel/easy-profiler: New port: Library and tool for converting vertex formats --- devel/Makefile | 1 + devel/easy-profiler/Makefile | 25 ++++++++++++++++++++++ devel/easy-profiler/distinfo | 3 +++ .../patch-easy__profiler__core_current__thread.h | 23 ++++++++++++++++++++ .../files/patch-profiler__gui_thread__pool.cpp | 11 ++++++++++ devel/easy-profiler/pkg-descr | 8 +++++++ devel/easy-profiler/pkg-plist | 23 ++++++++++++++++++++ 7 files changed, 94 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 855bd8c7ec91..7d9bba5a542c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -559,6 +559,7 @@ SUBDIR += dyncall SUBDIR += e00compr SUBDIR += eastl + SUBDIR += easy-profiler SUBDIR += easyexif SUBDIR += easygit SUBDIR += easyloggingpp diff --git a/devel/easy-profiler/Makefile b/devel/easy-profiler/Makefile new file mode 100644 index 000000000000..cbb4fd46e2d5 --- /dev/null +++ b/devel/easy-profiler/Makefile @@ -0,0 +1,25 @@ +PORTNAME= easy-profiler +DISTVERSIONPREFIX= v +DISTVERSION= 2.1.0-41 +DISTVERSIONSUFFIX= -g3104dd4 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library and tool for converting vertex formats + +LICENSE= APACHE20 MIT +LICENSE_COMB= dual +LICENSE_FILE_APACHE20= ${WRKSRC}/easy_profiler_core/LICENSE.APACHE +LICENSE_FILE_MIT= ${WRKSRC}/easy_profiler_core/LICENSE.MIT + +USES= cmake:testing compiler:c++11-lang qt:5 +USE_QT= core gui widgets buildtools_build qmake_build + +USE_GITHUB= yes +GH_ACCOUNT= yse +GH_PROJECT= easy_profiler + +post-install: + @${RM} ${STAGEDIR}${PREFIX}/LICENSE.* + +.include diff --git a/devel/easy-profiler/distinfo b/devel/easy-profiler/distinfo new file mode 100644 index 000000000000..c77e3a5896a1 --- /dev/null +++ b/devel/easy-profiler/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1655701621 +SHA256 (yse-easy_profiler-v2.1.0-41-g3104dd4_GH0.tar.gz) = a619d77cba16eb215b77dd336e4bc9fc24968a14b26f7bf71f9c23576c15a507 +SIZE (yse-easy_profiler-v2.1.0-41-g3104dd4_GH0.tar.gz) = 423101 diff --git a/devel/easy-profiler/files/patch-easy__profiler__core_current__thread.h b/devel/easy-profiler/files/patch-easy__profiler__core_current__thread.h new file mode 100644 index 000000000000..723b6dbb2d11 --- /dev/null +++ b/devel/easy-profiler/files/patch-easy__profiler__core_current__thread.h @@ -0,0 +1,23 @@ +--- easy_profiler_core/current_thread.h.orig 2021-06-09 13:16:22 UTC ++++ easy_profiler_core/current_thread.h +@@ -60,6 +60,10 @@ The Apache License, Version 2.0 (the "License"); + # include + #endif + ++#if defined(__DragonFly__) || defined(__FreeBSD__) ++#include ++#endif ++ + inline profiler::thread_id_t getCurrentThreadId() + { + #ifdef _WIN32 +@@ -76,6 +80,9 @@ inline profiler::thread_id_t getCurrentThreadId() + # endif + #elif defined(__QNX__) + EASY_THREAD_LOCAL static const profiler::thread_id_t _id = (profiler::thread_id_t)gettid(); ++ return _id; ++#elif defined(__DragonFly__) || defined(__FreeBSD__) ++ EASY_THREAD_LOCAL static const profiler::thread_id_t _id = (profiler::thread_id_t)pthread_getthreadid_np(); + return _id; + #else + EASY_THREAD_LOCAL static const profiler::thread_id_t _id = (profiler::thread_id_t)syscall(__NR_gettid); diff --git a/devel/easy-profiler/files/patch-profiler__gui_thread__pool.cpp b/devel/easy-profiler/files/patch-profiler__gui_thread__pool.cpp new file mode 100644 index 000000000000..8be92c738d6b --- /dev/null +++ b/devel/easy-profiler/files/patch-profiler__gui_thread__pool.cpp @@ -0,0 +1,11 @@ +--- profiler_gui/thread_pool.cpp.orig 2022-06-20 05:17:12 UTC ++++ profiler_gui/thread_pool.cpp +@@ -73,7 +73,7 @@ static void setLowestThreadPriority() + { + #ifdef _WIN32 + SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST); +-#elif !defined(__APPLE__) ++#elif !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__DragonFly__) + pthread_attr_t attr; + if (pthread_attr_init(&attr) == 0) + { diff --git a/devel/easy-profiler/pkg-descr b/devel/easy-profiler/pkg-descr new file mode 100644 index 000000000000..550cc403a18c --- /dev/null +++ b/devel/easy-profiler/pkg-descr @@ -0,0 +1,8 @@ +Lightweight cross-platform profiler library for C++. + +You can profile any function in you code. Furthermore this library +provide measuring time of any block of code. For example, information +for 12 millions of blocks is using less than 300Mb of memory. Working +profiler slows your application execution for only 1-2%. + +WWW: https://github.com/yse/easy_profiler diff --git a/devel/easy-profiler/pkg-plist b/devel/easy-profiler/pkg-plist new file mode 100644 index 000000000000..d7628cd29c7b --- /dev/null +++ b/devel/easy-profiler/pkg-plist @@ -0,0 +1,23 @@ +bin/profiler_converter +bin/profiler_gui +include/easy/arbitrary_value.h +include/easy/details/arbitrary_value_aux.h +include/easy/details/arbitrary_value_public_types.h +include/easy/details/easy_compiler_support.h +include/easy/details/profiler_aux.h +include/easy/details/profiler_colors.h +include/easy/details/profiler_in_use.h +include/easy/details/profiler_public_types.h +include/easy/easy_net.h +include/easy/easy_protocol.h +include/easy/easy_socket.h +include/easy/profiler.h +include/easy/reader.h +include/easy/serialized_block.h +include/easy/utility.h +include/easy/writer.h +lib/cmake/easy_profiler/easy_profilerConfig.cmake +lib/cmake/easy_profiler/easy_profilerConfigVersion.cmake +lib/cmake/easy_profiler/easy_profilerTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/easy_profiler/easy_profilerTargets.cmake +lib/libeasy_profiler.so