mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-20 16:31:57 +09:00
[Chore] (MG_Backend/DirectGLES, MG_Backend/DirectVulkan, MG_Impl/EGLImpl, MG_Impl/Pipe, MG_IntegrationTest/Harness, MG_IntegrationTest/Scenarios, MG_Pipe, MG_Remote, MG_Remote/Client, MG_Remote/Server, MG_Remote/Transport, MG_Test/Backend, MG_Test/EGLState, MG_Test/Wire, scripts, scripts/ci, tools/cts, tools/device_bench, tools/spikes, tools/trace_replay, tools/wgl-smoke): add the license header where it is missing
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/callers.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
import sys, re, subprocess, collections, os
|
||||
f, tid, so, base, sub, target = sys.argv[1], sys.argv[2], sys.argv[3], int(sys.argv[4],16), sys.argv[5], sys.argv[6]
|
||||
SYM = os.path.expandvars(r'$LOCALAPPDATA/Android/Sdk/ndk/27.2.12479018/toolchains/llvm/prebuilt/windows-x86_64/bin/llvm-symbolizer.exe')
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/incl.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
# incl.py <samples> <tid> <so> <base> <dsosub> [top] - inclusive on-CPU %, and leaf-dso -> first own frame
|
||||
import sys, re, subprocess, collections, os
|
||||
f, tid, so, base, sub = sys.argv[1], sys.argv[2], sys.argv[3], int(sys.argv[4], 16), sys.argv[5]
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/mktables.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
import json, sys, statistics as st
|
||||
d = json.load(open(sys.argv[1]))
|
||||
stacks = ['stock', 'espryt', 'magma']
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/offcpu.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
# offcpu.py <samples.txt> <tid> <so> <base-hex> <dso-substr> [depth]
|
||||
# Aggregates report-sample output (trace-offcpu) for one thread: on/off CPU split, and the
|
||||
# off-CPU (leaf __schedule) time by kernel wait path + first N libMobileGL frames.
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/pbparse.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
import re, sys, glob, os, statistics as st
|
||||
# usage: pbparse.py <dir> ; files <round>-<stack>-<cfg>.out
|
||||
d = sys.argv[1]
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/symagg.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
# symagg.py <report.txt> <libname-substring> <so-path> <base-hex> [top]
|
||||
# report.txt = simpleperf report --sort dso,vaddr_in_file output; aggregates samples per function.
|
||||
import sys, re, subprocess, collections, os
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# MobileGL - tools/device_bench/anland_glmark2/timeline.py
|
||||
# Copyright (c) 2025-2026 MobileGL-Dev
|
||||
# Licensed under the GNU Lesser General Public License v3.0:
|
||||
# https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
# https://www.gnu.org/licenses/lgpl-3.0.txt
|
||||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# End of Source File Header
|
||||
|
||||
import sys, collections
|
||||
f = sys.argv[1]; tids = sys.argv[2].split(','); t0off = float(sys.argv[3]); span = float(sys.argv[4])
|
||||
samples = []; cur = None
|
||||
|
||||
Reference in New Issue
Block a user