From 9e703a1aa6f6371307e4f38a4dff8df805d171f4 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Tue, 22 Aug 2023 15:51:57 -0700 Subject: [PATCH] WIP Commit --- build_tools/install_cexts.py | 5 + profile.html | 170721 ++++++++++++++++++++++++++++++ profile.json | 166713 +++++++++++++++++++++++++++++ test/initialize.py | 3 + test/initialize_performance.sh | 18 + 5 files changed, 337460 insertions(+) create mode 100644 profile.html create mode 100644 profile.json create mode 100644 test/initialize.py create mode 100755 test/initialize_performance.sh diff --git a/build_tools/install_cexts.py b/build_tools/install_cexts.py index 5c6488adf4f..8a18ef6901f 100644 --- a/build_tools/install_cexts.py +++ b/build_tools/install_cexts.py @@ -255,6 +255,11 @@ def check_cache_path_writable(cache_path): cext_cache under the current directory where the script runs. """ try: + try: + os.makedirs(cache_path) + except OSError as e: + if e.errno != 17: + raise e check_file = os.path.join(cache_path, "check.txt") with open(check_file, "w") as f: f.write("check") diff --git a/profile.html b/profile.html new file mode 100644 index 00000000000..b00988d2d6f --- /dev/null +++ b/profile.html @@ -0,0 +1,170721 @@ + + + + Scalene + + + + + + + + + + + + + + + + + + + + + + + +

+ +

+
+

+

+
+ advanced options + + Proposed optimizations
+ + + +
+
+ + +
+
+ + +
+ + +
+ + Click on an explosion (💥) to see proposed optimizations for a region of code,
+ or on a lightning bolt (⚡) to propose optimizations for a specific line.
+ Click again to generate a different one.
+ Note that optimizations are AI-generated and may not be correct. +
+
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/profile.json b/profile.json new file mode 100644 index 00000000000..383e4f953c1 --- /dev/null +++ b/profile.json @@ -0,0 +1,166713 @@ +{ + "alloc_samples": 11, + "elapsed_time_sec": 1.5304405689239502, + "files": { + "/home/richard/github/kolibri/kolibri/core/analytics/utils.py": { + "functions": [], + "imports": [ + "import base64", + "import datetime", + "import hashlib", + "import math", + "import sys", + "import zlib" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import base64\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "import datetime\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import hashlib\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import json\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "import logging\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "import math\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "import sys\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "import requests\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from dateutil import parser\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06249887638796321, + "n_cpu_percent_c": 3.791856111287154, + "n_cpu_percent_python": 0.6767497118059697, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 8.033711293176851e-05, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from django.core.serializers.json import DjangoJSONEncoder\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from django.db import transaction\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from django.db.models import Count\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from django.db.models import Max\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from django.db.models import Min\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from django.db.models import Q\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "from django.db.models import Sum\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "from django.utils.timezone import get_current_timezone\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from django.utils.timezone import localtime\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from le_utils.constants import content_kinds\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from morango.models import InstanceIDModel\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "import kolibri\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "from .constants import nutrition_endpoints\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from .models import PingbackNotification\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from kolibri.core.auth.constants import demographics\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "from kolibri.core.auth.constants import role_kinds\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "from kolibri.core.auth.models import Classroom\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from kolibri.core.auth.models import Facility\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from kolibri.core.auth.models import FacilityUser\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from kolibri.core.auth.models import LearnerGroup\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from kolibri.core.content.models import ChannelMetadata\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from kolibri.core.content.models import LocalFile\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "from kolibri.core.device.utils import allow_guest_access\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "from kolibri.core.device.utils import get_device_setting\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "from kolibri.core.exams.models import Exam\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "from kolibri.core.lessons.models import Lesson\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "from kolibri.core.logger.models import AttemptLog\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "from kolibri.core.logger.models import ContentSessionLog\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 40, + "line": "from kolibri.core.logger.models import ContentSummaryLog\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 41, + "line": "from kolibri.core.logger.models import MasteryLog\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "from kolibri.core.logger.models import UserSessionLog\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 43, + "line": "from kolibri.core.utils.lock import db_lock\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 44, + "line": "from kolibri.core.utils.urls import join_url\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "from kolibri.utils import conf\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 46, + "line": "from kolibri.utils.server import installation_type\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 47, + "line": "from kolibri.utils.time_utils import local_now\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": "\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 48 + }, + { + "end_region_line": 49, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 49 + }, + { + "end_region_line": 50, + "line": "\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 52, + "line": "DEFAULT_SERVER_URL = \"https://telemetry.learningequality.org\"\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 53, + "line": "\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": "USER_THRESHOLD = 10\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 54 + }, + { + "end_region_line": 55, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 56, + "line": "facility_settings = [\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 57, + "line": " \"preset\",\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": " \"learner_can_edit_username\",\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 59, + "line": " \"learner_can_edit_name\",\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": " \"learner_can_edit_password\",\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 61, + "line": " \"learner_can_sign_up\",\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 62, + "line": " \"learner_can_delete_account\",\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 62 + }, + { + "end_region_line": 63, + "line": " \"learner_can_login_with_no_password\",\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 64, + "line": " \"show_download_button_in_learn\",\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 64 + }, + { + "end_region_line": 65, + "line": " \"registered\",\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 65 + }, + { + "end_region_line": 66, + "line": "]\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 67, + "line": "\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 68, + "line": "if sys.version_info[0] >= 3:\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 69, + "line": " # encodestring is a deprecated alias for\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 70, + "line": " # encodebytes, which was finally removed\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 70 + }, + { + "end_region_line": 71, + "line": " # in Python 3.9\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 72, + "line": " encodestring = base64.encodebytes\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 72 + }, + { + "end_region_line": 73, + "line": "else:\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 74, + "line": " # encodebytes does not exist in Python 2.7\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 75, + "line": " encodestring = base64.encodestring\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 75 + }, + { + "end_region_line": 76, + "line": "\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 76 + }, + { + "end_region_line": 77, + "line": "\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 90, + "line": "def calculate_list_stats(data):\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " if data:\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " results = {}\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " results[\"count\"] = len(data)\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " # calculate mean\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " results[\"mean\"] = float(sum(data)) / results[\"count\"]\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " # calculate std\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " results[\"std\"] = round(\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " math.sqrt(sum((d - results[\"mean\"]) ** 2 for d in data) / results[\"count\"]),\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " 2,\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " )\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " return results\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 90, + "line": " return {\"count\": None, \"mean\": None, \"std\": None}\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 91 + }, + { + "end_region_line": 92, + "line": "\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 140, + "line": "def calculate_demographic_stats(dataset_id=None, channel_id=None, learners=True):\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " stats = {}\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # if learners=True, only include learners, otherwise only non-learners\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " roles_filter = Q(roles__isnull=learners)\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " queryset = FacilityUser.objects.filter(roles_filter)\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # handle stats at facility level\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " if dataset_id:\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " queryset = queryset.filter(dataset_id=dataset_id)\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # handle stats at channel level\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " if channel_id:\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " user_ids = (\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " queryset.filter(contentsummarylog__channel_id=channel_id)\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " .distinct()\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " .values_list(\"id\", flat=True)\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " )\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # pass distinct user_ids as subquery\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " queryset = FacilityUser.objects.filter(id__in=user_ids)\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # calculate stats if there are USER_THRESHOLD users or more\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " if queryset.count() >= USER_THRESHOLD:\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # get list of all birth years\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " list_of_birth_years = list(queryset.values_list(\"birth_year\", flat=True))\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # calculate all gender counts\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " gender_counts = queryset.values(\"gender\").annotate(count=Count(\"gender\"))\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " year_stats = calculate_list_stats(\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " [int(year) for year in list_of_birth_years if year.isdigit()]\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " )\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " # payload of birth year and gender statistics\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " stats = {\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"bys\": {\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"a\": year_stats[\"mean\"],\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"sd\": year_stats[\"std\"],\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"ts\": year_stats[\"count\"],\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"d\": list_of_birth_years.count(demographics.DEFERRED),\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"ns\": list_of_birth_years.count(demographics.NOT_SPECIFIED),\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " },\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " \"gc\": {\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " gc[\"gender\"]: gc[\"count\"] for gc in gender_counts if gc[\"gender\"] != \"\"\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " },\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " }\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 140, + "line": " return stats\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 141, + "line": "\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 141 + }, + { + "end_region_line": 142, + "line": "\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 152, + "line": "def dump_zipped_json(data):\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " jsondata = json.dumps(data, sort_keys=True, cls=DjangoJSONEncoder)\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " try:\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " # perform the import in here as zlib isn't available on some platforms\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " import zlib\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": "\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " jsondata = zlib.compress(jsondata)\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " except: # noqa\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " pass\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 152, + "line": " return jsondata\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 153, + "line": "\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 153 + }, + { + "end_region_line": 154, + "line": "\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 305, + "line": "def extract_facility_statistics(facility):\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " dataset_id = facility.dataset_id\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " settings = {\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " name: getattr(facility.dataset, name)\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " for name in facility_settings\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " if hasattr(facility.dataset, name)\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " }\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " settings.update(allow_guest_access=allow_guest_access())\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " learners = FacilityUser.objects.filter(dataset_id=dataset_id).exclude(\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " roles__kind__in=[role_kinds.ADMIN, role_kinds.COACH]\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " coaches = FacilityUser.objects.filter(\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " dataset_id=dataset_id, roles__kind__in=[role_kinds.ADMIN, role_kinds.COACH]\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " usersessions = UserSessionLog.objects.filter(dataset_id=dataset_id)\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions = ContentSessionLog.objects.filter(\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " dataset_id=dataset_id, time_spent__lt=3600 * 2\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # the aggregates below are used to calculate the first and most recent times this device was used\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " usersess_agg = usersessions.filter(\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " start_timestamp__gt=datetime.datetime(2016, 1, 1)\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " ).aggregate(first=Min(\"start_timestamp\"), last=Max(\"last_interaction_timestamp\"))\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsess_agg = contsessions.filter(\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " start_timestamp__gt=datetime.datetime(2016, 1, 1)\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " ).aggregate(first=Min(\"start_timestamp\"), last=Max(\"end_timestamp\"))\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # extract the first and last times we've seen logs, ignoring any that are None\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " first_times = [d[\"first\"] for d in [usersess_agg, contsess_agg] if d[\"first\"]]\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " last_times = [d[\"last\"] for d in [usersess_agg, contsess_agg] if d[\"last\"]]\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # since newly provisioned devices won't have logs, we don't know whether we have an available datetime object\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " first_interaction_timestamp = (\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " getattr(min(first_times), \"strftime\", None) if first_times else None\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " last_interaction_timestamp = (\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " getattr(max(last_times), \"strftime\", None) if last_times else None\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " sesslogs_by_kind = (\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions.order_by(\"kind\").values(\"kind\").annotate(count=Count(\"kind\"))\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " sesslogs_by_kind = {log[\"kind\"]: log[\"count\"] for log in sesslogs_by_kind}\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " usersess_devinf = (\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " usersessions.values(\"device_info\")\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " .exclude(device_info=\"\")\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " .exclude(device_info__isnull=True)\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " .annotate(count=Count(\"device_info\"))\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " usersess_devinf = {\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " devinf[\"device_info\"]: devinf[\"count\"] for devinf in usersess_devinf\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " }\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " summarylogs = ContentSummaryLog.objects.filter(dataset_id=dataset_id)\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions_user = contsessions.exclude(user=None)\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions_anon = contsessions.filter(user=None)\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions_anon_no_visitor_id = contsessions_anon.filter(visitor_id=None)\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions_anon_with_visitor_id = contsessions_anon.exclude(visitor_id=None)\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " users_with_logs = contsessions_user.values(\"user_id\").distinct().count()\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " anon_visitors_with_logs = (\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " contsessions_anon_with_visitor_id.values(\"visitor_id\").distinct().count()\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # calculate learner stats\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " learner_demographics = calculate_demographic_stats(\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " dataset_id=dataset_id, learners=True\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # calculate non-learner stats\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " non_learner_demographics = calculate_demographic_stats(\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " dataset_id=dataset_id, learners=False\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # fmt: off\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " data = {\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # facility_id\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"fi\": encodestring(hashlib.md5(facility.id.encode()).digest())[:10].decode(),\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # settings\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"s\": settings,\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # learners_count\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"lc\": learners.count(),\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # learner_login_count\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"llc\": usersessions.exclude(user__roles__kind__in=[role_kinds.ADMIN, role_kinds.COACH]).distinct().count(),\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # coaches_count\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"cc\": coaches.count(),\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # coach_login_count\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"clc\": usersessions.filter(user__roles__kind__in=[role_kinds.ADMIN, role_kinds.COACH]).distinct().count(),\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # users_with_logs\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"uwl\": users_with_logs,\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # anon_visitors_with_logs\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"vwl\": anon_visitors_with_logs,\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # device info stats\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"dis\": usersess_devinf,\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # first\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"f\" : first_interaction_timestamp(\"%Y-%m-%d\") if first_interaction_timestamp else None,\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # last\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"l\": last_interaction_timestamp(\"%Y-%m-%d\") if last_interaction_timestamp else None,\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # summ_started\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"ss\": summarylogs.count(),\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # summ_complete\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"sc\": summarylogs.exclude(completion_timestamp=None).count(),\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # sess_kinds\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"sk\": sesslogs_by_kind,\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # class_count\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"crc\": Classroom.objects.filter(dataset_id=dataset_id).count(),\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # group_count\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"grc\": LearnerGroup.objects.filter(dataset_id=dataset_id).count(),\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # lesson_count\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"lec\": Lesson.objects.filter(dataset_id=dataset_id).count(),\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # exam_count\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"ec\": Exam.objects.filter(dataset_id=dataset_id).count(),\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # exam_log_count\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"elc\": MasteryLog.objects.filter(dataset_id=dataset_id, summarylog__kind=content_kinds.QUIZ).count(),\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # att_log_count\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"alc\": AttemptLog.objects.filter(dataset_id=dataset_id).exclude(sessionlog__kind=content_kinds.QUIZ).count(),\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # exam_att_log_count\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"ealc\": AttemptLog.objects.filter(dataset_id=dataset_id, sessionlog__kind=content_kinds.QUIZ).count(),\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # sess_user_count\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"suc\": contsessions_user.count(),\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # sess_anon_count\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"sac\": contsessions_anon.count(),\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # sess_anon_count_no_visitor_id\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"sacnv\": contsessions_anon_no_visitor_id.count(),\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # sess_user_time\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"sut\": int((contsessions_user.aggregate(total_time=Sum(\"time_spent\"))[\"total_time\"] or 0) / 60),\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # sess_anon_time\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"sat\": int((contsessions_anon.aggregate(total_time=Sum(\"time_spent\"))[\"total_time\"] or 0) / 60),\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # demographic_stats_learner\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"dsl\": learner_demographics,\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # demographic_stats_non_learner\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " \"dsnl\": non_learner_demographics,\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " }\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # fmt: on\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # conditionally calculate and add soud_hash\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " if get_device_setting(\"subset_of_users_device\", False):\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " user_ids = \":\".join(\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " facility.facilityuser_set.order_by(\"id\").values_list(\"id\", flat=True)\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " )\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " # soud_hash\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " data[\"sh\"] = encodestring(hashlib.md5(user_ids.encode()).digest())[:10].decode()\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 305, + "line": " return data\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 306, + "line": "\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 307, + "line": "\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 307 + }, + { + "end_region_line": 395, + "line": "def extract_channel_statistics(channel):\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " channel_id = channel.id\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " tree_id = channel.root.tree_id\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " sessionlogs = ContentSessionLog.objects.filter(\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " channel_id=channel_id, time_spent__lt=3600 * 2\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " )\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " summarylogs = ContentSummaryLog.objects.filter(channel_id=channel_id)\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " sesslogs_by_kind = (\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " sessionlogs.order_by(\"kind\").values(\"kind\").annotate(count=Count(\"kind\"))\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " )\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " sesslogs_by_kind = {log[\"kind\"]: log[\"count\"] for log in sesslogs_by_kind}\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " pop = list(\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " sessionlogs.values(\"content_id\")\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " .annotate(count=Count(\"id\"))\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " .order_by(\"-count\")[:50]\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " )\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " localfiles = LocalFile.objects.filter(\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " available=True, files__contentnode__tree_id=tree_id\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " ).distinct()\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " contsessions_user = sessionlogs.exclude(user=None)\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " contsessions_anon = sessionlogs.filter(user=None)\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " contsessions_anon_no_visitor_id = contsessions_anon.filter(visitor_id=None)\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " contsessions_anon_with_visitor_id = contsessions_anon.exclude(visitor_id=None)\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " users_with_logs = contsessions_user.values(\"user_id\").distinct().count()\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " anon_visitors_with_logs = (\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " contsessions_anon_with_visitor_id.values(\"visitor_id\").distinct().count()\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " )\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # calculate learner stats\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " learner_demographics = calculate_demographic_stats(\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " channel_id=channel_id, learners=True\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " )\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # calculate non-learner stats\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " non_learner_demographics = calculate_demographic_stats(\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " channel_id=channel_id, learners=False\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " )\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": "\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # fmt: off\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " return {\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # channel_id\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"ci\": channel_id[:10],\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # version\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"v\": channel.version,\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # updated\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"u\": channel.last_updated.strftime(\"%Y-%m-%d\") if channel.last_updated else None,\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # popular_ids\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"pi\": [item[\"content_id\"][:10] for item in pop],\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # popular_counts\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"pc\": [item[\"count\"] for item in pop],\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # job_storage calculated by the MB\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # rtibbles: This is the one remaining instance of non-SI bytes units calculations that\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # I have discovered still extant in Kolibri. As this is being used for statistics reporting\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # I have not updated it to use SI units as with all other instances, as that would\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # produce undesirable inconsistencies in reported statistics.\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"s\": (localfiles.aggregate(Sum(\"file_size\"))[\"file_size__sum\"] or 0) / (2 ** 20),\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # summ_started\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"ss\": summarylogs.count(),\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # summ_complete\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"sc\": summarylogs.exclude(completion_timestamp=None).count(),\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # sess_kinds\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"sk\": sesslogs_by_kind,\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # sess_user_count\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"suc\": contsessions_user.count(),\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # sess_anon_count\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"sac\": contsessions_anon.count(),\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # sess_anon_count_no_visitor_id\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"sacnv\": contsessions_anon_no_visitor_id.count(),\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # sess_user_time\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"sut\": int((contsessions_user.aggregate(total_time=Sum(\"time_spent\"))[\"total_time\"] or 0) / 60),\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # sess_anon_time\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"sat\": int((contsessions_anon.aggregate(total_time=Sum(\"time_spent\"))[\"total_time\"] or 0) / 60),\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # users_with_logs\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"uwl\": users_with_logs,\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # anon_visitors_with_logs\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"vwl\": anon_visitors_with_logs,\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # demographic_stats_learner\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"dsl\": learner_demographics,\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " # demographic_stats_non_learner\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " \"dsnl\": non_learner_demographics,\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 395, + "line": " }\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 396, + "line": " # fmt: on\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 396 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 397 + }, + { + "end_region_line": 398, + "line": "\n", + "lineno": 398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 398 + }, + { + "end_region_line": 399, + "line": "@transaction.atomic\n", + "lineno": 399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 399 + }, + { + "end_region_line": 421, + "line": "def create_and_update_notifications(data, source):\n", + "lineno": 400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " messages = [obj for obj in data.get(\"messages\", []) if obj.get(\"msg_id\")]\n", + "lineno": 401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " excluded_ids = [obj.get(\"msg_id\") for obj in messages]\n", + "lineno": 402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " with db_lock():\n", + "lineno": 403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " PingbackNotification.objects.filter(source=source).exclude(\n", + "lineno": 404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " id__in=excluded_ids\n", + "lineno": 405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " ).update(active=False)\n", + "lineno": 406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": "\n", + "lineno": 407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 421, + "line": " for msg in messages:\n", + "lineno": 408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " new_msg = {\n", + "lineno": 409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"id\": msg[\"msg_id\"],\n", + "lineno": 410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"version_range\": msg.get(\"version_range\"),\n", + "lineno": 411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"link_url\": msg.get(\"link_url\"),\n", + "lineno": 412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"i18n\": msg.get(\"i18n\"),\n", + "lineno": 413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"timestamp\": msg.get(\"timestamp\"),\n", + "lineno": 414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"source\": source,\n", + "lineno": 415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " \"active\": True,\n", + "lineno": 416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " }\n", + "lineno": 417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " with db_lock():\n", + "lineno": 418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " PingbackNotification.objects.update_or_create(\n", + "lineno": 419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " id=new_msg[\"id\"], defaults=new_msg\n", + "lineno": 420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 421, + "line": " )\n", + "lineno": 421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 422, + "line": "\n", + "lineno": 422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 423, + "line": "\n", + "lineno": 423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 423 + }, + { + "end_region_line": 460, + "line": "def perform_ping(started, server=DEFAULT_SERVER_URL):\n", + "lineno": 424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " url = join_url(server, \"/api/v1/pingback\")\n", + "lineno": 426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " instance, _ = InstanceIDModel.get_or_create_current_instance()\n", + "lineno": 428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " language = get_device_setting(\"language_id\", \"\")\n", + "lineno": 430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " started = parser.isoparse(started)\n", + "lineno": 432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " try:\n", + "lineno": 434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " timezone = get_current_timezone().zone\n", + "lineno": 435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " except Exception:\n", + "lineno": 436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " timezone = \"\"\n", + "lineno": 437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " data = {\n", + "lineno": 439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"instance_id\": instance.id,\n", + "lineno": 440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"version\": kolibri.__version__,\n", + "lineno": 441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"mode\": conf.OPTIONS[\"Deployment\"][\"RUN_MODE\"],\n", + "lineno": 442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"project\": conf.OPTIONS[\"Deployment\"][\"PROJECT\"],\n", + "lineno": 443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"platform\": instance.platform,\n", + "lineno": 444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"sysversion\": instance.sysversion,\n", + "lineno": 445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"database_id\": instance.database.id,\n", + "lineno": 446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"system_id\": instance.system_id,\n", + "lineno": 447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"node_id\": instance.node_id,\n", + "lineno": 448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"language\": language,\n", + "lineno": 449, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"timezone\": timezone,\n", + "lineno": 450, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"uptime\": int((local_now() - started).total_seconds() / 60),\n", + "lineno": 451, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"timestamp\": localtime(),\n", + "lineno": 452, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " \"installer\": installation_type(),\n", + "lineno": 453, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " }\n", + "lineno": 454, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": "\n", + "lineno": 455, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " logger.debug(\"Pingback data: {}\".format(data))\n", + "lineno": 456, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " jsondata = dump_zipped_json(data)\n", + "lineno": 457, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " response = requests.post(url, data=jsondata, timeout=60)\n", + "lineno": 458, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " response.raise_for_status()\n", + "lineno": 459, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 460, + "line": " return json.loads(response.content.decode() or \"{}\")\n", + "lineno": 460, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 461, + "line": "\n", + "lineno": 461, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 461 + }, + { + "end_region_line": 462, + "line": "\n", + "lineno": 462, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 462 + }, + { + "end_region_line": 472, + "line": "def perform_statistics(server, pingback_id):\n", + "lineno": 463, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " url = join_url(server, \"/api/v1/statistics\")\n", + "lineno": 464, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " channels = [extract_channel_statistics(c) for c in ChannelMetadata.objects.all()]\n", + "lineno": 465, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " facilities = [extract_facility_statistics(f) for f in Facility.objects.all()]\n", + "lineno": 466, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " data = {\"pi\": pingback_id, \"c\": channels, \"f\": facilities}\n", + "lineno": 467, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " logger.debug(\"Statistics data: {}\".format(data))\n", + "lineno": 468, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " jsondata = dump_zipped_json(data)\n", + "lineno": 469, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " response = requests.post(url, data=jsondata, timeout=60)\n", + "lineno": 470, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " response.raise_for_status()\n", + "lineno": 471, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 472, + "line": " return json.loads(response.content.decode() or \"{}\")\n", + "lineno": 472, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 473, + "line": "\n", + "lineno": 473, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 473 + }, + { + "end_region_line": 474, + "line": "\n", + "lineno": 474, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 474 + }, + { + "end_region_line": 481, + "line": "def ping_once(started, server=DEFAULT_SERVER_URL):\n", + "lineno": 475, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + }, + { + "end_region_line": 481, + "line": " data = perform_ping(started, server=server)\n", + "lineno": 476, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + }, + { + "end_region_line": 481, + "line": " logger.info(\"Ping succeeded! (response: {})\".format(data))\n", + "lineno": 477, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + }, + { + "end_region_line": 481, + "line": " create_and_update_notifications(data, nutrition_endpoints.PINGBACK)\n", + "lineno": 478, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + }, + { + "end_region_line": 481, + "line": " if \"id\" in data:\n", + "lineno": 479, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + }, + { + "end_region_line": 481, + "line": " stat_data = perform_statistics(server, data[\"id\"])\n", + "lineno": 480, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + }, + { + "end_region_line": 481, + "line": " create_and_update_notifications(stat_data, nutrition_endpoints.STATISTICS)\n", + "lineno": 481, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 475 + } + ], + "percent_cpu_time": 4.4686861602060555 + }, + "/home/richard/github/kolibri/kolibri/core/apps.py": { + "functions": [ + { + "line": "KolibriCoreConfig.activate_pragmas_on_start", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06251392335601424, + "n_cpu_percent_c": 0.650983612481821, + "n_cpu_percent_python": 0.6767618784906531, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0 + } + ], + "imports": [ + "from __future__ import unicode_literals", + "import os" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "from __future__ import unicode_literals\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import logging\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import os\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "from django.apps import AppConfig\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "from django.conf import settings\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from django.db.backends.signals import connection_created\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from django.db.models.query import F\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from django.db.utils import DatabaseError\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from django_filters.filters import UUIDFilter\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06180044436750808, + "n_cpu_percent_c": 0.767693351719042, + "n_cpu_percent_python": 0.66918695714739, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.01626489459051068, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from django_filters.rest_framework.filterset import FilterSet\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from kolibri.core.sqlite.pragmas import CONNECTION_PRAGMAS\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from kolibri.core.sqlite.pragmas import START_PRAGMAS\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from kolibri.core.sqlite.utils import repair_sqlite_db\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "from kolibri.core.utils.cache import process_cache\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "from kolibri.core.utils.cache import RedisSettingsHelper\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from kolibri.deployment.default.sqlite_db_names import NOTIFICATIONS\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from kolibri.plugins.registry import registered_plugins\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from kolibri.utils.conf import OPTIONS\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from kolibri.utils.data import bytes_for_humans\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 166, + "line": "class KolibriCoreConfig(AppConfig):\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " name = \"kolibri.core\"\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 56, + "line": " def ready(self):\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " \"\"\"\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " Sets up PRAGMAs.\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " \"\"\"\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " connection_created.connect(self.activate_pragmas_per_connection)\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " self.activate_pragmas_on_start()\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Log the settings file that we are running Kolibri with.\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Do this logging here, as this will be after Django has done its processing of\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Any environment variables or --settings command line arguments.\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " logger.info(\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " \"Running Kolibri with the following settings: {settings}\".format(\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " settings=os.environ[\"DJANGO_SETTINGS_MODULE\"]\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " )\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " )\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " self.check_redis_settings()\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Do this to add an automapping from the Morango UUIDField to the UUIDFilter so that it automatically\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # maps to this filter when using the UUIDField in a filter.\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " from morango.models import UUIDField\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": "\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " FilterSet.FILTER_DEFAULTS.update({UUIDField: {\"filter_class\": UUIDFilter}})\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Register any django apps that may have kolibri plugin\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # modules inside them\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " registered_plugins.register_non_plugins(settings.INSTALLED_APPS)\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Fixes issue using OuterRef within Cast() that is patched in later Django version\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # Patch from https://github.com/django/django/commit/c412926a2e359afb40738d8177c9f3bef80ee04e\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " # https://code.djangoproject.com/ticket/29142\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 56, + "line": " F.relabeled_clone = lambda self, relabels: self\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " @staticmethod\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 80, + "line": " def activate_pragmas_per_connection(sender, connection, **kwargs):\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " \"\"\"\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " Activate SQLite3 PRAGMAs that apply on a per-connection basis. A no-op\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " right now, but kept around as infrastructure if we ever want to add\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " PRAGMAs in the future.\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " \"\"\"\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": "\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " if connection.vendor == \"sqlite\":\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " if connection.alias == NOTIFICATIONS:\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " broken_db = False\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " try:\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " cursor = connection.cursor()\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " quick_check = cursor.execute(\"PRAGMA quick_check\").fetchone()[0]\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " broken_db = quick_check != \"ok\"\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " except DatabaseError:\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " broken_db = True\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " if broken_db:\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " repair_sqlite_db(connection)\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " cursor = connection.cursor()\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": "\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " # Shorten the default WAL autocheckpoint from 1000 pages to 500\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 80, + "line": " cursor.executescript(CONNECTION_PRAGMAS)\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # We don't turn on the following pragmas, because they have negligible\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # performance impact. For reference, here's what we've tested:\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # Don't ensure that the OS has fully flushed\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # our data to disk.\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # cursor.execute(\"PRAGMA synchronous=OFF;\")\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # Store cross-database JOINs in memory.\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " # cursor.execute(\"PRAGMA temp_store=MEMORY;\")\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " @staticmethod\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 109, + "line": " def activate_pragmas_on_start():\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " \"\"\"\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " Activate a set of PRAGMAs that apply to the database itself,\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " and not on a per connection basis.\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " :return:\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " \"\"\"\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " from django.db import connection\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": "\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " if connection.vendor == \"sqlite\":\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " cursor = connection.cursor()\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": "\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " # http://www.sqlite.org/wal.html\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " # WAL's main advantage allows simultaneous reads\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " # and writes (vs. the default exclusive write lock)\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " # at the cost of a slight penalty to all reads.\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " cursor.execute(START_PRAGMAS)\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06251392335601424, + "n_cpu_percent_c": 0.650983612481821, + "n_cpu_percent_python": 0.6767618784906531, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 109, + "line": " connection.close()\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " @staticmethod\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 166, + "line": " def check_redis_settings():\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"\"\"\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " Check that Redis settings are sensible, and use the lower level Redis client to make updates\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " if we are configured to do so, and if we should, otherwise make some logging noise.\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"\"\"\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " if OPTIONS[\"Cache\"][\"CACHE_BACKEND\"] != \"redis\":\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " return\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " config_maxmemory = OPTIONS[\"Cache\"][\"CACHE_REDIS_MAXMEMORY\"]\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " config_maxmemory_policy = OPTIONS[\"Cache\"][\"CACHE_REDIS_MAXMEMORY_POLICY\"]\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " try:\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " # see redis_cache.backends.single.RedisCache\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " helper = RedisSettingsHelper(process_cache.get_master_client())\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " # set policy first\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " # default setting is \"noeviction\"\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " maxmemory_policy = helper.get_maxmemory_policy()\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " if (\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " config_maxmemory_policy != \"\"\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " and maxmemory_policy != config_maxmemory_policy\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " ):\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " helper.set_maxmemory_policy(config_maxmemory_policy)\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " elif maxmemory_policy == \"noeviction\":\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " logger.warning(\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"Redis is configured without a maximum memory policy. Using Redis with \"\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"Kolibri, the following is suggested: maxmemory-policy allkeys-lru\"\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " )\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " # default setting is \"0\", or no limit\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " maxmemory = helper.get_maxmemory()\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " if config_maxmemory > 0 and maxmemory != config_maxmemory:\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " used_memory = helper.get_used_memory()\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " if config_maxmemory < used_memory:\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " logger.warning(\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"Redis was using {used_memory} before setting `maxmemory` configuration of {config_memory}\".format(\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " used_memory=bytes_for_humans(used_memory),\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " config_memory=bytes_for_humans(config_maxmemory),\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " )\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " )\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " helper.set_maxmemory(config_maxmemory)\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " elif maxmemory == 0:\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " logger.warning(\"Redis is configured without a maximum memory size.\")\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " # add a final message about the redis configuration\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " if not helper.changed and (\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " maxmemory == 0 or maxmemory_policy == \"noeviction\"\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " ):\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " logger.warning(\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"Problematic Redis settings detected, please see Redis configuration \"\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " \"documentation for details: https://redis.io/topics/config\"\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " )\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " except Exception as e:\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " logger.warning(\"Unable to check Redis settings\")\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 166, + "line": " logger.warning(e)\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + } + ], + "percent_cpu_time": 2.7808906944294165 + }, + "/home/richard/github/kolibri/kolibri/core/auth/models.py": { + "functions": [], + "imports": [ + "from __future__ import absolute_import", + "from __future__ import print_function", + "from __future__ import unicode_literals", + "from threading import local", + "import six" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "\"\"\"\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "We have four main abstractions: Users, Collections, Memberships, and Roles.\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "Users represent people, like students in a school, teachers for a classroom, or volunteers setting up informal\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "installations. A ``FacilityUser`` belongs to a particular facility, and has permissions only with respect to other data\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "that is associated with that facility. ``FacilityUser`` accounts (like other facility data) may be synced across multiple\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "devices.\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "Collections form a hierarchy, with Collections able to belong to other Collections. Collections are subdivided\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "into several pre-defined levels (``Facility`` > ``Classroom`` > ``LearnerGroup``).\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "A ``FacilityUser`` (but not a ``DeviceOwner``) can be marked as a member of a ``Collection`` through a ``Membership``\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "object. Being a member of a Collection also means being a member of all the Collections above that Collection in the\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "hierarchy.\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "Another way in which a ``FacilityUser`` can be associated with a particular ``Collection`` is through a ``Role``\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "object, which grants the user a role with respect to the ``Collection`` and all the collections below it. A ``Role``\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "object also stores the \"kind\" of the role (currently, one of \"admin\" or \"coach\"), which affects what permissions the\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "user gains through the ``Role``.\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "\"\"\"\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from __future__ import absolute_import\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from __future__ import print_function\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "from __future__ import unicode_literals\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "import logging\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from threading import local\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "import six\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from django.contrib.auth.models import AbstractBaseUser\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from django.contrib.auth.models import AnonymousUser\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from django.contrib.auth.models import UserManager\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from django.core import validators\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from django.core.exceptions import ObjectDoesNotExist\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "from django.core.exceptions import ValidationError\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "from django.db import models\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "from django.db import transaction\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "from django.db.models.query import Q\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "from django.db.utils import IntegrityError\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "from django.utils.encoding import python_2_unicode_compatible\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 40, + "line": "from django.utils.functional import cached_property\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 41, + "line": "from morango.models import Certificate\n", + "lineno": 41, + "memory_samples": [ + [ + 895971435, + 40.30639934539795 + ] + ], + "n_avg_mb": 10.022455215454102, + "n_copy_mb_s": 154.0281742098193, + "n_core_utilization": 0.05863126679647239, + "n_cpu_percent_c": 4.355558140033162, + "n_cpu_percent_python": 13.325528716727467, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 10.022455215454102, + "n_malloc_mb": 10.022455215454102, + "n_mallocs": 1, + "n_peak_mb": 10.022455215454102, + "n_python_fraction": 0.979334, + "n_sys_percent": 1.1762209465880806, + "n_usage_fraction": 0.20035390059041197, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "from morango.models import SyncableModel\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 43, + "line": "from morango.models import SyncableModelManager\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 44, + "line": "from mptt.models import TreeForeignKey\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 46, + "line": "from .constants import collection_kinds\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 47, + "line": "from .constants import facility_presets\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": "from .constants import morango_sync\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 48 + }, + { + "end_region_line": 49, + "line": "from .constants import role_kinds\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 49 + }, + { + "end_region_line": 50, + "line": "from .constants import user_kinds\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": "from .errors import IncompatibleDeviceSettingError\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 52, + "line": "from .errors import InvalidCollectionHierarchy\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 53, + "line": "from .errors import InvalidMembershipError\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": "from .errors import InvalidRoleKind\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 54 + }, + { + "end_region_line": 55, + "line": "from .errors import UserDoesNotHaveRoleError\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 56, + "line": "from .errors import UserIsNotFacilityUser\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 57, + "line": "from .errors import UserIsNotMemberError\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": "from .permissions.auth import AllCanReadFacilityDataset\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 59, + "line": "from .permissions.auth import AnyUserCanReadFacilities\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": "from .permissions.auth import CoachesCanManageGroupsForTheirClasses\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 61, + "line": "from .permissions.auth import CoachesCanManageMembershipsForTheirGroups\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 62, + "line": "from .permissions.auth import CollectionSpecificRoleBasedPermissions\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 62 + }, + { + "end_region_line": 63, + "line": "from .permissions.auth import FacilityAdminCanEditForOwnFacilityDataset\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 64, + "line": "from .permissions.base import BasePermissions\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 64 + }, + { + "end_region_line": 65, + "line": "from .permissions.base import RoleBasedPermissions\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 65 + }, + { + "end_region_line": 66, + "line": "from .permissions.general import IsAdminForOwnFacility\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 67, + "line": "from .permissions.general import IsOwn\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 68, + "line": "from .permissions.general import IsSelf\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 69, + "line": "from kolibri.core.auth.constants.demographics import choices as GENDER_CHOICES\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 70, + "line": "from kolibri.core.auth.constants.demographics import DEFERRED\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 70 + }, + { + "end_region_line": 71, + "line": "from kolibri.core.auth.constants.demographics import NOT_SPECIFIED\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 72, + "line": "from kolibri.core.auth.constants.morango_sync import ScopeDefinitions\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 72 + }, + { + "end_region_line": 73, + "line": "from kolibri.core.device.utils import DeviceNotProvisioned\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 74, + "line": "from kolibri.core.device.utils import get_device_setting\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 75, + "line": "from kolibri.core.device.utils import set_device_settings\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 75 + }, + { + "end_region_line": 76, + "line": "from kolibri.core.errors import KolibriValidationError\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 76 + }, + { + "end_region_line": 77, + "line": "from kolibri.core.fields import DateTimeTzField\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 78, + "line": "from kolibri.core.fields import JSONField\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 79, + "line": "from kolibri.core.utils.validators import JSON_Schema_Validator\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 79 + }, + { + "end_region_line": 80, + "line": "from kolibri.plugins.app.utils import interface\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 81, + "line": "from kolibri.utils.time_utils import local_now\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 81 + }, + { + "end_region_line": 82, + "line": "\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 82 + }, + { + "end_region_line": 83, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 83 + }, + { + "end_region_line": 84, + "line": "\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 84 + }, + { + "end_region_line": 85, + "line": "# '\"optional\":True' is obsolete but needed while we keep using an\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 86, + "line": "# old json_schema_validator version compatible with python 2.7.\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 87, + "line": "# \"additionalProperties\": False must be avoided for backwards compatibility\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 88, + "line": "extra_fields_schema = {\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 89, + "line": " \"type\": \"object\",\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 89 + }, + { + "end_region_line": 90, + "line": " \"properties\": {\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 90 + }, + { + "end_region_line": 91, + "line": " \"facility\": {\"type\": \"object\", \"optional\": True},\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 91 + }, + { + "end_region_line": 92, + "line": " \"on_my_own_setup\": {\"type\": \"boolean\", \"optional\": True},\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 93, + "line": " \"pin_code\": {\"type\": [\"string\", \"null\"], \"optional\": True},\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 94, + "line": " },\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 94 + }, + { + "end_region_line": 95, + "line": "}\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 95 + }, + { + "end_region_line": 96, + "line": "\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 96 + }, + { + "end_region_line": 97, + "line": "extra_fields_default_values = {\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 98, + "line": " \"facility\": {},\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 99, + "line": " \"on_my_own_setup\": False,\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 100, + "line": " \"pin_code\": \"\",\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 101, + "line": "}\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 103, + "line": "\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 103 + }, + { + "end_region_line": 132, + "line": "class DatasetCache(local):\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 106, + "line": " def __init__(self):\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 106, + "line": " self.deactivate()\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 109, + "line": " def __enter__(self):\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 109, + "line": " self.activate()\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 112, + "line": " def activate(self):\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 111 + }, + { + "end_region_line": 112, + "line": " self._active = True\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 111 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 115, + "line": " def __exit__(self, type, value, traceback):\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 114 + }, + { + "end_region_line": 115, + "line": " self.deactivate()\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 114 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 119, + "line": " def deactivate(self):\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 117 + }, + { + "end_region_line": 119, + "line": " self._active = False\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 117 + }, + { + "end_region_line": 119, + "line": " self.clear()\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 117 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 122, + "line": " def clear(self):\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 122, + "line": " self._cache = {}\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 127, + "line": " def get(self, key):\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 127, + "line": " if self._active:\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 127, + "line": " return self._cache.get(key)\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 127, + "line": " return None\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 132, + "line": " def set(self, key, dataset_id):\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 132, + "line": " if self._active:\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 132, + "line": " self._cache[key] = dataset_id\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 132, + "line": " return None\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 133, + "line": "\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 134, + "line": "\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 134 + }, + { + "end_region_line": 135, + "line": "dataset_cache = DatasetCache()\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 136, + "line": "\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 137 + }, + { + "end_region_line": 139, + "line": "def _has_permissions_class(obj):\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 138 + }, + { + "end_region_line": 139, + "line": " return hasattr(obj, \"permissions\") and isinstance(obj.permissions, BasePermissions)\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 138 + }, + { + "end_region_line": 140, + "line": "\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 141, + "line": "\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 141 + }, + { + "end_region_line": 147, + "line": "class FacilityDataSyncableModel(SyncableModel):\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 147, + "line": "\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 147, + "line": " morango_profile = morango_sync.PROFILE_FACILITY_DATA\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 147, + "line": "\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 147, + "line": " class Meta:\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 146 + }, + { + "end_region_line": 147, + "line": " abstract = True\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 146 + }, + { + "end_region_line": 148, + "line": "\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 149, + "line": "\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 149 + }, + { + "end_region_line": 150, + "line": "@python_2_unicode_compatible\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 150 + }, + { + "end_region_line": 248, + "line": "class FacilityDataset(FacilityDataSyncableModel):\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " \"\"\"\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " ``FacilityDataset`` stores high-level metadata and settings for a particular ``Facility``.\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " It is also the model that all models storing facility data (data that is associated with a\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " particular facility, and that inherits from ``AbstractFacilityDataModel``) foreign key onto,\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " to indicate that they belong to this particular ``Facility``.\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " \"\"\"\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " permissions = (\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " AllCanReadFacilityDataset() | FacilityAdminCanEditForOwnFacilityDataset()\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " )\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " # Morango syncing settings\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " morango_model_name = \"facilitydataset\"\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " description = models.TextField(blank=True)\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " location = models.CharField(max_length=200, blank=True)\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " preset = models.CharField(\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " max_length=50,\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " choices=facility_presets.choices,\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " default=facility_presets.default,\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " )\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " # Facility specific configuration settings\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " learner_can_edit_username = models.BooleanField(default=True)\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " learner_can_edit_name = models.BooleanField(default=True)\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " learner_can_edit_password = models.BooleanField(default=True)\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " learner_can_sign_up = models.BooleanField(default=True)\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " learner_can_delete_account = models.BooleanField(default=True)\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " learner_can_login_with_no_password = models.BooleanField(default=False)\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " show_download_button_in_learn = models.BooleanField(default=True)\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " extra_fields = JSONField(\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " null=True,\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " blank=True,\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " validators=[JSON_Schema_Validator(extra_fields_schema)],\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " default=extra_fields_default_values,\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " )\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " registered = models.BooleanField(default=False)\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 197, + "line": " def __str__(self):\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 197, + "line": " facilities = self.collection_set.filter(kind=collection_kinds.FACILITY)\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 197, + "line": " if facilities:\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 197, + "line": " return \"FacilityDataset for {}\".format(\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 197, + "line": " Facility.objects.get(id=facilities[0].id)\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 197, + "line": " )\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 197, + "line": " return \"FacilityDataset (no associated Facility)\"\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 201, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 199 + }, + { + "end_region_line": 201, + "line": " self.ensure_compatibility()\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 199 + }, + { + "end_region_line": 201, + "line": " super(FacilityDataset, self).save(*args, **kwargs)\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 199 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 211, + "line": " def ensure_compatibility(self, *args, **kwargs):\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " if self.learner_can_login_with_no_password and self.learner_can_edit_password:\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " raise IncompatibleDeviceSettingError(\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " \"Device Settings [learner_can_login_with_no_password={}] & [learner_can_edit_password={}] \"\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " \"values incompatible together.\".format(\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " self.learner_can_login_with_no_password,\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " self.learner_can_edit_password,\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " )\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 211, + "line": " )\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 219, + "line": " def calculate_source_id(self):\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 219, + "line": " # if we don't already have a source ID, get one by generating a new root certificate, and using its ID\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 219, + "line": " if not self._morango_source_id:\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 219, + "line": " self._morango_source_id = Certificate.generate_root_certificate(\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 219, + "line": " ScopeDefinitions.FULL_FACILITY\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 219, + "line": " ).id\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 219, + "line": " return self._morango_source_id\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " @staticmethod\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 227, + "line": " def compute_namespaced_id(partition_value, source_id_value, model_name):\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 227, + "line": " # assert partition_value.startswith(FacilityDataset.ID_PLACEHOLDER)\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 227, + "line": " if model_name != FacilityDataset.morango_model_name:\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 227, + "line": " raise AssertionError\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 227, + "line": " # we use the source_id as the ID for the FacilityDataset\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 227, + "line": " return source_id_value\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 230, + "line": " def calculate_partition(self):\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 229 + }, + { + "end_region_line": 230, + "line": " return \"{id}:allusers-ro\".format(id=self.ID_PLACEHOLDER)\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 229 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 233, + "line": " def get_root_certificate(self):\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 232 + }, + { + "end_region_line": 233, + "line": " return Certificate.objects.get(id=self.id)\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 232 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 239, + "line": " def get_owned_certificates(self):\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 239, + "line": " # return all certificates associated with this facility dataset for which we have the private key\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 239, + "line": " return Certificate.objects.filter(\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 239, + "line": " tree_id=self.get_root_certificate().tree_id\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 239, + "line": " ).exclude(_private_key=None)\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 248, + "line": " def reset_to_default_settings(self, preset=None):\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 248, + "line": " from kolibri.core.auth.constants.facility_presets import mappings\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 248, + "line": " # use the current preset if it is not passed in\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 248, + "line": " dataset_data = mappings[preset or self.preset]\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 247, + "line": " for key, value in dataset_data.items():\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 247, + "line": " setattr(self, key, value)\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 248, + "line": " self.save()\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 249, + "line": "\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 249 + }, + { + "end_region_line": 250, + "line": "\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 250 + }, + { + "end_region_line": 344, + "line": "class AbstractFacilityDataModel(FacilityDataSyncableModel):\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " \"\"\"\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " Base model for Kolibri \"Facility Data\", which is data that is specific to a particular ``Facility``,\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " such as ``FacilityUsers``, ``Collections``, and other data associated with those users and collections.\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " \"\"\"\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " dataset = models.ForeignKey(FacilityDataset, on_delete=models.CASCADE)\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 260, + "line": " class Meta:\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 260, + "line": " abstract = True\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " @classmethod\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 264, + "line": " def get_related_dataset_cache_key(cls, id, db_table):\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 264, + "line": " return \"{id}_{db_table}_dataset\".format(id=id, db_table=db_table)\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 284, + "line": " def cached_related_dataset_lookup(self, related_obj_name):\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " \"\"\"\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " Attempt to get the dataset_id either from the cache or the actual related obj instance.\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": "\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " :param related_obj_name: string representing the name of the related object on this model\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " :return: the dataset_id associated with the related obj\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " \"\"\"\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " field = self._meta.get_field(related_obj_name)\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " key = self.get_related_dataset_cache_key(\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " getattr(self, field.attname), field.related_model._meta.db_table\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " )\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " dataset_id = dataset_cache.get(key)\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " if dataset_id is None:\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " try:\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " dataset_id = getattr(self, related_obj_name).dataset_id\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " except ObjectDoesNotExist as e:\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " raise ValidationError(e)\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " dataset_cache.set(key, dataset_id)\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 284, + "line": " return dataset_id\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 288, + "line": " def calculate_source_id(self):\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 286 + }, + { + "end_region_line": 288, + "line": " # by default, we'll use randomly generated source IDs; this can be overridden as desired\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 286 + }, + { + "end_region_line": 288, + "line": " return None\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 286 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 294, + "line": " def clean_fields(self, *args, **kwargs):\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 290 + }, + { + "end_region_line": 294, + "line": " # ensure that we have, or can infer, a dataset for the model instance\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 290 + }, + { + "end_region_line": 294, + "line": " if not self.dataset_id:\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 290 + }, + { + "end_region_line": 294, + "line": " self.ensure_dataset(validating=True)\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 290 + }, + { + "end_region_line": 294, + "line": " super(AbstractFacilityDataModel, self).clean_fields(*args, **kwargs)\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 290 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 300, + "line": " def full_clean(self, *args, **kwargs):\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 300, + "line": " kwargs[\"exclude\"] = kwargs.get(\"exclude\", []) + getattr(\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 300, + "line": " self, \"FIELDS_TO_EXCLUDE_FROM_VALIDATION\", []\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 300, + "line": " )\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 300, + "line": " super(AbstractFacilityDataModel, self).full_clean(*args, **kwargs)\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 309, + "line": " def pre_save(self):\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " # before saving, ensure we have a dataset, and convert any validation errors into integrity\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " # errors, since by this point the `clean_fields` method should already have prevented\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " # this situation from arising\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " try:\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " self.ensure_dataset()\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " except KolibriValidationError as e:\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 309, + "line": " raise IntegrityError(str(e))\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 313, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 311 + }, + { + "end_region_line": 313, + "line": " self.pre_save()\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 311 + }, + { + "end_region_line": 313, + "line": " super(AbstractFacilityDataModel, self).save(*args, **kwargs)\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 311 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 335, + "line": " def ensure_dataset(self, *args, **kwargs):\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " \"\"\"\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " If no dataset has yet been specified, try to infer it. If a dataset has already been specified, to prevent\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " inconsistencies, make sure it matches the inferred dataset, otherwise raise a ``KolibriValidationError``.\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " If we have no dataset and it can't be inferred, we raise a ``KolibriValidationError`` exception as well.\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " \"\"\"\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " inferred_dataset_id = self.infer_dataset(*args, **kwargs)\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " if self.dataset_id:\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " # make sure currently stored dataset matches inferred dataset, if any\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " if inferred_dataset_id and inferred_dataset_id != self.dataset_id:\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " raise KolibriValidationError(\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " \"This model is not associated with the correct FacilityDataset.\"\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " )\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " else:\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " # use the inferred dataset, if there is one, otherwise throw an error\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " if inferred_dataset_id:\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " self.dataset_id = inferred_dataset_id\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " else:\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " raise KolibriValidationError(\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " \"FacilityDataset ('dataset') not provided, and could not be inferred.\"\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 335, + "line": " )\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 344, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " \"\"\"\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " This method is used by `ensure_dataset` to \"infer\" which dataset should be associated with this instance.\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " It should be overridden in any subclass of ``AbstractFacilityDataModel``, to define a model-specific inference.\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " \"\"\"\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " raise NotImplementedError(\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " \"Subclasses of AbstractFacilityDataModel must override the `infer_dataset` method.\"\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 344, + "line": " )\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 345, + "line": "\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 346, + "line": "\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 346 + }, + { + "end_region_line": 546, + "line": "class KolibriAbstractBaseUser(AbstractBaseUser):\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " \"\"\"\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " Our custom user type, derived from ``AbstractBaseUser`` as described in the Django docs.\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " Draws liberally from ``django.contrib.auth.AbstractUser``, except we exclude some fields\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " we don't care about, like email.\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " This model is an abstract model, and is inherited by ``FacilityUser``.\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " \"\"\"\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 357, + "line": " class Meta:\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 356 + }, + { + "end_region_line": 357, + "line": " abstract = True\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 356 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " USERNAME_FIELD = \"username\"\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " username = models.CharField(\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " \"username\",\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " max_length=30,\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " help_text=\"Required. 30 characters or fewer. Letters and digits only\",\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " validators=[\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " validators.RegexValidator(\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " r'[\\s`~!@#$%^&*()\\-+={}\\[\\]\\|\\\\\\/:;\"\\'<>,\\.\\?]',\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " \"Enter a valid username. This value can contain only letters, numbers, and underscores.\",\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " inverse_match=True,\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " )\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " ],\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " )\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " full_name = models.CharField(\"full name\", max_length=120, blank=True)\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " date_joined = DateTimeTzField(\"date joined\", default=local_now, editable=False)\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " is_staff = False\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " is_superuser = False\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " is_facility_user = False\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " can_manage_content = False\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 383, + "line": " def get_short_name(self):\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 382 + }, + { + "end_region_line": 383, + "line": " return self.full_name.split(\" \", 1)[0]\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 382 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " @property\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 392, + "line": " def session_data(self):\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 392, + "line": " \"\"\"\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 392, + "line": " Data that is added to the session data at login and during session updates.\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 392, + "line": " \"\"\"\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 392, + "line": " raise NotImplementedError(\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 392, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `session_data` property.\"\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 392, + "line": " )\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 404, + "line": " def is_member_of(self, coll):\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " \"\"\"\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " Determine whether this user is a member of the specified ``Collection``.\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": "\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " :param coll: The ``Collection`` for which we are checking this user's membership.\n", + "lineno": 398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " :return: ``True`` if this user is a member of the specified ``Collection``, otherwise False.\n", + "lineno": 399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " :rtype: bool\n", + "lineno": 400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " \"\"\"\n", + "lineno": 401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " raise NotImplementedError(\n", + "lineno": 402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `is_member_of` method.\"\n", + "lineno": 403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 404, + "line": " )\n", + "lineno": 404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 418, + "line": " def has_role_for_user(self, kinds, user):\n", + "lineno": 406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " \"\"\"\n", + "lineno": 407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " Determine whether this user has (at least one of) the specified role kind(s) in relation to the specified user.\n", + "lineno": 408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": "\n", + "lineno": 409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " :param user: The user that is the target of the role (for which this user has the roles).\n", + "lineno": 410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " :param kinds: The kind (or kinds) of role to check for, as a string or iterable.\n", + "lineno": 411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " :type kinds: string from ``kolibri.core.auth.constants.role_kinds.*``\n", + "lineno": 412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " :return: ``True`` if this user has the specified role kind with respect to the target user, otherwise ``False``.\n", + "lineno": 413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " :rtype: bool\n", + "lineno": 414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " \"\"\"\n", + "lineno": 415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " raise NotImplementedError(\n", + "lineno": 416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `has_role_for_user` method.\"\n", + "lineno": 417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 418, + "line": " )\n", + "lineno": 418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 432, + "line": " def has_role_for_collection(self, kinds, coll):\n", + "lineno": 420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " \"\"\"\n", + "lineno": 421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " Determine whether this user has (at least one of) the specified role kind(s) in relation to the specified ``Collection``.\n", + "lineno": 422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": "\n", + "lineno": 423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " :param kinds: The kind (or kinds) of role to check for, as a string or iterable.\n", + "lineno": 424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " :type kinds: string from kolibri.core.auth.constants.role_kinds.*\n", + "lineno": 425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " :param coll: The target ``Collection`` for which this user has the roles.\n", + "lineno": 426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " :return: ``True`` if this user has the specified role kind with respect to the target ``Collection``, otherwise ``False``.\n", + "lineno": 427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " :rtype: bool\n", + "lineno": 428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " \"\"\"\n", + "lineno": 429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " raise NotImplementedError(\n", + "lineno": 430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `has_role_for_collection` method.\"\n", + "lineno": 431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 432, + "line": " )\n", + "lineno": 432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 449, + "line": " def can_create_instance(self, obj):\n", + "lineno": 434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " \"\"\"\n", + "lineno": 435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " Checks whether this user (self) has permission to create a particular model instance (obj).\n", + "lineno": 436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": "\n", + "lineno": 437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " This method should be overridden by classes that inherit from ``KolibriAbstractBaseUser``.\n", + "lineno": 438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": "\n", + "lineno": 439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " In general, unless an instance has already been initialized, this method should not be called directly;\n", + "lineno": 440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " instead, it should be preferred to call ``can_create``.\n", + "lineno": 441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": "\n", + "lineno": 442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " :param obj: An (unsaved) instance of a Django model, to check permissions for.\n", + "lineno": 443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " :return: ``True`` if this user should have permission to create the object, otherwise ``False``.\n", + "lineno": 444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " :rtype: bool\n", + "lineno": 445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " \"\"\"\n", + "lineno": 446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " raise NotImplementedError(\n", + "lineno": 447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `can_create_instance` method.\"\n", + "lineno": 448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 449, + "line": " )\n", + "lineno": 449, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 450, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 480, + "line": " def can_create(self, Model, data):\n", + "lineno": 451, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " \"\"\"\n", + "lineno": 452, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " Checks whether this user (self) has permission to create an instance of Model with the specified attributes (data).\n", + "lineno": 453, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": "\n", + "lineno": 454, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " This method defers to the ``can_create_instance`` method, and in most cases should not itself be overridden.\n", + "lineno": 455, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": "\n", + "lineno": 456, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " :param Model: A subclass of ``django.db.models.Model``\n", + "lineno": 457, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " :param data: A ``dict`` of data to be used in creating an instance of the Model\n", + "lineno": 458, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " :return: ``True`` if this user should have permission to create an instance of Model with the specified data, else ``False``.\n", + "lineno": 459, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " :rtype: bool\n", + "lineno": 460, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " \"\"\"\n", + "lineno": 461, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " try:\n", + "lineno": 462, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " instance = Model(**data)\n", + "lineno": 463, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " instance.clean_fields(\n", + "lineno": 464, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " exclude=getattr(Model, \"FIELDS_TO_EXCLUDE_FROM_VALIDATION\", None)\n", + "lineno": 465, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " )\n", + "lineno": 466, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " instance.clean()\n", + "lineno": 467, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " except TypeError as e:\n", + "lineno": 468, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " logger.error(\n", + "lineno": 469, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " \"TypeError while validating model before checking permissions: {}\".format(\n", + "lineno": 470, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " e.args\n", + "lineno": 471, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " )\n", + "lineno": 472, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " )\n", + "lineno": 473, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " # if the data provided does not fit the Model, don't continue checking\n", + "lineno": 474, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " return False\n", + "lineno": 475, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " except ValidationError as e:\n", + "lineno": 476, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " logger.error(e)\n", + "lineno": 477, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " return False # if the data does not validate, don't continue checking\n", + "lineno": 478, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " # now that we have an instance, defer to the permission-checking method that works with instances\n", + "lineno": 479, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 480, + "line": " return self.can_create_instance(instance)\n", + "lineno": 480, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 451 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 481, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 494, + "line": " def can_read(self, obj):\n", + "lineno": 482, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " \"\"\"\n", + "lineno": 483, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " Checks whether this user (self) has permission to read a particular model instance (obj).\n", + "lineno": 484, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": "\n", + "lineno": 485, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " This method should be overridden by classes that inherit from ``KolibriAbstractBaseUser``.\n", + "lineno": 486, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": "\n", + "lineno": 487, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " :param obj: An instance of a Django model, to check permissions for.\n", + "lineno": 488, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " :return: ``True`` if this user should have permission to read the object, otherwise ``False``.\n", + "lineno": 489, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " :rtype: bool\n", + "lineno": 490, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " \"\"\"\n", + "lineno": 491, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " raise NotImplementedError(\n", + "lineno": 492, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `can_read` method.\"\n", + "lineno": 493, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 494, + "line": " )\n", + "lineno": 494, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 482 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 495, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 508, + "line": " def can_update(self, obj):\n", + "lineno": 496, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " \"\"\"\n", + "lineno": 497, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " Checks whether this user (self) has permission to update a particular model instance (obj).\n", + "lineno": 498, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": "\n", + "lineno": 499, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " This method should be overridden by classes that inherit from KolibriAbstractBaseUser.\n", + "lineno": 500, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": "\n", + "lineno": 501, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " :param obj: An instance of a Django model, to check permissions for.\n", + "lineno": 502, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " :return: ``True`` if this user should have permission to update the object, otherwise ``False``.\n", + "lineno": 503, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " :rtype: bool\n", + "lineno": 504, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " \"\"\"\n", + "lineno": 505, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " raise NotImplementedError(\n", + "lineno": 506, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `can_update` method.\"\n", + "lineno": 507, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 508, + "line": " )\n", + "lineno": 508, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 496 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 509, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 522, + "line": " def can_delete(self, obj):\n", + "lineno": 510, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " \"\"\"\n", + "lineno": 511, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " Checks whether this user (self) has permission to delete a particular model instance (obj).\n", + "lineno": 512, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": "\n", + "lineno": 513, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " This method should be overridden by classes that inherit from KolibriAbstractBaseUser.\n", + "lineno": 514, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": "\n", + "lineno": 515, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " :param obj: An instance of a Django model, to check permissions for.\n", + "lineno": 516, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " :return: ``True`` if this user should have permission to delete the object, otherwise ``False``.\n", + "lineno": 517, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " :rtype: bool\n", + "lineno": 518, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " \"\"\"\n", + "lineno": 519, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " raise NotImplementedError(\n", + "lineno": 520, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `can_delete` method.\"\n", + "lineno": 521, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 522, + "line": " )\n", + "lineno": 522, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 510 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 523, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 535, + "line": " def has_role_for(self, kinds, obj):\n", + "lineno": 524, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " \"\"\"\n", + "lineno": 525, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " Helper function that defers to ``has_role_for_user`` or ``has_role_for_collection`` based on the type of object passed in.\n", + "lineno": 526, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " \"\"\"\n", + "lineno": 527, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " if isinstance(obj, KolibriAbstractBaseUser):\n", + "lineno": 528, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " return self.has_role_for_user(kinds, obj)\n", + "lineno": 529, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " elif isinstance(obj, Collection):\n", + "lineno": 530, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " return self.has_role_for_collection(kinds, obj)\n", + "lineno": 531, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " else:\n", + "lineno": 532, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " raise ValueError(\n", + "lineno": 533, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " \"The `obj` argument to `has_role_for` must be either an instance of KolibriAbstractBaseUser or Collection.\"\n", + "lineno": 534, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 535, + "line": " )\n", + "lineno": 535, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 524 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 536, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 546, + "line": " def filter_readable(self, queryset):\n", + "lineno": 537, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " \"\"\"\n", + "lineno": 538, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " Filters a queryset down to only the elements that this user should have permission to read.\n", + "lineno": 539, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": "\n", + "lineno": 540, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " :param queryset: A ``QuerySet`` instance that the filtering should be applied to.\n", + "lineno": 541, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " :return: Filtered ``QuerySet`` including only elements that are readable by this user.\n", + "lineno": 542, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " \"\"\"\n", + "lineno": 543, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " raise NotImplementedError(\n", + "lineno": 544, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " \"Subclasses of KolibriAbstractBaseUser must override the `can_delete` method.\"\n", + "lineno": 545, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 546, + "line": " )\n", + "lineno": 546, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 537 + }, + { + "end_region_line": 547, + "line": "\n", + "lineno": 547, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 547 + }, + { + "end_region_line": 548, + "line": "\n", + "lineno": 548, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 548 + }, + { + "end_region_line": 612, + "line": "class KolibriAnonymousUser(AnonymousUser, KolibriAbstractBaseUser):\n", + "lineno": 549, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06237750012535171, + "n_cpu_percent_c": 0.03628580952952053, + "n_cpu_percent_python": 0.6754354265661435, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.001397711707443211, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": " \"\"\"\n", + "lineno": 550, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": " Custom anonymous user that also exposes the same interface as KolibriAbstractBaseUser, for consistency.\n", + "lineno": 551, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": " \"\"\"\n", + "lineno": 552, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 553, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 555, + "line": " class Meta:\n", + "lineno": 554, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 554 + }, + { + "end_region_line": 555, + "line": " abstract = True\n", + "lineno": 555, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 554 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 556, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": " @property\n", + "lineno": 557, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 566, + "line": " def session_data(self):\n", + "lineno": 558, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " return {\n", + "lineno": 559, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " \"username\": \"\",\n", + "lineno": 560, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " \"full_name\": \"\",\n", + "lineno": 561, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " \"user_id\": None,\n", + "lineno": 562, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " \"facility_id\": getattr(Facility.get_default_facility(), \"id\", None),\n", + "lineno": 563, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " \"kind\": [user_kinds.ANONYMOUS],\n", + "lineno": 564, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " \"full_facility_import\": self.full_facility_import,\n", + "lineno": 565, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 566, + "line": " }\n", + "lineno": 566, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 567, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": " @property\n", + "lineno": 568, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 571, + "line": " def full_facility_import(self):\n", + "lineno": 569, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 571, + "line": " # Just return True for anonymous users, since they don't have any permissions anyway\n", + "lineno": 570, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 571, + "line": " return True\n", + "lineno": 571, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 572, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 574, + "line": " def is_member_of(self, coll):\n", + "lineno": 573, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 573 + }, + { + "end_region_line": 574, + "line": " return False\n", + "lineno": 574, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 573 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 575, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 577, + "line": " def has_role_for_user(self, kinds, user):\n", + "lineno": 576, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 576 + }, + { + "end_region_line": 577, + "line": " return False\n", + "lineno": 577, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 576 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 578, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 580, + "line": " def has_role_for_collection(self, kinds, coll):\n", + "lineno": 579, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 579 + }, + { + "end_region_line": 580, + "line": " return False\n", + "lineno": 580, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 579 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 581, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 586, + "line": " def can_create_instance(self, obj):\n", + "lineno": 582, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 582 + }, + { + "end_region_line": 586, + "line": " # check the object permissions, if available, just in case permissions are granted to anon users\n", + "lineno": 583, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 582 + }, + { + "end_region_line": 586, + "line": " if _has_permissions_class(obj):\n", + "lineno": 584, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 582 + }, + { + "end_region_line": 586, + "line": " return obj.permissions.user_can_create_object(self, obj)\n", + "lineno": 585, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 582 + }, + { + "end_region_line": 586, + "line": " return False\n", + "lineno": 586, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 582 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 587, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 592, + "line": " def can_read(self, obj):\n", + "lineno": 588, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 588 + }, + { + "end_region_line": 592, + "line": " # check the object permissions, if available, just in case permissions are granted to anon users\n", + "lineno": 589, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 588 + }, + { + "end_region_line": 592, + "line": " if _has_permissions_class(obj):\n", + "lineno": 590, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 588 + }, + { + "end_region_line": 592, + "line": " return obj.permissions.user_can_read_object(self, obj)\n", + "lineno": 591, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 588 + }, + { + "end_region_line": 592, + "line": " return False\n", + "lineno": 592, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 588 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 593, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 598, + "line": " def can_update(self, obj):\n", + "lineno": 594, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 594 + }, + { + "end_region_line": 598, + "line": " # check the object permissions, if available, just in case permissions are granted to anon users\n", + "lineno": 595, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 594 + }, + { + "end_region_line": 598, + "line": " if _has_permissions_class(obj):\n", + "lineno": 596, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 594 + }, + { + "end_region_line": 598, + "line": " return obj.permissions.user_can_update_object(self, obj)\n", + "lineno": 597, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 594 + }, + { + "end_region_line": 598, + "line": " return False\n", + "lineno": 598, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 594 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 599, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 604, + "line": " def can_delete(self, obj):\n", + "lineno": 600, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 600 + }, + { + "end_region_line": 604, + "line": " # check the object permissions, if available, just in case permissions are granted to anon users\n", + "lineno": 601, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 600 + }, + { + "end_region_line": 604, + "line": " if _has_permissions_class(obj):\n", + "lineno": 602, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 600 + }, + { + "end_region_line": 604, + "line": " return obj.permissions.user_can_delete_object(self, obj)\n", + "lineno": 603, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 600 + }, + { + "end_region_line": 604, + "line": " return False\n", + "lineno": 604, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 600 + }, + { + "end_region_line": 612, + "line": "\n", + "lineno": 605, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 549 + }, + { + "end_region_line": 612, + "line": " def filter_readable(self, queryset):\n", + "lineno": 606, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 612, + "line": " # check the object permissions, if available, just in case permissions are granted to anon users\n", + "lineno": 607, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 612, + "line": " if _has_permissions_class(queryset.model):\n", + "lineno": 608, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 612, + "line": " return queryset.filter(\n", + "lineno": 609, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 612, + "line": " queryset.model.permissions.readable_by_user_filter(self)\n", + "lineno": 610, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 612, + "line": " ).distinct()\n", + "lineno": 611, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 612, + "line": " return queryset.none()\n", + "lineno": 612, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 606 + }, + { + "end_region_line": 613, + "line": "\n", + "lineno": 613, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 613 + }, + { + "end_region_line": 614, + "line": "\n", + "lineno": 614, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 614 + }, + { + "end_region_line": 696, + "line": "class FacilityUserModelManager(SyncableModelManager, UserManager):\n", + "lineno": 615, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 615 + }, + { + "end_region_line": 633, + "line": " def create_user(self, username, email=None, password=None, **extra_fields):\n", + "lineno": 616, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " \"\"\"\n", + "lineno": 617, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " Creates and saves a User with the given username.\n", + "lineno": 618, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " \"\"\"\n", + "lineno": 619, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " if not username:\n", + "lineno": 620, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " raise ValueError(\"The given username must be set\")\n", + "lineno": 621, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " if extra_fields.get(\"facility\") is None:\n", + "lineno": 622, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " extra_fields[\"facility\"] = Facility.get_default_facility()\n", + "lineno": 623, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " if self.filter(\n", + "lineno": 624, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " username__iexact=username, facility=extra_fields[\"facility\"]\n", + "lineno": 625, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " ).exists():\n", + "lineno": 626, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " raise ValidationError(\"An account with that username already exists\")\n", + "lineno": 627, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " user = self.model(username=username, password=password, **extra_fields)\n", + "lineno": 628, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " user.full_clean()\n", + "lineno": 629, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " if password != NOT_SPECIFIED:\n", + "lineno": 630, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " user.set_password(password)\n", + "lineno": 631, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " user.save(using=self._db)\n", + "lineno": 632, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 633, + "line": " return user\n", + "lineno": 633, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 696, + "line": "\n", + "lineno": 634, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 615 + }, + { + "end_region_line": 659, + "line": " def create_superuser(self, username, password, facility=None, full_name=None):\n", + "lineno": 635, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": "\n", + "lineno": 636, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " # import here to avoid circularity\n", + "lineno": 637, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " from kolibri.core.device.models import DevicePermissions\n", + "lineno": 638, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": "\n", + "lineno": 639, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " # create the new account in that facility\n", + "lineno": 640, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " # gender and birth_year are set to DEFERRED, since superusers do not\n", + "lineno": 641, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " # need to provide this and are not nudged to update profile on Learn page\n", + "lineno": 642, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " superuser = self.create_user(\n", + "lineno": 643, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " username,\n", + "lineno": 644, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " full_name=full_name or username,\n", + "lineno": 645, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " password=password,\n", + "lineno": 646, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " facility=facility,\n", + "lineno": 647, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " gender=DEFERRED,\n", + "lineno": 648, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " birth_year=DEFERRED,\n", + "lineno": 649, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " )\n", + "lineno": 650, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": "\n", + "lineno": 651, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " # make the user a facility admin\n", + "lineno": 652, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " superuser.facility.add_role(superuser, role_kinds.ADMIN)\n", + "lineno": 653, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": "\n", + "lineno": 654, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " # make the user into a superuser on this device\n", + "lineno": 655, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " DevicePermissions.objects.create(\n", + "lineno": 656, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " user=superuser, is_superuser=True, can_manage_content=True\n", + "lineno": 657, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " )\n", + "lineno": 658, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 659, + "line": " return superuser\n", + "lineno": 659, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 696, + "line": "\n", + "lineno": 660, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 615 + }, + { + "end_region_line": 696, + "line": " def get_or_create_os_user(self, auth_token, facility=None):\n", + "lineno": 661, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " \"\"\"\n", + "lineno": 662, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " Returns a FacilityUser object for the current OS user.\n", + "lineno": 663, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " If the user does not exist in the database, it is created.\n", + "lineno": 664, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " \"\"\"\n", + "lineno": 665, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " try:\n", + "lineno": 666, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " os_username, is_superuser = interface.get_os_user(auth_token)\n", + "lineno": 667, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " except NotImplementedError:\n", + "lineno": 668, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " return None\n", + "lineno": 669, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " if not os_username:\n", + "lineno": 670, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " return None\n", + "lineno": 671, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " from kolibri.core.device.models import OSUser\n", + "lineno": 672, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": "\n", + "lineno": 673, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " try:\n", + "lineno": 674, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " os_user = OSUser.objects.get(os_username=os_username)\n", + "lineno": 675, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " return os_user.user\n", + "lineno": 676, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " except OSUser.DoesNotExist:\n", + "lineno": 677, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " user = None\n", + "lineno": 678, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " method = self.create_superuser if is_superuser else self.create_user\n", + "lineno": 679, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 691, + "line": " for i in range(0, 10):\n", + "lineno": 680, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " try:\n", + "lineno": 681, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " with transaction.atomic():\n", + "lineno": 682, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " user = method(\n", + "lineno": 683, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " \"{}{}\".format(\"_\" * i, os_username),\n", + "lineno": 684, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " password=NOT_SPECIFIED,\n", + "lineno": 685, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " facility=facility,\n", + "lineno": 686, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " )\n", + "lineno": 687, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " OSUser.objects.create(os_username=os_username, user=user)\n", + "lineno": 688, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " break\n", + "lineno": 689, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " except ValidationError:\n", + "lineno": 690, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 691, + "line": " pass\n", + "lineno": 691, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 680 + }, + { + "end_region_line": 696, + "line": " if not user:\n", + "lineno": 692, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " raise ValidationError(\n", + "lineno": 693, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " \"Error creating FacilityUser for OS user: {}\".format(os_username)\n", + "lineno": 694, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " )\n", + "lineno": 695, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 696, + "line": " return user\n", + "lineno": 696, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 661 + }, + { + "end_region_line": 697, + "line": "\n", + "lineno": 697, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 697 + }, + { + "end_region_line": 698, + "line": "\n", + "lineno": 698, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 698 + }, + { + "end_region_line": 724, + "line": "def validate_birth_year(value):\n", + "lineno": 699, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " error = \"\"\n", + "lineno": 700, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": "\n", + "lineno": 701, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " if value == NOT_SPECIFIED or value == DEFERRED:\n", + "lineno": 702, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " return\n", + "lineno": 703, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": "\n", + "lineno": 704, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " try:\n", + "lineno": 705, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " if int(value) < 1900:\n", + "lineno": 706, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " error = (\n", + "lineno": 707, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " \"Birth year {value} is invalid, as it is prior to the year 1900\".format(\n", + "lineno": 708, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " value=value\n", + "lineno": 709, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " )\n", + "lineno": 710, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " )\n", + "lineno": 711, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": "\n", + "lineno": 712, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " elif int(value) > 3000:\n", + "lineno": 713, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " error = (\n", + "lineno": 714, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " \"Birth year {value} is invalid, as it is after the year 3000\".format(\n", + "lineno": 715, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " value=value\n", + "lineno": 716, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " )\n", + "lineno": 717, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " )\n", + "lineno": 718, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": "\n", + "lineno": 719, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " except ValueError:\n", + "lineno": 720, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " error = \"{value} is not a valid value for birth_year\".format(value=value)\n", + "lineno": 721, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": "\n", + "lineno": 722, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " if error != \"\":\n", + "lineno": 723, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 724, + "line": " raise ValidationError(error)\n", + "lineno": 724, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 699 + }, + { + "end_region_line": 725, + "line": "\n", + "lineno": 725, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 725 + }, + { + "end_region_line": 726, + "line": "\n", + "lineno": 726, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 726 + }, + { + "end_region_line": 727, + "line": "role_kinds_set = {r[0] for r in role_kinds.choices}\n", + "lineno": 727, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 727 + }, + { + "end_region_line": 728, + "line": "\n", + "lineno": 728, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 728 + }, + { + "end_region_line": 729, + "line": "\n", + "lineno": 729, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 729 + }, + { + "end_region_line": 742, + "line": "def validate_role_kinds(kinds):\n", + "lineno": 730, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " if isinstance(kinds, six.string_types):\n", + "lineno": 731, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " kinds = set([kinds])\n", + "lineno": 732, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " else:\n", + "lineno": 733, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " try:\n", + "lineno": 734, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " kinds = set(kinds)\n", + "lineno": 735, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " except TypeError:\n", + "lineno": 736, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " raise TypeError(\n", + "lineno": 737, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " \"kinds argument must be a string or an iterable coerceable to a set\"\n", + "lineno": 738, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " )\n", + "lineno": 739, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " if not role_kinds_set.issuperset(kinds):\n", + "lineno": 740, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " raise InvalidRoleKind(\"kinds argument must only contain valid role kind names\")\n", + "lineno": 741, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 742, + "line": " return kinds\n", + "lineno": 742, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 730 + }, + { + "end_region_line": 743, + "line": "\n", + "lineno": 743, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 744, + "line": "\n", + "lineno": 744, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 744 + }, + { + "end_region_line": 745, + "line": "@python_2_unicode_compatible\n", + "lineno": 745, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 745 + }, + { + "end_region_line": 998, + "line": "class FacilityUser(KolibriAbstractBaseUser, AbstractFacilityDataModel):\n", + "lineno": 746, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " \"\"\"\n", + "lineno": 747, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " ``FacilityUser`` is the fundamental object of the auth app. These users represent the main users, and can be associated\n", + "lineno": 748, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " with a hierarchy of ``Collections`` through ``Memberships`` and ``Roles``, which then serve to help determine permissions.\n", + "lineno": 749, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " \"\"\"\n", + "lineno": 750, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 751, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " # Morango syncing settings\n", + "lineno": 752, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " morango_model_name = \"facilityuser\"\n", + "lineno": 753, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 754, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " # FacilityUser can be read and written by itself\n", + "lineno": 755, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " own = IsSelf()\n", + "lineno": 756, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " # FacilityUser can be read and written by a facility admin\n", + "lineno": 757, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " admin = IsAdminForOwnFacility()\n", + "lineno": 758, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " # FacilityUser can be read by admin or coach, and updated by admin, but not created/deleted by non-facility admin\n", + "lineno": 759, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " role = RoleBasedPermissions(\n", + "lineno": 760, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " target_field=\".\",\n", + "lineno": 761, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " can_be_created_by=(), # we can't check creation permissions by role, as user doesn't exist yet\n", + "lineno": 762, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " can_be_read_by=(role_kinds.ADMIN, role_kinds.COACH),\n", + "lineno": 763, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " can_be_updated_by=(role_kinds.ADMIN,),\n", + "lineno": 764, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " can_be_deleted_by=(), # don't want a classroom admin deleting a user completely, just removing them from the class\n", + "lineno": 765, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " collection_field=\"memberships__collection\",\n", + "lineno": 766, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " )\n", + "lineno": 767, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " permissions = own | admin | role\n", + "lineno": 768, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 769, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " objects = FacilityUserModelManager()\n", + "lineno": 770, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 771, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " facility = models.ForeignKey(\"Facility\", on_delete=models.CASCADE)\n", + "lineno": 772, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 773, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " is_facility_user = True\n", + "lineno": 774, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 775, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " gender = models.CharField(\n", + "lineno": 776, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " max_length=16, choices=GENDER_CHOICES, default=\"\", blank=True\n", + "lineno": 777, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " )\n", + "lineno": 778, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 779, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " birth_year = models.CharField(\n", + "lineno": 780, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " max_length=16, default=\"\", validators=[validate_birth_year], blank=True\n", + "lineno": 781, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " )\n", + "lineno": 782, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 783, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " id_number = models.CharField(max_length=64, default=\"\", blank=True)\n", + "lineno": 784, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 785, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @classmethod\n", + "lineno": 786, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 793, + "line": " def deserialize(cls, dict_model):\n", + "lineno": 787, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 793, + "line": " # be defensive against blank passwords, set to `NOT_SPECIFIED` if blank\n", + "lineno": 788, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 793, + "line": " password = dict_model.get(\"password\", \"\") or \"\"\n", + "lineno": 789, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 793, + "line": " if len(password) == 0:\n", + "lineno": 790, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 793, + "line": " dict_model.update(password=NOT_SPECIFIED)\n", + "lineno": 791, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 793, + "line": "\n", + "lineno": 792, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 793, + "line": " return super(FacilityUser, cls).deserialize(dict_model)\n", + "lineno": 793, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 787 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 794, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 798, + "line": " def calculate_partition(self):\n", + "lineno": 795, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 795 + }, + { + "end_region_line": 798, + "line": " return \"{dataset_id}:user-ro:{user_id}\".format(\n", + "lineno": 796, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 795 + }, + { + "end_region_line": 798, + "line": " dataset_id=self.dataset_id, user_id=self.ID_PLACEHOLDER\n", + "lineno": 797, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 795 + }, + { + "end_region_line": 798, + "line": " )\n", + "lineno": 798, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 795 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 799, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 801, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 800, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 801, + "line": " return self.cached_related_dataset_lookup(\"facility\")\n", + "lineno": 801, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 802, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 809, + "line": " def get_permission(self, permission):\n", + "lineno": 803, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 809, + "line": " try:\n", + "lineno": 804, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 809, + "line": " return getattr(self.devicepermissions, \"is_superuser\") or getattr(\n", + "lineno": 805, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 809, + "line": " self.devicepermissions, permission\n", + "lineno": 806, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 809, + "line": " )\n", + "lineno": 807, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 809, + "line": " except ObjectDoesNotExist:\n", + "lineno": 808, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 809, + "line": " return False\n", + "lineno": 809, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 803 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 810, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 831, + "line": " def has_morango_certificate_scope_permission(\n", + "lineno": 811, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " self, scope_definition_id, scope_params\n", + "lineno": 812, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " ):\n", + "lineno": 813, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " if self.is_superuser:\n", + "lineno": 814, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " # superusers of a device always have permission to sync\n", + "lineno": 815, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return True\n", + "lineno": 816, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " if scope_params.get(\"dataset_id\") != self.dataset_id:\n", + "lineno": 817, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " # if the request isn't for the same facility as this user, abort\n", + "lineno": 818, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return False\n", + "lineno": 819, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " if scope_definition_id == ScopeDefinitions.FULL_FACILITY:\n", + "lineno": 820, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " # if request is for full-facility syncing, return True only if user is a Facility Admin\n", + "lineno": 821, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return self.has_role_for_collection(role_kinds.ADMIN, self.facility)\n", + "lineno": 822, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " elif scope_definition_id == ScopeDefinitions.SINGLE_USER:\n", + "lineno": 823, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " # for single-user syncing, return True if this user *is* target user, or is admin for target user\n", + "lineno": 824, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " target_user = FacilityUser.objects.get(id=scope_params.get(\"user_id\"))\n", + "lineno": 825, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " if self == target_user:\n", + "lineno": 826, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return True\n", + "lineno": 827, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " if self.has_role_for_user(role_kinds.ADMIN, target_user):\n", + "lineno": 828, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return True\n", + "lineno": 829, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return False\n", + "lineno": 830, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 831, + "line": " return False\n", + "lineno": 831, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 811 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 832, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @property\n", + "lineno": 833, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 852, + "line": " def session_data(self):\n", + "lineno": 834, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " roles = list(self.roles.values_list(\"kind\", flat=True).distinct())\n", + "lineno": 835, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": "\n", + "lineno": 836, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " if self.is_superuser:\n", + "lineno": 837, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " roles.insert(0, user_kinds.SUPERUSER)\n", + "lineno": 838, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": "\n", + "lineno": 839, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " if not roles:\n", + "lineno": 840, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " roles = [user_kinds.LEARNER]\n", + "lineno": 841, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": "\n", + "lineno": 842, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " return {\n", + "lineno": 843, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"username\": self.username,\n", + "lineno": 844, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"full_name\": self.full_name,\n", + "lineno": 845, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"user_id\": self.id,\n", + "lineno": 846, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"kind\": roles,\n", + "lineno": 847, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"can_manage_content\": self.can_manage_content,\n", + "lineno": 848, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"facility_id\": self.facility_id,\n", + "lineno": 849, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " # Is this user a member of a facility that has been fully imported?\n", + "lineno": 850, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " \"full_facility_import\": self.full_facility_import,\n", + "lineno": 851, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 852, + "line": " }\n", + "lineno": 852, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 834 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 853, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @cached_property\n", + "lineno": 854, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 865, + "line": " def full_facility_import(self):\n", + "lineno": 855, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " \"\"\"\n", + "lineno": 856, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " Returns True if this user is a member of a facility that has been fully imported.\n", + "lineno": 857, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " \"\"\"\n", + "lineno": 858, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " return (\n", + "lineno": 859, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " Certificate.objects.get(id=self.dataset_id)\n", + "lineno": 860, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " .get_descendants(include_self=True)\n", + "lineno": 861, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " .exclude(_private_key__isnull=True)\n", + "lineno": 862, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " .filter(scope_definition_id=ScopeDefinitions.FULL_FACILITY)\n", + "lineno": 863, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " .exists()\n", + "lineno": 864, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 865, + "line": " )\n", + "lineno": 865, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 866, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @cached_property\n", + "lineno": 867, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 871, + "line": " def full_facility_on_my_own_setup(self):\n", + "lineno": 868, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 868 + }, + { + "end_region_line": 871, + "line": " if self.dataset.extra_fields is not None:\n", + "lineno": 869, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 868 + }, + { + "end_region_line": 871, + "line": " return self.dataset.extra_fields.get(\"on_my_own_setup\", False)\n", + "lineno": 870, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 868 + }, + { + "end_region_line": 871, + "line": " return False\n", + "lineno": 871, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 868 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 872, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @property\n", + "lineno": 873, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 875, + "line": " def can_manage_content(self):\n", + "lineno": 874, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 874 + }, + { + "end_region_line": 875, + "line": " return self.get_permission(\"can_manage_content\")\n", + "lineno": 875, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 874 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 876, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @property\n", + "lineno": 877, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 879, + "line": " def is_superuser(self):\n", + "lineno": 878, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 878 + }, + { + "end_region_line": 879, + "line": " return self.get_permission(\"is_superuser\")\n", + "lineno": 879, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 878 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 880, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " @property\n", + "lineno": 881, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 883, + "line": " def is_staff(self):\n", + "lineno": 882, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 882 + }, + { + "end_region_line": 883, + "line": " return self.is_superuser\n", + "lineno": 883, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 882 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 884, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 890, + "line": " def is_member_of(self, coll):\n", + "lineno": 885, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 885 + }, + { + "end_region_line": 890, + "line": " if self.dataset_id != coll.dataset_id:\n", + "lineno": 886, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 885 + }, + { + "end_region_line": 890, + "line": " return False\n", + "lineno": 887, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 885 + }, + { + "end_region_line": 890, + "line": " if coll.kind == collection_kinds.FACILITY:\n", + "lineno": 888, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 885 + }, + { + "end_region_line": 890, + "line": " return self.facility_id == coll.id\n", + "lineno": 889, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 885 + }, + { + "end_region_line": 890, + "line": " return Membership.objects.filter(user=self, collection=coll).exists()\n", + "lineno": 890, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 885 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 891, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 910, + "line": " def has_role_for_user(self, kinds, user):\n", + "lineno": 892, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " kinds = validate_role_kinds(kinds)\n", + "lineno": 893, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " if self.is_superuser:\n", + "lineno": 894, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " # a superuser has admin role for all users on the device\n", + "lineno": 895, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " return role_kinds.ADMIN in kinds\n", + "lineno": 896, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " if not kinds:\n", + "lineno": 897, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " return False\n", + "lineno": 898, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " if not hasattr(user, \"dataset_id\") or self.dataset_id != user.dataset_id:\n", + "lineno": 899, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " return False\n", + "lineno": 900, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " return Role.objects.filter(\n", + "lineno": 901, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " Q(user=self, collection_id=user.facility_id, kind__in=kinds)\n", + "lineno": 902, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " | Q(\n", + "lineno": 903, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " user=self,\n", + "lineno": 904, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " collection_id__in=user.memberships.all().values_list(\n", + "lineno": 905, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " \"collection_id\", flat=True\n", + "lineno": 906, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " ),\n", + "lineno": 907, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " kind__in=kinds,\n", + "lineno": 908, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " )\n", + "lineno": 909, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 910, + "line": " ).exists()\n", + "lineno": 910, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 911, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 930, + "line": " def has_role_for_collection(self, kinds, coll):\n", + "lineno": 912, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " kinds = validate_role_kinds(kinds)\n", + "lineno": 913, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " if self.is_superuser:\n", + "lineno": 914, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " # a superuser has admin role for all collections on the device\n", + "lineno": 915, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " return role_kinds.ADMIN in kinds\n", + "lineno": 916, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " if not kinds:\n", + "lineno": 917, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " return False\n", + "lineno": 918, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " if self.dataset_id != coll.dataset_id:\n", + "lineno": 919, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " return False\n", + "lineno": 920, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " coll_id = coll.id\n", + "lineno": 921, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " if (\n", + "lineno": 922, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " coll.kind == collection_kinds.LEARNERGROUP\n", + "lineno": 923, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " or coll.kind == collection_kinds.ADHOCLEARNERSGROUP\n", + "lineno": 924, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " ):\n", + "lineno": 925, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " coll_id = coll.parent_id\n", + "lineno": 926, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " return Role.objects.filter(\n", + "lineno": 927, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " Q(user=self, collection_id=self.facility_id, kind__in=kinds)\n", + "lineno": 928, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " | Q(user=self, collection_id=coll_id, kind__in=kinds)\n", + "lineno": 929, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 930, + "line": " ).exists()\n", + "lineno": 930, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 912 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 931, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 938, + "line": " def can_create_instance(self, obj):\n", + "lineno": 932, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 938, + "line": " if self.is_superuser:\n", + "lineno": 933, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 938, + "line": " return True\n", + "lineno": 934, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 938, + "line": " # a FacilityUser's permissions are determined through the object's permission class\n", + "lineno": 935, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 938, + "line": " if _has_permissions_class(obj):\n", + "lineno": 936, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 938, + "line": " return obj.permissions.user_can_create_object(self, obj)\n", + "lineno": 937, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 938, + "line": " return False\n", + "lineno": 938, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 932 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 939, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 946, + "line": " def can_read(self, obj):\n", + "lineno": 940, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 946, + "line": " if self.is_superuser:\n", + "lineno": 941, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 946, + "line": " return True\n", + "lineno": 942, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 946, + "line": " # a FacilityUser's permissions are determined through the object's permission class\n", + "lineno": 943, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 946, + "line": " if _has_permissions_class(obj):\n", + "lineno": 944, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 946, + "line": " return obj.permissions.user_can_read_object(self, obj)\n", + "lineno": 945, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 946, + "line": " return False\n", + "lineno": 946, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 940 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 947, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 956, + "line": " def can_update(self, obj):\n", + "lineno": 948, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " # Superusers cannot update their own permissions, because they only thing they can do is make themselves\n", + "lineno": 949, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " # not super, we all saw what happened in Superman 2, no red kryptonite here!\n", + "lineno": 950, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " if self.is_superuser and obj != self.devicepermissions:\n", + "lineno": 951, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " return True\n", + "lineno": 952, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " # a FacilityUser's permissions are determined through the object's permission class\n", + "lineno": 953, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " if _has_permissions_class(obj):\n", + "lineno": 954, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " return obj.permissions.user_can_update_object(self, obj)\n", + "lineno": 955, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 956, + "line": " return False\n", + "lineno": 956, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 948 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 957, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 969, + "line": " def can_delete(self, obj):\n", + "lineno": 958, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " # Users cannot delete themselves\n", + "lineno": 959, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " if self == obj:\n", + "lineno": 960, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " return False\n", + "lineno": 961, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " # Superusers cannot update their own permissions, because they only thing they can do is make themselves\n", + "lineno": 962, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " # not super, we all saw what happened in Superman 2, no red kryptonite here!\n", + "lineno": 963, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " if self.is_superuser and obj != self.devicepermissions:\n", + "lineno": 964, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " return True\n", + "lineno": 965, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " # a FacilityUser's permissions are determined through the object's permission class\n", + "lineno": 966, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " if _has_permissions_class(obj):\n", + "lineno": 967, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " return obj.permissions.user_can_delete_object(self, obj)\n", + "lineno": 968, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 969, + "line": " return False\n", + "lineno": 969, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 958 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 970, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 978, + "line": " def filter_readable(self, queryset):\n", + "lineno": 971, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " if self.is_superuser:\n", + "lineno": 972, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " return queryset\n", + "lineno": 973, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " if _has_permissions_class(queryset.model):\n", + "lineno": 974, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " return queryset.filter(\n", + "lineno": 975, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " queryset.model.permissions.readable_by_user_filter(self)\n", + "lineno": 976, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " ).distinct()\n", + "lineno": 977, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 978, + "line": " return queryset.none()\n", + "lineno": 978, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 971 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 979, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 983, + "line": " def __str__(self):\n", + "lineno": 980, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 980 + }, + { + "end_region_line": 983, + "line": " return '\"{user}\"@\"{facility}\"'.format(\n", + "lineno": 981, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 980 + }, + { + "end_region_line": 983, + "line": " user=self.full_name or self.username, facility=self.facility\n", + "lineno": 982, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 980 + }, + { + "end_region_line": 983, + "line": " )\n", + "lineno": 983, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 980 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 984, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 988, + "line": " def has_perm(self, perm, obj=None):\n", + "lineno": 985, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 985 + }, + { + "end_region_line": 988, + "line": " # ensure the superuser has full access to the Django admin\n", + "lineno": 986, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 985 + }, + { + "end_region_line": 988, + "line": " if self.is_superuser:\n", + "lineno": 987, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 985 + }, + { + "end_region_line": 988, + "line": " return True\n", + "lineno": 988, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 985 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 989, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 993, + "line": " def has_perms(self, perm_list, obj=None):\n", + "lineno": 990, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 990 + }, + { + "end_region_line": 993, + "line": " # ensure the superuser has full access to the Django admin\n", + "lineno": 991, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 990 + }, + { + "end_region_line": 993, + "line": " if self.is_superuser:\n", + "lineno": 992, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 990 + }, + { + "end_region_line": 993, + "line": " return True\n", + "lineno": 993, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 990 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 994, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 746 + }, + { + "end_region_line": 998, + "line": " def has_module_perms(self, app_label):\n", + "lineno": 995, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 998, + "line": " # ensure the superuser has full access to the Django admin\n", + "lineno": 996, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 998, + "line": " if self.is_superuser:\n", + "lineno": 997, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 998, + "line": " return True\n", + "lineno": 998, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 999, + "line": "\n", + "lineno": 999, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 999 + }, + { + "end_region_line": 1000, + "line": "\n", + "lineno": 1000, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1001, + "line": "@python_2_unicode_compatible\n", + "lineno": 1001, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1001 + }, + { + "end_region_line": 1187, + "line": "class Collection(AbstractFacilityDataModel):\n", + "lineno": 1002, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " \"\"\"\n", + "lineno": 1003, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " ``Collections`` are hierarchical groups of ``FacilityUsers``, used for grouping users and making decisions about permissions.\n", + "lineno": 1004, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " ``FacilityUsers`` can have roles for one or more ``Collections``, by way of obtaining ``Roles`` associated with those ``Collections``.\n", + "lineno": 1005, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " ``Collections`` can belong to other ``Collections``, and user membership in a ``Collection`` is conferred through ``Memberships``.\n", + "lineno": 1006, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " ``Collections`` are subdivided into several pre-defined levels.\n", + "lineno": 1007, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " \"\"\"\n", + "lineno": 1008, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1009, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " # Morango syncing settings\n", + "lineno": 1010, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " morango_model_name = None\n", + "lineno": 1011, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1012, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " # Collection can be read by anybody from the facility; writing is only allowed by an admin for the collection.\n", + "lineno": 1013, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " # Furthermore, no FacilityUser can create or delete a Facility. Permission to create a collection is governed\n", + "lineno": 1014, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " # by roles in relation to the new collection's parent collection (see CollectionSpecificRoleBasedPermissions).\n", + "lineno": 1015, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " permissions = (\n", + "lineno": 1016, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " CollectionSpecificRoleBasedPermissions()\n", + "lineno": 1017, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " | AnyUserCanReadFacilities()\n", + "lineno": 1018, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " | CoachesCanManageGroupsForTheirClasses()\n", + "lineno": 1019, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " )\n", + "lineno": 1020, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1021, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " _KIND = None # Should be overridden in subclasses to specify what \"kind\" they are\n", + "lineno": 1022, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1023, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " name = models.CharField(max_length=100)\n", + "lineno": 1024, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " parent = models.ForeignKey(\n", + "lineno": 1025, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " \"self\", null=True, blank=True, related_name=\"children\", db_index=True\n", + "lineno": 1026, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " )\n", + "lineno": 1027, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " kind = models.CharField(max_length=20, choices=collection_kinds.choices)\n", + "lineno": 1028, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1029, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1033, + "line": " def __init__(self, *args, **kwargs):\n", + "lineno": 1030, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1030 + }, + { + "end_region_line": 1033, + "line": " if self._KIND:\n", + "lineno": 1031, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1030 + }, + { + "end_region_line": 1033, + "line": " kwargs[\"kind\"] = self._KIND\n", + "lineno": 1032, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1030 + }, + { + "end_region_line": 1033, + "line": " super(Collection, self).__init__(*args, **kwargs)\n", + "lineno": 1033, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1030 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1034, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1036, + "line": " def calculate_partition(self):\n", + "lineno": 1035, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1035 + }, + { + "end_region_line": 1036, + "line": " return \"{dataset_id}:allusers-ro\".format(dataset_id=self.dataset_id)\n", + "lineno": 1036, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1035 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1037, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1040, + "line": " def clean_fields(self, *args, **kwargs):\n", + "lineno": 1038, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1038 + }, + { + "end_region_line": 1040, + "line": " self._ensure_kind()\n", + "lineno": 1039, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1038 + }, + { + "end_region_line": 1040, + "line": " super(Collection, self).clean_fields(*args, **kwargs)\n", + "lineno": 1040, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1038 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1041, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1044, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1042, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1042 + }, + { + "end_region_line": 1044, + "line": " self._ensure_kind()\n", + "lineno": 1043, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1042 + }, + { + "end_region_line": 1044, + "line": " super(Collection, self).save(*args, **kwargs)\n", + "lineno": 1044, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1042 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1045, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1051, + "line": " def _ensure_kind(self):\n", + "lineno": 1046, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1046 + }, + { + "end_region_line": 1051, + "line": " \"\"\"\n", + "lineno": 1047, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1046 + }, + { + "end_region_line": 1051, + "line": " Make sure the \"kind\" is set correctly on the model, corresponding to the appropriate subclass of ``Collection``.\n", + "lineno": 1048, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1046 + }, + { + "end_region_line": 1051, + "line": " \"\"\"\n", + "lineno": 1049, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1046 + }, + { + "end_region_line": 1051, + "line": " if self._KIND:\n", + "lineno": 1050, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1046 + }, + { + "end_region_line": 1051, + "line": " self.kind = self._KIND\n", + "lineno": 1051, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1046 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1052, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1058, + "line": " def get_members(self):\n", + "lineno": 1053, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1053 + }, + { + "end_region_line": 1058, + "line": " if self.kind == collection_kinds.FACILITY:\n", + "lineno": 1054, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1053 + }, + { + "end_region_line": 1058, + "line": " return FacilityUser.objects.filter(\n", + "lineno": 1055, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1053 + }, + { + "end_region_line": 1058, + "line": " dataset=self.dataset\n", + "lineno": 1056, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1053 + }, + { + "end_region_line": 1058, + "line": " ) # FacilityUser is always a member of her own facility\n", + "lineno": 1057, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1053 + }, + { + "end_region_line": 1058, + "line": " return FacilityUser.objects.filter(memberships__collection=self)\n", + "lineno": 1058, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1053 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1059, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1066, + "line": " def get_coaches(self):\n", + "lineno": 1060, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1066, + "line": " \"\"\"\n", + "lineno": 1061, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1066, + "line": " Returns users who have the coach role for this immediate collection.\n", + "lineno": 1062, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1066, + "line": " \"\"\"\n", + "lineno": 1063, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1066, + "line": " return FacilityUser.objects.filter(dataset_id=self.dataset_id).filter(\n", + "lineno": 1064, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1066, + "line": " roles__kind=role_kinds.COACH, roles__collection=self\n", + "lineno": 1065, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1066, + "line": " )\n", + "lineno": 1066, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1060 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1067, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1074, + "line": " def get_admins(self):\n", + "lineno": 1068, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1074, + "line": " \"\"\"\n", + "lineno": 1069, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1074, + "line": " Returns users who have the admin role for this immediate collection.\n", + "lineno": 1070, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1074, + "line": " \"\"\"\n", + "lineno": 1071, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1074, + "line": " return FacilityUser.objects.filter(dataset_id=self.dataset_id).filter(\n", + "lineno": 1072, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1074, + "line": " roles__kind=role_kinds.ADMIN, roles__collection=self\n", + "lineno": 1073, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1074, + "line": " )\n", + "lineno": 1074, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1075, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1101, + "line": " def add_role(self, user, role_kind):\n", + "lineno": 1076, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " \"\"\"\n", + "lineno": 1077, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " Create a ``Role`` associating the provided user with this collection, with the specified kind of role.\n", + "lineno": 1078, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " If the Role object already exists, just return that, without changing anything.\n", + "lineno": 1079, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": "\n", + "lineno": 1080, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " :param user: The ``FacilityUser`` to associate with this ``Collection``.\n", + "lineno": 1081, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " :param role_kind: The kind of role to give the user with respect to this ``Collection``.\n", + "lineno": 1082, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " :return: The ``Role`` object (possibly new) that associates the user with the ``Collection``.\n", + "lineno": 1083, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " \"\"\"\n", + "lineno": 1084, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": "\n", + "lineno": 1085, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " # ensure the specified role kind is valid\n", + "lineno": 1086, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " if role_kind not in role_kinds_set:\n", + "lineno": 1087, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " raise InvalidRoleKind(\n", + "lineno": 1088, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " \"'{role_kind}' is not a valid role kind.\".format(role_kind=role_kind)\n", + "lineno": 1089, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " )\n", + "lineno": 1090, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": "\n", + "lineno": 1091, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " # ensure the provided user is a FacilityUser\n", + "lineno": 1092, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " if not isinstance(user, FacilityUser):\n", + "lineno": 1093, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " raise UserIsNotFacilityUser(\"You can only add roles for FacilityUsers.\")\n", + "lineno": 1094, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": "\n", + "lineno": 1095, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " # create the necessary role, if it doesn't already exist\n", + "lineno": 1096, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " role, created = Role.objects.get_or_create(\n", + "lineno": 1097, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " user=user, collection=self, kind=role_kind\n", + "lineno": 1098, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " )\n", + "lineno": 1099, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": "\n", + "lineno": 1100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1101, + "line": " return role\n", + "lineno": 1101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1076 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1130, + "line": " def remove_role(self, user, role_kind):\n", + "lineno": 1103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " \"\"\"\n", + "lineno": 1104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " Remove any ``Role`` objects associating the provided user with this ``Collection``, with the specified kind of role.\n", + "lineno": 1105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": "\n", + "lineno": 1106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " :param user: The ``FacilityUser`` to dissociate from this ``Collection`` (for the specific role kind).\n", + "lineno": 1107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " :param role_kind: The kind of role to remove from the user with respect to this ``Collection``.\n", + "lineno": 1108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " \"\"\"\n", + "lineno": 1109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": "\n", + "lineno": 1110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " # ensure the specified role kind is valid\n", + "lineno": 1111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " if role_kind not in role_kinds_set:\n", + "lineno": 1112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " raise InvalidRoleKind(\n", + "lineno": 1113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " \"'{role_kind}' is not a valid role kind.\".format(role_kind=role_kind)\n", + "lineno": 1114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " )\n", + "lineno": 1115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": "\n", + "lineno": 1116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " # ensure the provided user is a FacilityUser\n", + "lineno": 1117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " if not isinstance(user, FacilityUser):\n", + "lineno": 1118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " raise UserIsNotFacilityUser(\"You can only remove roles for FacilityUsers.\")\n", + "lineno": 1119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": "\n", + "lineno": 1120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " # make sure the user has the role to begin with\n", + "lineno": 1121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " try:\n", + "lineno": 1122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " role = Role.objects.get(user=user, collection=self, kind=role_kind)\n", + "lineno": 1123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " except Role.DoesNotExist:\n", + "lineno": 1124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " raise UserDoesNotHaveRoleError(\n", + "lineno": 1125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " \"User does not have this role for this collection.\"\n", + "lineno": 1126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " )\n", + "lineno": 1127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": "\n", + "lineno": 1128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " # delete the appropriate role, if it exists\n", + "lineno": 1129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1130, + "line": " role.delete()\n", + "lineno": 1130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1103 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1152, + "line": " def add_member(self, user):\n", + "lineno": 1132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " \"\"\"\n", + "lineno": 1133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " Create a ``Membership`` associating the provided user with this ``Collection``.\n", + "lineno": 1134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " If the ``Membership`` object already exists, just return that, without changing anything.\n", + "lineno": 1135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": "\n", + "lineno": 1136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " :param user: The ``FacilityUser`` to add to this ``Collection``.\n", + "lineno": 1137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " :return: The ``Membership`` object (possibly new) that associates the user with the ``Collection``.\n", + "lineno": 1138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " \"\"\"\n", + "lineno": 1139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": "\n", + "lineno": 1140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " # ensure the provided user is a FacilityUser\n", + "lineno": 1141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " if not isinstance(user, FacilityUser):\n", + "lineno": 1142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " raise UserIsNotFacilityUser(\n", + "lineno": 1143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " \"You can only add memberships for FacilityUsers.\"\n", + "lineno": 1144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " )\n", + "lineno": 1145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": "\n", + "lineno": 1146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " # create the necessary membership, if it doesn't already exist\n", + "lineno": 1147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " membership, created = Membership.objects.get_or_create(\n", + "lineno": 1148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " user=user, collection=self\n", + "lineno": 1149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " )\n", + "lineno": 1150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": "\n", + "lineno": 1151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1152, + "line": " return membership\n", + "lineno": 1152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1132 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1174, + "line": " def remove_member(self, user):\n", + "lineno": 1154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " \"\"\"\n", + "lineno": 1155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " Remove any ``Membership`` objects associating the provided user with this ``Collection``.\n", + "lineno": 1156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": "\n", + "lineno": 1157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " :param user: The ``FacilityUser`` to remove from this ``Collection``.\n", + "lineno": 1158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " :return: ``True`` if a ``Membership`` was removed, ``False`` if there was no matching ``Membership`` to remove.\n", + "lineno": 1159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " \"\"\"\n", + "lineno": 1160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": "\n", + "lineno": 1161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " # ensure the provided user is a FacilityUser\n", + "lineno": 1162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " if not isinstance(user, FacilityUser):\n", + "lineno": 1163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " raise UserIsNotFacilityUser(\n", + "lineno": 1164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " \"You can only remove memberships for FacilityUsers.\"\n", + "lineno": 1165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " )\n", + "lineno": 1166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": "\n", + "lineno": 1167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " if not user.is_member_of(self):\n", + "lineno": 1168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " raise UserIsNotMemberError(\n", + "lineno": 1169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " \"The user is not a member of the collection, and cannot be removed.\"\n", + "lineno": 1170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " )\n", + "lineno": 1171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": "\n", + "lineno": 1172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " # delete the appropriate membership\n", + "lineno": 1173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1174, + "line": " Membership.objects.filter(user=user, collection=self).delete()\n", + "lineno": 1174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1184, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 1176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " if self.dataset_id:\n", + "lineno": 1177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " return self.dataset_id\n", + "lineno": 1178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " if self.parent:\n", + "lineno": 1179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " # subcollections inherit dataset from root of their tree\n", + "lineno": 1180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " # (we can't call `get_root` directly on self, as it won't work if self hasn't yet been saved)\n", + "lineno": 1181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " return self.parent.dataset_id\n", + "lineno": 1182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " # the root node (i.e. Facility) must be explicitly tied to a dataset\n", + "lineno": 1183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1184, + "line": " return None\n", + "lineno": 1184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1176 + }, + { + "end_region_line": 1187, + "line": "\n", + "lineno": 1185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1002 + }, + { + "end_region_line": 1187, + "line": " def __str__(self):\n", + "lineno": 1186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1186 + }, + { + "end_region_line": 1187, + "line": " return '\"{name}\" ({kind})'.format(name=self.name, kind=self.kind)\n", + "lineno": 1187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1186 + }, + { + "end_region_line": 1188, + "line": "\n", + "lineno": 1188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1188 + }, + { + "end_region_line": 1189, + "line": "\n", + "lineno": 1189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1189 + }, + { + "end_region_line": 1190, + "line": "@python_2_unicode_compatible\n", + "lineno": 1190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1190 + }, + { + "end_region_line": 1277, + "line": "class Membership(AbstractFacilityDataModel):\n", + "lineno": 1191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " \"\"\"\n", + "lineno": 1192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " A ``FacilityUser`` can be marked as a member of a ``Collection`` through a ``Membership`` object. Being a member of a\n", + "lineno": 1193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " ``Collection`` also means being a member of all the ``Collections`` above that ``Collection`` in the tree (i.e. if you\n", + "lineno": 1194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " are a member of a ``LearnerGroup``, you are also a member of the ``Classroom`` that contains that ``LearnerGroup``,\n", + "lineno": 1195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " and of the ``Facility`` that contains that ``Classroom``).\n", + "lineno": 1196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " \"\"\"\n", + "lineno": 1197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " # Morango syncing settings\n", + "lineno": 1199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " morango_model_name = \"membership\"\n", + "lineno": 1200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " # users can read their own Memberships\n", + "lineno": 1202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " own = IsOwn(read_only=True)\n", + "lineno": 1203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " # Memberships can be read and written by admins, and read by coaches, for the member user\n", + "lineno": 1204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " role = RoleBasedPermissions(\n", + "lineno": 1205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " target_field=\"user\",\n", + "lineno": 1206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " can_be_created_by=(role_kinds.ADMIN,),\n", + "lineno": 1207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " can_be_read_by=(role_kinds.ADMIN, role_kinds.COACH),\n", + "lineno": 1208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " can_be_updated_by=(), # Membership objects shouldn't be updated; they should be deleted and recreated as needed\n", + "lineno": 1209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " can_be_deleted_by=(role_kinds.ADMIN,),\n", + "lineno": 1210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " )\n", + "lineno": 1211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " # Membership can be written by coaches under the coaches' group\n", + "lineno": 1212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " membership = CoachesCanManageMembershipsForTheirGroups()\n", + "lineno": 1213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " permissions = own | role | membership\n", + "lineno": 1214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " user = models.ForeignKey(\n", + "lineno": 1216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " \"FacilityUser\", related_name=\"memberships\", blank=False, null=False\n", + "lineno": 1217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " )\n", + "lineno": 1218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " # Note: \"It's recommended you use mptt.fields.TreeForeignKey wherever you have a foreign key to an MPTT model.\n", + "lineno": 1219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " # https://django-mptt.github.io/django-mptt/models.html#treeforeignkey-treeonetoonefield-treemanytomanyfield\n", + "lineno": 1220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " collection = TreeForeignKey(\"Collection\")\n", + "lineno": 1221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1224, + "line": " class Meta:\n", + "lineno": 1223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1223 + }, + { + "end_region_line": 1224, + "line": " unique_together = ((\"user\", \"collection\"),)\n", + "lineno": 1224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1223 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1229, + "line": " def calculate_partition(self):\n", + "lineno": 1226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1226 + }, + { + "end_region_line": 1229, + "line": " return \"{dataset_id}:user-ro:{user_id}\".format(\n", + "lineno": 1227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1226 + }, + { + "end_region_line": 1229, + "line": " dataset_id=self.dataset_id, user_id=self.user_id\n", + "lineno": 1228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1226 + }, + { + "end_region_line": 1229, + "line": " )\n", + "lineno": 1229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1226 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1232, + "line": " def calculate_source_id(self):\n", + "lineno": 1231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1231 + }, + { + "end_region_line": 1232, + "line": " return \"{collection_id}\".format(collection_id=self.collection_id)\n", + "lineno": 1232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1231 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1241, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 1234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " user_dataset_id = self.cached_related_dataset_lookup(\"user\")\n", + "lineno": 1235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " collection_dataset_id = self.cached_related_dataset_lookup(\"collection\")\n", + "lineno": 1236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " if user_dataset_id != collection_dataset_id:\n", + "lineno": 1237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " raise KolibriValidationError(\n", + "lineno": 1238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " \"Collection and user for a Membership object must be in same dataset.\"\n", + "lineno": 1239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " )\n", + "lineno": 1240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1241, + "line": " return user_dataset_id\n", + "lineno": 1241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1234 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1246, + "line": " def __str__(self):\n", + "lineno": 1243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1243 + }, + { + "end_region_line": 1246, + "line": " return \"{user}'s membership in {collection}\".format(\n", + "lineno": 1244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1243 + }, + { + "end_region_line": 1246, + "line": " user=self.user, collection=self.collection\n", + "lineno": 1245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1243 + }, + { + "end_region_line": 1246, + "line": " )\n", + "lineno": 1246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1243 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1265, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " if self.collection.kind == collection_kinds.FACILITY:\n", + "lineno": 1249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " raise InvalidMembershipError(\n", + "lineno": 1250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " \"Cannot create membership objects for facilities, as should already be a member by facility attribute\"\n", + "lineno": 1251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " )\n", + "lineno": 1252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " # Can skip checking that the user facility and the classroom are properly related,\n", + "lineno": 1253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " # as infer dataset will check they have the same dataset\n", + "lineno": 1254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " if (\n", + "lineno": 1255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " self.collection.kind == collection_kinds.LEARNERGROUP\n", + "lineno": 1256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " or self.collection.kind == collection_kinds.ADHOCLEARNERSGROUP\n", + "lineno": 1257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " ):\n", + "lineno": 1258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " if not Membership.objects.filter(\n", + "lineno": 1259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " collection_id=self.collection.parent_id, user=self.user\n", + "lineno": 1260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " ).exists():\n", + "lineno": 1261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " raise InvalidMembershipError(\n", + "lineno": 1262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " \"Cannot create membership for a user in a LearnerGroup or AdHoGroup when they are not a member of the parent Classrooom\"\n", + "lineno": 1263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " )\n", + "lineno": 1264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1265, + "line": " return super(Membership, self).save(*args, **kwargs)\n", + "lineno": 1265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1248 + }, + { + "end_region_line": 1277, + "line": "\n", + "lineno": 1266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1191 + }, + { + "end_region_line": 1277, + "line": " def delete(self, **kwargs):\n", + "lineno": 1267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " with transaction.atomic():\n", + "lineno": 1268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " # Wrap in a transaction so we don't accidentally wipe out child memberships\n", + "lineno": 1269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " # when deleting the parent membership fails\n", + "lineno": 1270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " if self.collection.kind == collection_kinds.CLASSROOM:\n", + "lineno": 1271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " # If membership is membership of classroom, should also cleanup all\n", + "lineno": 1272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " # memberships of child entities - Learner Groups and AdHoc Groups.\n", + "lineno": 1273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " Membership.objects.filter(\n", + "lineno": 1274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " user=self.user, collection__in=self.collection.children.all()\n", + "lineno": 1275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " ).delete()\n", + "lineno": 1276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1277, + "line": " return super(Membership, self).delete(**kwargs)\n", + "lineno": 1277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1267 + }, + { + "end_region_line": 1278, + "line": "\n", + "lineno": 1278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1278 + }, + { + "end_region_line": 1279, + "line": "\n", + "lineno": 1279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1279 + }, + { + "end_region_line": 1280, + "line": "@python_2_unicode_compatible\n", + "lineno": 1280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1280 + }, + { + "end_region_line": 1382, + "line": "class Role(AbstractFacilityDataModel):\n", + "lineno": 1281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " \"\"\"\n", + "lineno": 1282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " A ``FacilityUser`` can have a role for a particular ``Collection`` through a ``Role`` object, which also stores\n", + "lineno": 1283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " the \"kind\" of the ``Role`` (currently, one of \"admin\" or \"coach\"). Having a role for a ``Collection`` also\n", + "lineno": 1284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " implies having that role for all sub-collections of that ``Collection`` (i.e. all the ``Collections`` below it\n", + "lineno": 1285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " in the tree).\n", + "lineno": 1286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " \"\"\"\n", + "lineno": 1287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " # Morango syncing settings\n", + "lineno": 1289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " morango_model_name = \"role\"\n", + "lineno": 1290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " # users can read their own Roles\n", + "lineno": 1291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " own = IsOwn(read_only=True)\n", + "lineno": 1292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " # Memberships can be read and written by admins, and read by coaches, for the role collection\n", + "lineno": 1293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " role = RoleBasedPermissions(\n", + "lineno": 1294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " target_field=\"collection\",\n", + "lineno": 1295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " can_be_created_by=(role_kinds.ADMIN,),\n", + "lineno": 1296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " can_be_read_by=(role_kinds.ADMIN, role_kinds.COACH),\n", + "lineno": 1297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " can_be_updated_by=(), # Role objects shouldn't be updated; they should be deleted and recreated as needed\n", + "lineno": 1298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " can_be_deleted_by=(role_kinds.ADMIN,),\n", + "lineno": 1299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " )\n", + "lineno": 1300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " permissions = own | role\n", + "lineno": 1301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " user = models.ForeignKey(\n", + "lineno": 1303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " \"FacilityUser\",\n", + "lineno": 1304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " related_name=\"roles\",\n", + "lineno": 1305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " blank=False,\n", + "lineno": 1306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " null=False,\n", + "lineno": 1307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " on_delete=models.CASCADE,\n", + "lineno": 1308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " )\n", + "lineno": 1309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " # Note: \"It's recommended you use mptt.fields.TreeForeignKey wherever you have a foreign key to an MPTT model.\n", + "lineno": 1310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " # https://django-mptt.github.io/django-mptt/models.html#treeforeignkey-treeonetoonefield-treemanytomanyfield\n", + "lineno": 1311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " collection = TreeForeignKey(\"Collection\")\n", + "lineno": 1312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " kind = models.CharField(max_length=26, choices=role_kinds.choices)\n", + "lineno": 1313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1316, + "line": " class Meta:\n", + "lineno": 1315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1315 + }, + { + "end_region_line": 1316, + "line": " unique_together = ((\"user\", \"collection\", \"kind\"),)\n", + "lineno": 1316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1315 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1321, + "line": " def calculate_partition(self):\n", + "lineno": 1318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1318 + }, + { + "end_region_line": 1321, + "line": " return \"{dataset_id}:user-ro:{user_id}\".format(\n", + "lineno": 1319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1318 + }, + { + "end_region_line": 1321, + "line": " dataset_id=self.dataset_id, user_id=self.user_id\n", + "lineno": 1320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1318 + }, + { + "end_region_line": 1321, + "line": " )\n", + "lineno": 1321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1318 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1326, + "line": " def calculate_source_id(self):\n", + "lineno": 1323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1323 + }, + { + "end_region_line": 1326, + "line": " return \"{collection_id}:{kind}\".format(\n", + "lineno": 1324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1323 + }, + { + "end_region_line": 1326, + "line": " collection_id=self.collection_id, kind=self.kind\n", + "lineno": 1325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1323 + }, + { + "end_region_line": 1326, + "line": " )\n", + "lineno": 1326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1323 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1335, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 1328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " user_dataset_id = self.cached_related_dataset_lookup(\"user\")\n", + "lineno": 1329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " collection_dataset_id = self.cached_related_dataset_lookup(\"collection\")\n", + "lineno": 1330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " if user_dataset_id != collection_dataset_id:\n", + "lineno": 1331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " raise KolibriValidationError(\n", + "lineno": 1332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " \"The collection and user for a Role object must be in the same dataset.\"\n", + "lineno": 1333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " )\n", + "lineno": 1334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1335, + "line": " return user_dataset_id\n", + "lineno": 1335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1328 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1340, + "line": " def __str__(self):\n", + "lineno": 1337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1337 + }, + { + "end_region_line": 1340, + "line": " return \"{user}'s {kind} role for {collection}\".format(\n", + "lineno": 1338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1337 + }, + { + "end_region_line": 1340, + "line": " user=self.user, kind=self.kind, collection=self.collection\n", + "lineno": 1339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1337 + }, + { + "end_region_line": 1340, + "line": " )\n", + "lineno": 1340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1337 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1366, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " if (\n", + "lineno": 1343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " self.collection.kind == collection_kinds.LEARNERGROUP\n", + "lineno": 1344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " or self.collection.kind == collection_kinds.ADHOCLEARNERSGROUP\n", + "lineno": 1345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " ):\n", + "lineno": 1346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " # We do not currently support roles at the learner group or ad hoc group level\n", + "lineno": 1347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " raise InvalidRoleKind(\n", + "lineno": 1348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " \"Cannot assign roles to Learner Groups or AdHoc Groups\"\n", + "lineno": 1349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " )\n", + "lineno": 1350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " with transaction.atomic():\n", + "lineno": 1351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " if self.collection.kind == collection_kinds.CLASSROOM:\n", + "lineno": 1352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " # We only support coaches to be assigned at the classroom level currently\n", + "lineno": 1353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " if self.kind != role_kinds.COACH:\n", + "lineno": 1354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " raise InvalidRoleKind(\"Can only assign Coach roles to Classrooms\")\n", + "lineno": 1355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " if not Role.objects.filter(\n", + "lineno": 1356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " user=self.user, collection_id=self.collection.parent_id\n", + "lineno": 1357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " ).exists():\n", + "lineno": 1358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " # If the user doesn't already have a facility role, then create the assignable coach role for the user\n", + "lineno": 1359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " # at the facility level.\n", + "lineno": 1360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " Role.objects.create(\n", + "lineno": 1361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " user=self.user,\n", + "lineno": 1362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " collection_id=self.collection.parent_id,\n", + "lineno": 1363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " kind=role_kinds.ASSIGNABLE_COACH,\n", + "lineno": 1364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " )\n", + "lineno": 1365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1366, + "line": " return super(Role, self).save(*args, **kwargs)\n", + "lineno": 1366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1342 + }, + { + "end_region_line": 1382, + "line": "\n", + "lineno": 1367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1281 + }, + { + "end_region_line": 1382, + "line": " def delete(self, **kwargs):\n", + "lineno": 1368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " with transaction.atomic():\n", + "lineno": 1369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " # Wrap in a transaction so we don't accidentally wipe out role assignments\n", + "lineno": 1370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " # when the base delete fails.\n", + "lineno": 1371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " if (\n", + "lineno": 1372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " self.collection.kind == collection_kinds.FACILITY\n", + "lineno": 1373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " and self.kind == role_kinds.ASSIGNABLE_COACH\n", + "lineno": 1374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " ):\n", + "lineno": 1375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " # If deleting the ASSIGNABLE_COACH role, also delete any classroom coach roles\n", + "lineno": 1376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " Role.objects.filter(\n", + "lineno": 1377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " user=self.user,\n", + "lineno": 1378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " collection__in=self.collection.children.all(),\n", + "lineno": 1379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " kind=role_kinds.COACH,\n", + "lineno": 1380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " ).delete()\n", + "lineno": 1381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1382, + "line": " return super(Role, self).delete(**kwargs)\n", + "lineno": 1382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1368 + }, + { + "end_region_line": 1383, + "line": "\n", + "lineno": 1383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1383 + }, + { + "end_region_line": 1384, + "line": "\n", + "lineno": 1384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1384 + }, + { + "end_region_line": 1391, + "line": "class CollectionProxyManager(SyncableModelManager):\n", + "lineno": 1385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1385 + }, + { + "end_region_line": 1391, + "line": " def get_queryset(self):\n", + "lineno": 1386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1386 + }, + { + "end_region_line": 1391, + "line": " return (\n", + "lineno": 1387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1386 + }, + { + "end_region_line": 1391, + "line": " super(CollectionProxyManager, self)\n", + "lineno": 1388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1386 + }, + { + "end_region_line": 1391, + "line": " .get_queryset()\n", + "lineno": 1389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1386 + }, + { + "end_region_line": 1391, + "line": " .filter(kind=self.model._KIND)\n", + "lineno": 1390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1386 + }, + { + "end_region_line": 1391, + "line": " )\n", + "lineno": 1391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1386 + }, + { + "end_region_line": 1392, + "line": "\n", + "lineno": 1392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1392 + }, + { + "end_region_line": 1393, + "line": "\n", + "lineno": 1393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1393 + }, + { + "end_region_line": 1394, + "line": "@python_2_unicode_compatible\n", + "lineno": 1394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1394 + }, + { + "end_region_line": 1502, + "line": "class Facility(Collection):\n", + "lineno": 1395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " # don't require that we have a dataset set during validation, so we're not forced to generate one unnecessarily\n", + "lineno": 1397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " FIELDS_TO_EXCLUDE_FROM_VALIDATION = [\"dataset\"]\n", + "lineno": 1398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " morango_model_name = \"facility\"\n", + "lineno": 1400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " _KIND = collection_kinds.FACILITY\n", + "lineno": 1402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " objects = CollectionProxyManager()\n", + "lineno": 1404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1407, + "line": " class Meta:\n", + "lineno": 1406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1406 + }, + { + "end_region_line": 1407, + "line": " proxy = True\n", + "lineno": 1407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1406 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " @classmethod\n", + "lineno": 1409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1423, + "line": " def get_default_facility(cls):\n", + "lineno": 1410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " try:\n", + "lineno": 1411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " default_facility = get_device_setting(\"default_facility\")\n", + "lineno": 1412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " except DeviceNotProvisioned:\n", + "lineno": 1413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " # device has not been provisioned yet, so just return None in this case\n", + "lineno": 1414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " return None\n", + "lineno": 1415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " if not default_facility:\n", + "lineno": 1416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " # Legacy databases will not have this explicitly set.\n", + "lineno": 1417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " # Set this here to ensure future default facility queries are\n", + "lineno": 1418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " # predictable, even if incorrect.\n", + "lineno": 1419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " default_facility = cls.objects.all().first()\n", + "lineno": 1420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " if default_facility:\n", + "lineno": 1421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " set_device_settings(default_facility=default_facility)\n", + "lineno": 1422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1423, + "line": " return default_facility\n", + "lineno": 1423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1410 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1430, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1425 + }, + { + "end_region_line": 1430, + "line": " if self.parent:\n", + "lineno": 1426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1425 + }, + { + "end_region_line": 1430, + "line": " raise IntegrityError(\n", + "lineno": 1427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1425 + }, + { + "end_region_line": 1430, + "line": " \"Facility must be the root of a collection tree, and cannot have a parent.\"\n", + "lineno": 1428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1425 + }, + { + "end_region_line": 1430, + "line": " )\n", + "lineno": 1429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1425 + }, + { + "end_region_line": 1430, + "line": " super(Facility, self).save(*args, **kwargs)\n", + "lineno": 1430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1425 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1436, + "line": " def ensure_dataset(self, *args, **kwargs):\n", + "lineno": 1432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1432 + }, + { + "end_region_line": 1436, + "line": " # if we're just validating, we don't want to trigger creation of a FacilityDataset\n", + "lineno": 1433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1432 + }, + { + "end_region_line": 1436, + "line": " if kwargs.get(\"validating\"):\n", + "lineno": 1434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1432 + }, + { + "end_region_line": 1436, + "line": " return\n", + "lineno": 1435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1432 + }, + { + "end_region_line": 1436, + "line": " super(Facility, self).ensure_dataset(*args, **kwargs)\n", + "lineno": 1436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1432 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1442, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 1438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1438 + }, + { + "end_region_line": 1442, + "line": " # if we don't yet have a dataset, create a new one for this facility\n", + "lineno": 1439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1438 + }, + { + "end_region_line": 1442, + "line": " if not self.dataset_id:\n", + "lineno": 1440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1438 + }, + { + "end_region_line": 1442, + "line": " self.dataset = FacilityDataset.objects.create()\n", + "lineno": 1441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1438 + }, + { + "end_region_line": 1442, + "line": " return self.dataset_id\n", + "lineno": 1442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1438 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1450, + "line": " def get_classrooms(self):\n", + "lineno": 1444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1450, + "line": " \"\"\"\n", + "lineno": 1445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1450, + "line": " Returns a QuerySet of Classrooms under this Facility.\n", + "lineno": 1446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1450, + "line": "\n", + "lineno": 1447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1450, + "line": " :return: A Classroom QuerySet.\n", + "lineno": 1448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1450, + "line": " \"\"\"\n", + "lineno": 1449, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1450, + "line": " return Classroom.objects.filter(parent=self)\n", + "lineno": 1450, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1444 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1451, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1453, + "line": " def add_admin(self, user):\n", + "lineno": 1452, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1452 + }, + { + "end_region_line": 1453, + "line": " return self.add_role(user, role_kinds.ADMIN)\n", + "lineno": 1453, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1452 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1454, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1456, + "line": " def add_admins(self, users):\n", + "lineno": 1455, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1455 + }, + { + "end_region_line": 1456, + "line": " return [self.add_admin(user) for user in users]\n", + "lineno": 1456, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1455 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1457, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1459, + "line": " def remove_admin(self, user):\n", + "lineno": 1458, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1458 + }, + { + "end_region_line": 1459, + "line": " self.remove_role(user, role_kinds.ADMIN)\n", + "lineno": 1459, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1458 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1460, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1462, + "line": " def add_coach(self, user):\n", + "lineno": 1461, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1461 + }, + { + "end_region_line": 1462, + "line": " return self.add_role(user, role_kinds.COACH)\n", + "lineno": 1462, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1461 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1463, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1465, + "line": " def add_coaches(self, users):\n", + "lineno": 1464, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1464 + }, + { + "end_region_line": 1465, + "line": " return [self.add_coach(user) for user in users]\n", + "lineno": 1465, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1464 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1466, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1468, + "line": " def remove_coach(self, user):\n", + "lineno": 1467, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1467 + }, + { + "end_region_line": 1468, + "line": " self.remove_role(user, role_kinds.COACH)\n", + "lineno": 1468, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1467 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1469, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " @classmethod\n", + "lineno": 1470, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1485, + "line": " def get_or_create(cls, facility_name):\n", + "lineno": 1471, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " if cls.objects.count() == 0:\n", + "lineno": 1472, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " return cls.objects.create(name=facility_name)\n", + "lineno": 1473, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " else:\n", + "lineno": 1474, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " facility = None\n", + "lineno": 1475, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " try:\n", + "lineno": 1476, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " # We accept the parameter so we may as well try searching for it first\n", + "lineno": 1477, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " facility = cls.objects.get(name=facility_name)\n", + "lineno": 1478, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " except cls.DoesNotExist:\n", + "lineno": 1479, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " # or just fall back to returning the first Facility that exists\n", + "lineno": 1480, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " facility = cls.objects.get()\n", + "lineno": 1481, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " if facility_name:\n", + "lineno": 1482, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " facility.name = facility_name\n", + "lineno": 1483, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " facility.save()\n", + "lineno": 1484, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1485, + "line": " return facility\n", + "lineno": 1485, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1471 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1486, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " @property\n", + "lineno": 1487, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1492, + "line": " def on_my_own_setup(self):\n", + "lineno": 1488, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1488 + }, + { + "end_region_line": 1492, + "line": " if self.dataset.extra_fields is not None:\n", + "lineno": 1489, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1488 + }, + { + "end_region_line": 1492, + "line": " return self.dataset.extra_fields.get(\"on_my_own_setup\", False)\n", + "lineno": 1490, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1488 + }, + { + "end_region_line": 1492, + "line": " else:\n", + "lineno": 1491, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1488 + }, + { + "end_region_line": 1492, + "line": " return False\n", + "lineno": 1492, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1488 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1493, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " @on_my_own_setup.setter\n", + "lineno": 1494, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1499, + "line": " def on_my_own_setup(self, value):\n", + "lineno": 1495, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1495 + }, + { + "end_region_line": 1499, + "line": " if self.dataset.extra_fields is None:\n", + "lineno": 1496, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1495 + }, + { + "end_region_line": 1499, + "line": " self.dataset.extra_fields = {}\n", + "lineno": 1497, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1495 + }, + { + "end_region_line": 1499, + "line": " self.dataset.extra_fields[\"on_my_own_setup\"] = value\n", + "lineno": 1498, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1495 + }, + { + "end_region_line": 1499, + "line": " self.dataset.save()\n", + "lineno": 1499, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1495 + }, + { + "end_region_line": 1502, + "line": "\n", + "lineno": 1500, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1395 + }, + { + "end_region_line": 1502, + "line": " def __str__(self):\n", + "lineno": 1501, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1501 + }, + { + "end_region_line": 1502, + "line": " return self.name\n", + "lineno": 1502, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1501 + }, + { + "end_region_line": 1503, + "line": "\n", + "lineno": 1503, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1503 + }, + { + "end_region_line": 1504, + "line": "\n", + "lineno": 1504, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1504 + }, + { + "end_region_line": 1505, + "line": "@python_2_unicode_compatible\n", + "lineno": 1505, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1505 + }, + { + "end_region_line": 1573, + "line": "class Classroom(Collection):\n", + "lineno": 1506, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1507, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": " morango_model_name = \"classroom\"\n", + "lineno": 1508, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": " morango_model_dependencies = (Facility,)\n", + "lineno": 1509, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": " _KIND = collection_kinds.CLASSROOM\n", + "lineno": 1510, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1511, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": " objects = CollectionProxyManager()\n", + "lineno": 1512, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1513, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1515, + "line": " class Meta:\n", + "lineno": 1514, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1514 + }, + { + "end_region_line": 1515, + "line": " proxy = True\n", + "lineno": 1515, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1514 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1516, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1528, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1517, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " if not self.parent:\n", + "lineno": 1518, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " raise IntegrityError(\n", + "lineno": 1519, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " \"Classroom cannot be the root of a collection tree, and must have a parent.\"\n", + "lineno": 1520, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " )\n", + "lineno": 1521, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": "\n", + "lineno": 1522, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " if not self.parent.kind == collection_kinds.FACILITY:\n", + "lineno": 1523, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " raise InvalidCollectionHierarchy(\n", + "lineno": 1524, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " \"Classroom must be the child of a Facility\"\n", + "lineno": 1525, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " )\n", + "lineno": 1526, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": "\n", + "lineno": 1527, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1528, + "line": " super(Classroom, self).save(*args, **kwargs)\n", + "lineno": 1528, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1517 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1529, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1536, + "line": " def get_facility(self):\n", + "lineno": 1530, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1536, + "line": " \"\"\"\n", + "lineno": 1531, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1536, + "line": " Gets the ``Classroom``'s parent ``Facility``.\n", + "lineno": 1532, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1536, + "line": "\n", + "lineno": 1533, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1536, + "line": " :return: A ``Facility`` instance.\n", + "lineno": 1534, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1536, + "line": " \"\"\"\n", + "lineno": 1535, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1536, + "line": " return Facility.objects.get(id=self.parent_id)\n", + "lineno": 1536, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1530 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1537, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1544, + "line": " def get_learner_groups(self):\n", + "lineno": 1538, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1544, + "line": " \"\"\"\n", + "lineno": 1539, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1544, + "line": " Returns a ``QuerySet`` of ``LearnerGroups`` associated with this ``Classroom``.\n", + "lineno": 1540, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1544, + "line": "\n", + "lineno": 1541, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1544, + "line": " :return: A ``LearnerGroup`` ``QuerySet``.\n", + "lineno": 1542, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1544, + "line": " \"\"\"\n", + "lineno": 1543, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1544, + "line": " return LearnerGroup.objects.filter(parent=self)\n", + "lineno": 1544, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1538 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1545, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1552, + "line": " def get_individual_learners_group(self):\n", + "lineno": 1546, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1552, + "line": " \"\"\"\n", + "lineno": 1547, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1552, + "line": " Returns a ``QuerySet`` of ``AdHocGroups``.\n", + "lineno": 1548, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1552, + "line": "\n", + "lineno": 1549, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1552, + "line": " :return A ``AdHocGroup`` ``QuerySet``.\n", + "lineno": 1550, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1552, + "line": " \"\"\"\n", + "lineno": 1551, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1552, + "line": " return AdHocGroup.objects.filter(parent=self)\n", + "lineno": 1552, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1546 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1553, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1555, + "line": " def add_admin(self, user):\n", + "lineno": 1554, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1554 + }, + { + "end_region_line": 1555, + "line": " return self.add_role(user, role_kinds.ADMIN)\n", + "lineno": 1555, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1554 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1556, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1558, + "line": " def add_admins(self, users):\n", + "lineno": 1557, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1557 + }, + { + "end_region_line": 1558, + "line": " return [self.add_admin(user) for user in users]\n", + "lineno": 1558, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1557 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1559, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1561, + "line": " def remove_admin(self, user):\n", + "lineno": 1560, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1560 + }, + { + "end_region_line": 1561, + "line": " self.remove_role(user, role_kinds.ADMIN)\n", + "lineno": 1561, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1560 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1562, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1564, + "line": " def add_coach(self, user):\n", + "lineno": 1563, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1563 + }, + { + "end_region_line": 1564, + "line": " return self.add_role(user, role_kinds.COACH)\n", + "lineno": 1564, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1563 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1565, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1567, + "line": " def add_coaches(self, users):\n", + "lineno": 1566, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1566 + }, + { + "end_region_line": 1567, + "line": " return [self.add_coach(user) for user in users]\n", + "lineno": 1567, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1566 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1568, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1570, + "line": " def remove_coach(self, user):\n", + "lineno": 1569, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1569 + }, + { + "end_region_line": 1570, + "line": " self.remove_role(user, role_kinds.COACH)\n", + "lineno": 1570, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1569 + }, + { + "end_region_line": 1573, + "line": "\n", + "lineno": 1571, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1506 + }, + { + "end_region_line": 1573, + "line": " def __str__(self):\n", + "lineno": 1572, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1572 + }, + { + "end_region_line": 1573, + "line": " return self.name\n", + "lineno": 1573, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1572 + }, + { + "end_region_line": 1574, + "line": "\n", + "lineno": 1574, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1574 + }, + { + "end_region_line": 1575, + "line": "\n", + "lineno": 1575, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1575 + }, + { + "end_region_line": 1576, + "line": "@python_2_unicode_compatible\n", + "lineno": 1576, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1576 + }, + { + "end_region_line": 1617, + "line": "class LearnerGroup(Collection):\n", + "lineno": 1577, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1578, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": " morango_model_name = \"learnergroup\"\n", + "lineno": 1579, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": " morango_model_dependencies = (Classroom,)\n", + "lineno": 1580, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": " _KIND = collection_kinds.LEARNERGROUP\n", + "lineno": 1581, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1582, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": " objects = CollectionProxyManager()\n", + "lineno": 1583, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1584, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1586, + "line": " class Meta:\n", + "lineno": 1585, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1585 + }, + { + "end_region_line": 1586, + "line": " proxy = True\n", + "lineno": 1586, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1585 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1587, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1597, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1588, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " if not self.parent:\n", + "lineno": 1589, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " raise IntegrityError(\n", + "lineno": 1590, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " \"LearnerGroup cannot be the root of a collection tree, and must have a parent.\"\n", + "lineno": 1591, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " )\n", + "lineno": 1592, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " if not self.parent.kind == collection_kinds.CLASSROOM:\n", + "lineno": 1593, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " raise InvalidCollectionHierarchy(\n", + "lineno": 1594, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " \"LearnerGroup must be the child of a Classroom\"\n", + "lineno": 1595, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " )\n", + "lineno": 1596, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1597, + "line": " super(LearnerGroup, self).save(*args, **kwargs)\n", + "lineno": 1597, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1588 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1598, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1605, + "line": " def get_classroom(self):\n", + "lineno": 1599, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1605, + "line": " \"\"\"\n", + "lineno": 1600, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1605, + "line": " Gets the ``LearnerGroup``'s parent ``Classroom``.\n", + "lineno": 1601, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1605, + "line": "\n", + "lineno": 1602, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1605, + "line": " :return: A ``Classroom`` instance.\n", + "lineno": 1603, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1605, + "line": " \"\"\"\n", + "lineno": 1604, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1605, + "line": " return Classroom.objects.get(id=self.parent_id)\n", + "lineno": 1605, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1599 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1606, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1608, + "line": " def add_learner(self, user):\n", + "lineno": 1607, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1607 + }, + { + "end_region_line": 1608, + "line": " return self.add_member(user)\n", + "lineno": 1608, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1607 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1609, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1611, + "line": " def add_learners(self, users):\n", + "lineno": 1610, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1610 + }, + { + "end_region_line": 1611, + "line": " return [self.add_learner(user) for user in users]\n", + "lineno": 1611, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1610 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1612, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1614, + "line": " def remove_learner(self, user):\n", + "lineno": 1613, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1613 + }, + { + "end_region_line": 1614, + "line": " return self.remove_member(user)\n", + "lineno": 1614, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1613 + }, + { + "end_region_line": 1617, + "line": "\n", + "lineno": 1615, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1577 + }, + { + "end_region_line": 1617, + "line": " def __str__(self):\n", + "lineno": 1616, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1616 + }, + { + "end_region_line": 1617, + "line": " return self.name\n", + "lineno": 1617, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1616 + }, + { + "end_region_line": 1618, + "line": "\n", + "lineno": 1618, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1618 + }, + { + "end_region_line": 1619, + "line": "\n", + "lineno": 1619, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1619 + }, + { + "end_region_line": 1620, + "line": "@python_2_unicode_compatible\n", + "lineno": 1620, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1620 + }, + { + "end_region_line": 1677, + "line": "class AdHocGroup(Collection):\n", + "lineno": 1621, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " \"\"\"\n", + "lineno": 1622, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " An ``AdHocGroup`` is a collection kind that can be used in an assignment\n", + "lineno": 1623, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " to create a group that is specific to a single ``Lesson`` or ``Exam``.\n", + "lineno": 1624, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " \"\"\"\n", + "lineno": 1625, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1626, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " morango_model_name = \"adhoclearnersgroup\"\n", + "lineno": 1627, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " morango_model_dependencies = (Classroom,)\n", + "lineno": 1628, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " _KIND = collection_kinds.ADHOCLEARNERSGROUP\n", + "lineno": 1629, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1630, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " objects = CollectionProxyManager()\n", + "lineno": 1631, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1632, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1634, + "line": " class Meta:\n", + "lineno": 1633, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1633 + }, + { + "end_region_line": 1634, + "line": " proxy = True\n", + "lineno": 1634, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1633 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1635, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " @classmethod\n", + "lineno": 1636, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1643, + "line": " def deserialize(cls, dict_model):\n", + "lineno": 1637, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1643, + "line": " # be defensive against blank names, set to `Ad hoc` if blank\n", + "lineno": 1638, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1643, + "line": " name = dict_model.get(\"name\", \"\") or \"\"\n", + "lineno": 1639, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1643, + "line": " if len(name) == 0:\n", + "lineno": 1640, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1643, + "line": " dict_model.update(name=\"Ad hoc\")\n", + "lineno": 1641, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1643, + "line": "\n", + "lineno": 1642, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1643, + "line": " return super(AdHocGroup, cls).deserialize(dict_model)\n", + "lineno": 1643, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1637 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1644, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1654, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 1645, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " if not self.parent:\n", + "lineno": 1646, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " raise IntegrityError(\n", + "lineno": 1647, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " \"AdHocGroup cannot be the root of a collection tree, and must have a parent.\"\n", + "lineno": 1648, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " )\n", + "lineno": 1649, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " if not self.parent.kind == collection_kinds.CLASSROOM:\n", + "lineno": 1650, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " raise InvalidCollectionHierarchy(\n", + "lineno": 1651, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " \"AdHocGroup must be the child of a Classroom\"\n", + "lineno": 1652, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " )\n", + "lineno": 1653, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1654, + "line": " super(AdHocGroup, self).save(*args, **kwargs)\n", + "lineno": 1654, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1645 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1655, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1662, + "line": " def get_classroom(self):\n", + "lineno": 1656, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1662, + "line": " \"\"\"\n", + "lineno": 1657, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1662, + "line": " Gets the ``AdHocGroup``'s parent ``Classroom``.\n", + "lineno": 1658, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1662, + "line": "\n", + "lineno": 1659, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1662, + "line": " :return: A ``Classroom`` instance.\n", + "lineno": 1660, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1662, + "line": " \"\"\"\n", + "lineno": 1661, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1662, + "line": " return Classroom.objects.get(id=self.parent_id)\n", + "lineno": 1662, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1656 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1663, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1665, + "line": " def add_learner(self, user):\n", + "lineno": 1664, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1664 + }, + { + "end_region_line": 1665, + "line": " return self.add_member(user)\n", + "lineno": 1665, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1664 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1666, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1668, + "line": " def add_learners(self, users):\n", + "lineno": 1667, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1667 + }, + { + "end_region_line": 1668, + "line": " return [self.add_learner(user) for user in users]\n", + "lineno": 1668, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1667 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1669, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1671, + "line": " def get_learners(self):\n", + "lineno": 1670, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1670 + }, + { + "end_region_line": 1671, + "line": " return FacilityUser.objects.filter(memberships__collection=self)\n", + "lineno": 1671, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1670 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1672, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1674, + "line": " def remove_learner(self, user):\n", + "lineno": 1673, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1673 + }, + { + "end_region_line": 1674, + "line": " return self.remove_member(user)\n", + "lineno": 1674, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1673 + }, + { + "end_region_line": 1677, + "line": "\n", + "lineno": 1675, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1621 + }, + { + "end_region_line": 1677, + "line": " def __str__(self):\n", + "lineno": 1676, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1676 + }, + { + "end_region_line": 1677, + "line": " return self.name\n", + "lineno": 1677, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1676 + } + ], + "percent_cpu_time": 19.57042675115181 + }, + "/home/richard/github/kolibri/kolibri/core/content/utils/channel_import.py": { + "functions": [], + "imports": [ + "import io", + "import time", + "from itertools import islice", + "from six import string_types", + "from sqlalchemy import and_", + "from sqlalchemy import or_", + "from sqlalchemy.exc import OperationalError", + "from sqlalchemy.exc import SQLAlchemyError", + "from psycopg2.extras import execute_values" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import io\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "import json\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import logging\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import time\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "from itertools import islice\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "from django.apps import apps\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from django.db.models.fields.related import ForeignKey\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from six import string_types\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from sqlalchemy import and_\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from sqlalchemy import or_\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from sqlalchemy.dialects.postgresql import insert\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06193042467096776, + "n_cpu_percent_c": 0.5539020625787794, + "n_cpu_percent_python": 0.6705944085767684, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.011261718035403573, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from sqlalchemy.exc import OperationalError\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from sqlalchemy.exc import SQLAlchemyError\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from sqlalchemy.sql import select\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from sqlalchemy.sql import text\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "from .channels import read_channel_metadata_from_db_file\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from .paths import get_content_database_file_path\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from .sqlalchemybridge import Bridge\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from .sqlalchemybridge import ClassNotFoundError\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from kolibri.core.content.apps import KolibriContentConfig\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "from kolibri.core.content.constants.kind_to_learningactivity import kind_activity_map\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "from kolibri.core.content.constants.schema_versions import CONTENT_SCHEMA_VERSION\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from kolibri.core.content.constants.schema_versions import NO_VERSION\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from kolibri.core.content.constants.schema_versions import V020BETA1\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "from kolibri.core.content.constants.schema_versions import V040BETA3\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "from kolibri.core.content.constants.schema_versions import VERSION_1\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from kolibri.core.content.constants.schema_versions import VERSION_2\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from kolibri.core.content.constants.schema_versions import VERSION_3\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from kolibri.core.content.constants.schema_versions import VERSION_4\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from kolibri.core.content.constants.schema_versions import VERSION_5\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from kolibri.core.content.legacy_models import License\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "from kolibri.core.content.models import ChannelMetadata\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "from kolibri.core.content.models import ContentNode\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "from kolibri.core.content.models import ContentTag\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "from kolibri.core.content.models import File\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "from kolibri.core.content.models import Language\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "from kolibri.core.content.models import LocalFile\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 40, + "line": "from kolibri.core.content.utils.annotation import set_channel_ancestors\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 41, + "line": "from kolibri.core.content.utils.search import annotate_label_bitmasks\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "from kolibri.utils.time_utils import local_now\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 43, + "line": "\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 44, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 46, + "line": "CONTENT_APP_NAME = KolibriContentConfig.label\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 47, + "line": "\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": "merge_models = [ContentTag, LocalFile, Language]\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 48 + }, + { + "end_region_line": 49, + "line": "\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 49 + }, + { + "end_region_line": 50, + "line": "models_not_to_overwrite = [LocalFile]\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 52, + "line": "models_to_exclude = [\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 53, + "line": " apps.get_model(CONTENT_APP_NAME, \"ChannelMetadata_included_languages\"),\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": " apps.get_model(CONTENT_APP_NAME, \"ContentRequest\"),\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 54 + }, + { + "end_region_line": 55, + "line": " apps.get_model(CONTENT_APP_NAME, \"ContentDownloadRequest\"),\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 56, + "line": " apps.get_model(CONTENT_APP_NAME, \"ContentRemovalRequest\"),\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 57, + "line": "]\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 59, + "line": "\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": "SOURCE_DB_ALIAS = \"sourcedb\"\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 61, + "line": "\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 62, + "line": "\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 62 + }, + { + "end_region_line": 64, + "line": "class ImportCancelError(Exception):\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 64, + "line": " pass\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 65, + "line": "\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 65 + }, + { + "end_region_line": 66, + "line": "\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 75, + "line": "def column_not_auto_integer_pk(column):\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " \"\"\"\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " A check for whether a column is an auto incrementing integer used for a primary key.\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " \"\"\"\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " return not (\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " column.autoincrement == \"auto\"\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " and column.primary_key\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " and column.type.python_type is int\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 75, + "line": " )\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 76, + "line": "\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 76 + }, + { + "end_region_line": 77, + "line": "\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 85, + "line": "def convert_to_sqlite_value(python_value):\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " if isinstance(python_value, bool):\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " return \"1\" if python_value else \"0\"\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " if python_value is None:\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " return \"null\"\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " if isinstance(python_value, dict) or isinstance(python_value, list):\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " return '\"{}\"'.format(json.dumps(python_value))\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 85, + "line": " return repr(python_value)\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 86, + "line": "\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 87, + "line": "\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 97, + "line": "def clean_csv_value(value):\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " if value is None:\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " return r\"\\N\"\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " return (\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " str(value)\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " .replace(\"\\n\", \"\\\\n\")\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " .replace(\"\\r\", \"\\\\r\")\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " .replace(\"\\t\", \"\\\\t\")\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " .replace(\"\\\\.\", \".\")\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 97, + "line": " )\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 98, + "line": "\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 99, + "line": "\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 133, + "line": "class StringIteratorIO(io.TextIOBase):\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 103, + "line": " def __init__(self, iter):\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 103, + "line": " self._iter = iter\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 103, + "line": " self._buff = \"\"\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 133, + "line": "\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 106, + "line": " def readable(self):\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 106, + "line": " return True\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 133, + "line": "\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 116, + "line": " def _read1(self, n=None):\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 113, + "line": " while not self._buff:\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 109 + }, + { + "end_region_line": 113, + "line": " try:\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 109 + }, + { + "end_region_line": 113, + "line": " self._buff = next(self._iter)\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 109 + }, + { + "end_region_line": 113, + "line": " except StopIteration:\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 109 + }, + { + "end_region_line": 113, + "line": " break\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 109 + }, + { + "end_region_line": 116, + "line": " ret = self._buff[:n]\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 116, + "line": " self._buff = self._buff[len(ret) :]\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 116, + "line": " return ret\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 133, + "line": "\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 133, + "line": " def read(self, n=None):\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 133, + "line": " buff = []\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 133, + "line": " if n is None or n < 0:\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 125, + "line": " while True:\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 125, + "line": " m = self._read1()\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 125, + "line": " if not m:\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 125, + "line": " break\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 125, + "line": " buff.append(m)\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 133, + "line": " else:\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 132, + "line": " while n > 0:\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 132, + "line": " m = self._read1(n)\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 132, + "line": " if not m:\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 132, + "line": " break\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 132, + "line": " n -= len(m)\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 132, + "line": " buff.append(m)\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 133, + "line": " return \"\".join(buff)\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 134, + "line": "\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 134 + }, + { + "end_region_line": 135, + "line": "\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 136, + "line": "BATCH_SIZE = 1000\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 137 + }, + { + "end_region_line": 138, + "line": "\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 138 + }, + { + "end_region_line": 149, + "line": "def _get_dependencies(content_models):\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 149, + "line": " references = {}\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 148, + "line": " for model in content_models:\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 141 + }, + { + "end_region_line": 148, + "line": " meta = model._meta\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 141 + }, + { + "end_region_line": 148, + "line": " for f in meta.concrete_fields:\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 148, + "line": " if f.is_relation and f.many_to_one:\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 148, + "line": " if f.related_model not in references:\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 148, + "line": " references[f.related_model] = set()\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 148, + "line": " if f.related_model is not model:\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 148, + "line": " references[f.related_model].add(model)\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 149, + "line": " return references\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 150, + "line": "\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 150 + }, + { + "end_region_line": 151, + "line": "\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 180, + "line": "def topological_sort(content_models):\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " \"\"\"\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " Carries out a depth first search topological sort of content models to ensure we\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " import them in the correct order.\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " ref: https://en.wikipedia.org/wiki/Topological_sorting#Depth-first_search\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " \"\"\"\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " # First collect all non-self referential foreign key references\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " # in the set of models. We can't resolve the self-referentiality in a topological\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " # sort, so we simply ignore it.\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " references = _get_dependencies(content_models)\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": "\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " sorted_models = []\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " visiting = set()\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": "\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 175, + "line": " def visit(n):\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 175, + "line": " if n in sorted_models:\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 175, + "line": " return\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 175, + "line": " if n in visiting:\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 175, + "line": " raise ReferenceError(n)\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 175, + "line": " visiting.add(n)\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 173, + "line": " for m in references.get(n, set()):\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 173, + "line": " visit(m)\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 175, + "line": " visiting.remove(n)\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 175, + "line": " sorted_models.insert(0, n)\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 180, + "line": "\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 178, + "line": " for model in content_models:\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 177 + }, + { + "end_region_line": 178, + "line": " visit(model)\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 177 + }, + { + "end_region_line": 180, + "line": "\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 180, + "line": " return sorted_models\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 181, + "line": "\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 181 + }, + { + "end_region_line": 182, + "line": "\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 182 + }, + { + "end_region_line": 189, + "line": "def get_attribute(obj, key, default):\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 189, + "line": " \"\"\"\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 189, + "line": " Get an attribute from an object, regardless of whether it is a dict or an object\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 189, + "line": " \"\"\"\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 189, + "line": " if not isinstance(obj, dict):\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 189, + "line": " return getattr(obj, key, default)\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 189, + "line": " return obj.get(key, default)\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 190, + "line": "\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 190 + }, + { + "end_region_line": 191, + "line": "\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 997, + "line": "class ChannelImport(object):\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " \"\"\"\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " The ChannelImport class has two functions:\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " 1) it acts as the default import pattern for importing content databases that have naively compatible version\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " with the current version of Kolibri (i.e. no explicit mappings are required to bring data from the content db\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " into the main db, as there is a one to one correspondence in table names and column names within tables).\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " 2) It is also the base class for any more complex import that requires explicit schema mappings from one version\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " to another.\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " \"\"\"\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " _sqlite_db_attached = False\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # Specific instructions and exceptions for importing table from previous versions of Kolibri\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # Mappings can be:\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # 1) 'per_row', specifying mappings for an entire row, string can either be an attribute\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # or a method name on the import class\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # 2) 'per_table' mapping an entire table at a time. Only a method name can be used for 'per_table' mappings.\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " #\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # Both can be used simultaneously.\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " #\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " # See NoVersionChannelImport for an annotated example.\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " schema_mapping = {\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " ContentNode: {\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " \"per_row\": {\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " \"tree_id\": \"available_tree_id\",\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " \"available\": \"default_to_not_available\",\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " }\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " },\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " LocalFile: {\"per_row\": {\"available\": \"default_to_not_available\"}},\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " File: {\"per_row\": {\"available\": \"default_to_not_available\"}},\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " }\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 313, + "line": " def __init__(\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self,\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " channel_id,\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " source,\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " channel_version=None,\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " cancel_check=None,\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " destination=None,\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " partial=False,\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " ):\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.channel_id = channel_id\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.channel_version = channel_version\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.cancel_check = cancel_check\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.partial = partial\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " if isinstance(source, string_types):\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " if self.partial:\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " raise ValueError(\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " \"partial init argument to channel import class can only be used with dict imports\"\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " )\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Source is assumed to be a filepath to a SQLite database file\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.source_db_path = source\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.source_data = None\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.source = Bridge(sqlite_file_path=self.source_db_path)\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " elif isinstance(source, dict):\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # If a dict, should be a mapping from tablenames to lists of the rows of the table\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.source_db_path = None\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.source_data = source\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " schema_version = self.source_data[\"schema_version\"]\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Still set this so that we have a reference for table names from the source schema\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.source = Bridge(\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " sqlite_file_path=\":memory:\", schema_version=schema_version\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " )\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Explicitly set the destination schema version to our latest published schema version\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Not the current schema of the DB, as we do our mapping to the published versions.\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " if destination is None:\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # If no destination is set then we are targeting the default database\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.destination = Bridge(\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # It is a little counter intuitive that we are setting the schema version for the\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Django database *not* to be CURRENT_SCHEMA_VERSION, but we do so because\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # this allows for precise mapping from channel database tables and columns to\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # the Django database tables and columns. If we were to reference the current schema,\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # then channel imports would fail because we did not properly specify the other\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # fields that are annotated not imported.\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " schema_version=CONTENT_SCHEMA_VERSION,\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " app_name=CONTENT_APP_NAME,\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " )\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " else:\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # If a destination is set then pass that explicitly. At the moment, this only supports\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # importing to an arbitrary SQLite file path.\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.destination = Bridge(\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " sqlite_file_path=destination,\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " schema_version=CONTENT_SCHEMA_VERSION,\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " app_name=CONTENT_APP_NAME,\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " )\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " content_app = apps.get_app_config(CONTENT_APP_NAME)\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Use this rather than get_models, as it returns a list of all models, including those\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # generated by ManyToMany fields, whereas get_models only returns explicitly defined\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Model classes\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.content_models = list(content_app.get_models(include_auto_created=True))\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 299, + "line": " for blacklisted_model in models_to_exclude:\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 299, + "line": " if blacklisted_model in self.content_models:\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 299, + "line": " self.content_models.remove(blacklisted_model)\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.content_models = topological_sort(self.content_models)\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " if self.partial:\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.available_tree_id = (\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.get_destination_channel_tree_id() or self.find_unique_tree_id()\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " )\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " else:\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " # Get the next available tree_id in our database\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.available_tree_id = self.find_unique_tree_id()\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.default_to_not_available = False\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 313, + "line": " self.set_blank_text = \"\"\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 316, + "line": " def get_none(self, source_object):\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 316, + "line": " return None\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 324, + "line": " def get_destination_channel_tree_id(self):\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 324, + "line": " ContentNodeTable = self.destination.get_table(ContentNode)\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 324, + "line": " return self.destination.execute(\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 324, + "line": " select(ContentNodeTable.c.tree_id).where(\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 324, + "line": " ContentNodeTable.c.channel_id == self.channel_id\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 324, + "line": " )\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 324, + "line": " ).scalar()\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 335, + "line": " def get_all_destination_tree_ids(self):\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " ContentNodeTable = self.destination.get_table(ContentNode)\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " return sorted(\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " map(\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " lambda x: x[0],\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " self.destination.execute(\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " select(ContentNodeTable.c.tree_id).distinct()\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " ).fetchall(),\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " )\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 335, + "line": " )\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 368, + "line": " def find_unique_tree_id(self):\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " tree_ids = self.get_all_destination_tree_ids()\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " # If there are no pre-existing tree_ids just escape here and return 1\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " if not tree_ids:\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " return 1\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " if len(tree_ids) == 1:\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " if tree_ids[0] == 1:\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " return 2\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " return 1\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": "\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " # Do a binary search to find the lowest unused tree_id\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 366, + "line": " def find_hole_in_list(ids):\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " last = len(ids) - 1\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " middle = int(last / 2 + 1)\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # Check if the lower half of ids has a hole in it\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " if ids[middle] - ids[0] != middle:\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # List is only two ids, so hole must be between them\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " if middle == 1:\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " return ids[0] + 1\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " return find_hole_in_list(ids[:middle])\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # Otherwise check if there is a hole in the second half\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " if ids[last] - ids[middle] != last - middle:\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # Second half is only two ids so hole must be between them\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " if last - middle == 1:\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " return ids[middle] + 1\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " return find_hole_in_list(ids[middle:])\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # We should only reach this point in the first iteration, if there are no holes in either\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # the first or the last half of the list, therefore, we just take the max of the list plus 1\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " # Because the list is already sorted, we can just take the last value\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 366, + "line": " return ids[-1] + 1\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 368, + "line": "\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 368, + "line": " return find_hole_in_list(tree_ids)\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 408, + "line": " def generate_row_mapper(self, mappings=None):\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " # If no mappings, just use an empty object\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " if mappings is None:\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " # If no mappings have been specified, we can just skip direct to\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " # the default return value without doing any other checks\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " return self.base_row_mapper\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": "\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 405, + "line": " def mapper(record, column):\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " \"\"\"\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " A mapper function for the mappings object\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " \"\"\"\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " if column in mappings:\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # If the column name is in our defined mappings object,\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # then we need to try to find an alternate value\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " col_map = mappings.get(column) # Get the string value for the mapping\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " if hasattr(record, col_map):\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # Is this mapping value another column of the table?\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # If so, return it straight away\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " return getattr(record, col_map)\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " elif hasattr(self, col_map):\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # Otherwise, check to see if the import class has an attribute with this name\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # We assume that if it is, then it is either a literal value or a callable method\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # that accepts the row data as its only argument, and if so, return the result of\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # calling that method on the row data\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " mapping = getattr(self, col_map)\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " if callable(mapping):\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " return mapping(record)\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " return mapping\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " else:\n", + "lineno": 398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # If neither of these true, we specified a column mapping that is invalid\n", + "lineno": 399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " raise AttributeError(\n", + "lineno": 400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " \"Column mapping specified but no valid column name or method found\"\n", + "lineno": 401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " )\n", + "lineno": 402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " else:\n", + "lineno": 403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " # Otherwise, we can just get the value directly from the record\n", + "lineno": 404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 405, + "line": " return self.base_row_mapper(record, column)\n", + "lineno": 405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 408, + "line": "\n", + "lineno": 406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " # Return the mapper function for repeated use\n", + "lineno": 407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 408, + "line": " return mapper\n", + "lineno": 408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 416, + "line": " def base_table_mapper(self, SourceTable):\n", + "lineno": 410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 416, + "line": " # If SourceTable is none, then the source table does not exist in the DB\n", + "lineno": 411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 416, + "line": " if SourceTable is not None:\n", + "lineno": 412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 416, + "line": " if self.source_data is not None:\n", + "lineno": 413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 416, + "line": " return self.source_data.get(SourceTable.name, [])\n", + "lineno": 414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 416, + "line": " return self.source.execute(select(SourceTable)).fetchall()\n", + "lineno": 415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 416, + "line": " return []\n", + "lineno": 416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 420, + "line": " def base_row_mapper(self, record, column):\n", + "lineno": 418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 418 + }, + { + "end_region_line": 420, + "line": " # By default just return value directly from the record\n", + "lineno": 419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 418 + }, + { + "end_region_line": 420, + "line": " return get_attribute(record, column, None)\n", + "lineno": 420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 418 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 431, + "line": " def generate_table_mapper(self, table_map=None):\n", + "lineno": 422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " if table_map is None:\n", + "lineno": 423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " # If no table mapping specified, just use the default\n", + "lineno": 424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " return self.base_table_mapper\n", + "lineno": 425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " # Can only be a method on the Import object\n", + "lineno": 426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " if hasattr(self, table_map):\n", + "lineno": 427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " # If it is a method of the import class return that method for later use\n", + "lineno": 428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " return getattr(self, table_map)\n", + "lineno": 429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " # If we got here, there is an invalid table mapping\n", + "lineno": 430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 431, + "line": " raise AttributeError(\"Table mapping specified but no valid method found\")\n", + "lineno": 431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 443, + "line": " def get_dest_columns(self, DestinationTable):\n", + "lineno": 433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " # Filter out columns that are auto-incrementing integer primary keys, as these can cause collisions in the\n", + "lineno": 434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " # database. As all of our content database models use UUID primary keys, the only tables using these\n", + "lineno": 435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " # primary keys are intermediary tables for ManyToMany fields, and so nothing should be Foreign Keying\n", + "lineno": 436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " # to these ids.\n", + "lineno": 437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " # By filtering them here, the database should autoset an incremented id.\n", + "lineno": 438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " return [\n", + "lineno": 439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " (column_name, column_obj)\n", + "lineno": 440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " for column_name, column_obj in DestinationTable.columns.items()\n", + "lineno": 441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " if column_not_auto_integer_pk(column_obj)\n", + "lineno": 442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 443, + "line": " ]\n", + "lineno": 443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 448, + "line": " def _sqlite_method(self, model):\n", + "lineno": 445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 445 + }, + { + "end_region_line": 448, + "line": " if model in models_not_to_overwrite:\n", + "lineno": 446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 445 + }, + { + "end_region_line": 448, + "line": " return \"INSERT OR IGNORE\"\n", + "lineno": 447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 445 + }, + { + "end_region_line": 448, + "line": " return \"INSERT OR REPLACE\"\n", + "lineno": 448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 445 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 449, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 505, + "line": " def raw_attached_sqlite_table_import(self, model, table_mapper):\n", + "lineno": 450, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " self.check_cancelled()\n", + "lineno": 451, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": "\n", + "lineno": 452, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " source_table = self.source.get_table(model)\n", + "lineno": 453, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " DestinationTable = self.destination.get_table(model)\n", + "lineno": 454, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": "\n", + "lineno": 455, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " # check the schema map and set up any fields to map to constant values\n", + "lineno": 456, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " field_constants = {}\n", + "lineno": 457, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " schema_map = self.schema_mapping.get(model)\n", + "lineno": 458, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " if schema_map:\n", + "lineno": 459, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 474, + "line": " for field, mapper in schema_map.get(\"per_row\", {}).items():\n", + "lineno": 460, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " if hasattr(self, mapper):\n", + "lineno": 461, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " mapattr = getattr(self, mapper)\n", + "lineno": 462, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " if callable(mapattr):\n", + "lineno": 463, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " raise Exception(\n", + "lineno": 464, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " \"Can't use SQLITE table import method with callable column mappers\"\n", + "lineno": 465, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " )\n", + "lineno": 466, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " else:\n", + "lineno": 467, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " field_constants[field] = mapattr\n", + "lineno": 468, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " else:\n", + "lineno": 469, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " raise Exception(\n", + "lineno": 470, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " \"Can't use SQLITE table import method with mapping attribute '{}'\".format(\n", + "lineno": 471, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " mapper\n", + "lineno": 472, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " )\n", + "lineno": 473, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 474, + "line": " )\n", + "lineno": 474, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 505, + "line": "\n", + "lineno": 475, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " # enumerate the columns we're going to be writing into, excluding any we're meant to ignore\n", + "lineno": 476, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " dest_columns = [\n", + "lineno": 477, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " col.name for col_name, col in self.get_dest_columns(DestinationTable)\n", + "lineno": 478, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " ]\n", + "lineno": 479, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": "\n", + "lineno": 480, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " # build a list of values (constants or source table column references) to be inserted\n", + "lineno": 481, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " source_vals = []\n", + "lineno": 482, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 493, + "line": " for col in dest_columns:\n", + "lineno": 483, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " if col in field_constants:\n", + "lineno": 484, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " # insert the literal constant value, if we have one\n", + "lineno": 485, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " val = convert_to_sqlite_value(field_constants[col])\n", + "lineno": 486, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " elif col in source_table.columns.keys():\n", + "lineno": 487, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " # pull the value from the column on the source table if it exists\n", + "lineno": 488, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " val = \"source.\" + col\n", + "lineno": 489, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " else:\n", + "lineno": 490, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " # get the default value from the target model and use that, if the source table didn't have the field\n", + "lineno": 491, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " val = convert_to_sqlite_value(model._meta.get_field(col).get_default())\n", + "lineno": 492, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 493, + "line": " source_vals.append(val)\n", + "lineno": 493, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 483 + }, + { + "end_region_line": 505, + "line": "\n", + "lineno": 494, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " # wrap column names in parentheses in case names are sql keywords (ex. order)\n", + "lineno": 495, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " dest_columns = [\"'{}'\".format(col) for col in dest_columns]\n", + "lineno": 496, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " # build and execute a raw SQL query to transfer the data in one fell swoop\n", + "lineno": 497, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " query = \"{method} INTO {table} ({destcols}) SELECT {sourcevals} FROM {alias}.{table} AS source\".format(\n", + "lineno": 498, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " method=self._sqlite_method(model),\n", + "lineno": 499, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " table=DestinationTable.name,\n", + "lineno": 500, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " destcols=\", \".join(dest_columns),\n", + "lineno": 501, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " sourcevals=\", \".join(source_vals),\n", + "lineno": 502, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " alias=SOURCE_DB_ALIAS,\n", + "lineno": 503, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " )\n", + "lineno": 504, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 505, + "line": " self.destination.execute(text(query))\n", + "lineno": 505, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 450 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 506, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 550, + "line": " def sqlite_table_import(self, model, row_mapper, table_mapper):\n", + "lineno": 507, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " DestinationTable = self.destination.get_table(model)\n", + "lineno": 508, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": "\n", + "lineno": 509, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " # If the source class does not exist (i.e. this table is undefined in the source database)\n", + "lineno": 510, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " # this will raise an error so we set it to None. In this case, a custom table mapper must\n", + "lineno": 511, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " # have been set up to handle the fact that this is None.\n", + "lineno": 512, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " try:\n", + "lineno": 513, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " SourceTable = self.source.get_table(model)\n", + "lineno": 514, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " except ClassNotFoundError:\n", + "lineno": 515, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " SourceTable = None\n", + "lineno": 516, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": "\n", + "lineno": 517, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " columns = self.get_dest_columns(DestinationTable)\n", + "lineno": 518, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " self.check_cancelled()\n", + "lineno": 519, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": "\n", + "lineno": 520, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " # wrap column names in parentheses in case names are sql keywords (ex. order)\n", + "lineno": 521, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " dest_columns = [\"'{}'\".format(col.name) for _, col in columns]\n", + "lineno": 522, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " source_vals = [\":{}\".format(col.name) for _, col in columns]\n", + "lineno": 523, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " # build and execute a raw SQL query to transfer the data in one fell swoop\n", + "lineno": 524, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " query = \"{method} INTO {table} ({destcols}) VALUES ({sourcevals})\".format(\n", + "lineno": 525, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " method=self._sqlite_method(model),\n", + "lineno": 526, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " table=DestinationTable.name,\n", + "lineno": 527, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " destcols=\", \".join(dest_columns),\n", + "lineno": 528, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " sourcevals=\", \".join(source_vals),\n", + "lineno": 529, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " )\n", + "lineno": 530, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": "\n", + "lineno": 531, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 538, + "line": " def create_data_dict_with_default(record):\n", + "lineno": 532, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 538, + "line": " output = {}\n", + "lineno": 533, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 537, + "line": " for col_name, column_obj in columns:\n", + "lineno": 534, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 534 + }, + { + "end_region_line": 537, + "line": " default = self.get_and_set_column_default(column_obj)\n", + "lineno": 535, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 534 + }, + { + "end_region_line": 537, + "line": " value = row_mapper(record, column_obj.name)\n", + "lineno": 536, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 534 + }, + { + "end_region_line": 537, + "line": " output[col_name] = value if value is not None else default\n", + "lineno": 537, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 534 + }, + { + "end_region_line": 538, + "line": " return output\n", + "lineno": 538, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 550, + "line": "\n", + "lineno": 539, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " results = table_mapper(SourceTable)\n", + "lineno": 540, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": "\n", + "lineno": 541, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " i = 0\n", + "lineno": 542, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " results_slice = list(islice(results, i, i + BATCH_SIZE))\n", + "lineno": 543, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 507 + }, + { + "end_region_line": 550, + "line": " while results_slice:\n", + "lineno": 544, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 550, + "line": " self.destination.execute(\n", + "lineno": 545, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 550, + "line": " query,\n", + "lineno": 546, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 550, + "line": " [create_data_dict_with_default(record) for record in results_slice],\n", + "lineno": 547, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 550, + "line": " )\n", + "lineno": 548, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 550, + "line": " i += BATCH_SIZE\n", + "lineno": 549, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 550, + "line": " results_slice = list(islice(results, i, i + BATCH_SIZE))\n", + "lineno": 550, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 544 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 551, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 563, + "line": " def get_and_set_column_default(self, column_obj):\n", + "lineno": 552, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " if hasattr(column_obj, \"k_memoized_default\"):\n", + "lineno": 553, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " default = getattr(column_obj, \"k_memoized_default\")\n", + "lineno": 554, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " else:\n", + "lineno": 555, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " default = None\n", + "lineno": 556, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " if column_obj.default is not None:\n", + "lineno": 557, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " if column_obj.default.is_scalar:\n", + "lineno": 558, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " default = column_obj.default.arg\n", + "lineno": 559, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " elif column_obj.default.is_callable:\n", + "lineno": 560, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " default = column_obj.default.arg(None)\n", + "lineno": 561, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " setattr(column_obj, \"k_memoized_default\", default)\n", + "lineno": 562, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 563, + "line": " return default\n", + "lineno": 563, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 552 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 564, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 674, + "line": " def postgres_table_import(self, model, row_mapper, table_mapper):\n", + "lineno": 565, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " DestinationTable = self.destination.get_table(model)\n", + "lineno": 566, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 567, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # If the source class does not exist (i.e. this table is undefined in the source database)\n", + "lineno": 568, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # this will raise an error so we set it to None. In this case, a custom table mapper must\n", + "lineno": 569, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # have been set up to handle the fact that this is None.\n", + "lineno": 570, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " try:\n", + "lineno": 571, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " SourceTable = self.source.get_table(model)\n", + "lineno": 572, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " except ClassNotFoundError:\n", + "lineno": 573, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " SourceTable = None\n", + "lineno": 574, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 575, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " columns = self.get_dest_columns(DestinationTable)\n", + "lineno": 576, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " column_names = [column.name for col_name, column in columns]\n", + "lineno": 577, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # For partial updates we don't delete pre-existing data\n", + "lineno": 578, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # so as a precaution we treat all models as merge models\n", + "lineno": 579, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # which will allow us to merge into any existing data.\n", + "lineno": 580, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " merge = model in merge_models or self.partial\n", + "lineno": 581, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " do_not_overwrite = model in models_not_to_overwrite\n", + "lineno": 582, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " self.check_cancelled()\n", + "lineno": 583, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 584, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " raw_connection = self.destination.get_raw_connection()\n", + "lineno": 585, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " cursor = raw_connection.cursor()\n", + "lineno": 586, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 587, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " results = table_mapper(SourceTable)\n", + "lineno": 588, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 589, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 594, + "line": " def generate_data_with_default(record):\n", + "lineno": 590, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 590 + }, + { + "end_region_line": 594, + "line": " for col_name, column_obj in columns:\n", + "lineno": 591, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 591 + }, + { + "end_region_line": 594, + "line": " default = self.get_and_set_column_default(column_obj)\n", + "lineno": 592, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 591 + }, + { + "end_region_line": 594, + "line": " value = row_mapper(record, column_obj.name)\n", + "lineno": 593, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 591 + }, + { + "end_region_line": 594, + "line": " yield value if value is not None else default\n", + "lineno": 594, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 591 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 595, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " if not merge:\n", + "lineno": 596, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " separator = \"\\t\"\n", + "lineno": 597, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " data_string_iterator = StringIteratorIO(\n", + "lineno": 598, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " (\n", + "lineno": 599, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " separator.join(\n", + "lineno": 600, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " map(\n", + "lineno": 601, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " clean_csv_value,\n", + "lineno": 602, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " (datum for datum in generate_data_with_default(record)),\n", + "lineno": 603, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " )\n", + "lineno": 604, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " )\n", + "lineno": 605, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " + \"\\n\"\n", + "lineno": 606, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " for record in results\n", + "lineno": 607, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " )\n", + "lineno": 608, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " )\n", + "lineno": 609, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 610, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " cursor.copy_from(\n", + "lineno": 611, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " data_string_iterator,\n", + "lineno": 612, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " DestinationTable.name,\n", + "lineno": 613, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " sep=separator,\n", + "lineno": 614, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " columns=column_names,\n", + "lineno": 615, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " )\n", + "lineno": 616, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " else:\n", + "lineno": 617, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " # Import here so that we don't need to depend on psycopg2 for Kolibri in general.\n", + "lineno": 618, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " from psycopg2.extras import execute_values\n", + "lineno": 619, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 620, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " pk_name = DestinationTable.primary_key.columns.values()[0].name\n", + "lineno": 621, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": "\n", + "lineno": 622, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " i = 0\n", + "lineno": 623, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 674, + "line": " results_slice = list(islice(results, i, i + BATCH_SIZE))\n", + "lineno": 624, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 673, + "line": " while results_slice:\n", + "lineno": 625, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " insert_statement = insert(DestinationTable)\n", + "lineno": 626, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " if do_not_overwrite:\n", + "lineno": 627, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " self.destination.execute(\n", + "lineno": 628, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " insert_statement.values(\n", + "lineno": 629, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " [\n", + "lineno": 630, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " tuple(\n", + "lineno": 631, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " datum\n", + "lineno": 632, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " for datum in generate_data_with_default(record)\n", + "lineno": 633, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " )\n", + "lineno": 634, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " for record in results_slice\n", + "lineno": 635, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " ]\n", + "lineno": 636, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " ).on_conflict_do_nothing(\n", + "lineno": 637, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " constraint=DestinationTable.primary_key\n", + "lineno": 638, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " )\n", + "lineno": 639, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " )\n", + "lineno": 640, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " else:\n", + "lineno": 641, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " execute_values(\n", + "lineno": 642, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " cursor,\n", + "lineno": 643, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # We want to overwrite new values that we are inserting here, so we use an ON CONFLICT DO UPDATE here\n", + "lineno": 644, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # for the resulting SET statement, we generate a statement for each column we are trying to update\n", + "lineno": 645, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " \"INSERT INTO {table} AS SOURCE ({column_names}) VALUES %s ON CONFLICT ({pk_name}) DO UPDATE SET {set_statement};\".format(\n", + "lineno": 646, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " table=DestinationTable.name,\n", + "lineno": 647, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " column_names=\", \".join(column_names),\n", + "lineno": 648, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " pk_name=pk_name,\n", + "lineno": 649, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " set_statement=\", \".join(\n", + "lineno": 650, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " [\n", + "lineno": 651, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # Here we generate a value assignment for the set statement for\n", + "lineno": 652, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # each column, except for the primary key column, which we leave alone.\n", + "lineno": 653, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # We set the column value to COALESCE (take the first non-null value)\n", + "lineno": 654, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # from either the value we tried to set (EXCLUDED) or the original value\n", + "lineno": 655, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # (SOURCE) - this should have the effect of replacing columns for which\n", + "lineno": 656, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " # we have a value to insert, but ignoring columns that we do not.\n", + "lineno": 657, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " \"{column} = COALESCE(EXCLUDED.{column}, SOURCE.{column})\".format(\n", + "lineno": 658, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " column=column_name\n", + "lineno": 659, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " )\n", + "lineno": 660, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " for column_name in column_names\n", + "lineno": 661, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " if column_name != pk_name\n", + "lineno": 662, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " ]\n", + "lineno": 663, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " ),\n", + "lineno": 664, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " ),\n", + "lineno": 665, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " (\n", + "lineno": 666, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " tuple(datum for datum in generate_data_with_default(record))\n", + "lineno": 667, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " for record in results_slice\n", + "lineno": 668, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " ),\n", + "lineno": 669, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " template=\"(\" + \"%s, \" * (len(columns) - 1) + \"%s)\",\n", + "lineno": 670, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " )\n", + "lineno": 671, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " i += BATCH_SIZE\n", + "lineno": 672, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 673, + "line": " results_slice = list(islice(results, i, i + BATCH_SIZE))\n", + "lineno": 673, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 625 + }, + { + "end_region_line": 674, + "line": " cursor.close()\n", + "lineno": 674, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 675, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 704, + "line": " def can_use_sqlite_attach_method(self, model, table_mapper):\n", + "lineno": 676, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " if self.source_data is not None:\n", + "lineno": 677, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " return False\n", + "lineno": 678, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " # Check whether we can directly \"attach\" the sqlite database and do a one-line transfer\n", + "lineno": 679, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " # First check that we are not doing any mapping to construct the tables\n", + "lineno": 680, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " can_use_attach = table_mapper == self.base_table_mapper\n", + "lineno": 681, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " # Now check that the schema mapping doesn't contain anything that we don't know how to handle\n", + "lineno": 682, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " schema_map = self.schema_mapping.get(model)\n", + "lineno": 683, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " if schema_map:\n", + "lineno": 684, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " # Check that the only thing in the schema map is row mappings\n", + "lineno": 685, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " can_use_attach = (\n", + "lineno": 686, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " can_use_attach and len(set(schema_map.keys()) - set([\"per_row\"])) == 0\n", + "lineno": 687, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " )\n", + "lineno": 688, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " # Check that all the row mappings defined for this table are things we can handle\n", + "lineno": 689, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 695, + "line": " for row_mapping in set(schema_map.get(\"per_row\", {}).values()):\n", + "lineno": 690, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 695, + "line": " if hasattr(self, row_mapping):\n", + "lineno": 691, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 695, + "line": " if callable(getattr(self, row_mapping)):\n", + "lineno": 692, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 695, + "line": " return False\n", + "lineno": 693, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 695, + "line": " else:\n", + "lineno": 694, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 695, + "line": " return False\n", + "lineno": 695, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 704, + "line": " # Check that the engine being used is sqlite, and it's been attached\n", + "lineno": 696, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " can_use_attach = can_use_attach and self._sqlite_db_attached\n", + "lineno": 697, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " # Check that the table is in the source database (otherwise we can't use the ATTACH method)\n", + "lineno": 698, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " try:\n", + "lineno": 699, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " self.source.get_table(model)\n", + "lineno": 700, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " except ClassNotFoundError:\n", + "lineno": 701, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " return False\n", + "lineno": 702, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": "\n", + "lineno": 703, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 704, + "line": " return can_use_attach\n", + "lineno": 704, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 676 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 705, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 714, + "line": " def table_import(self, model, row_mapper, table_mapper):\n", + "lineno": 706, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " if self.destination.engine.name == \"postgresql\":\n", + "lineno": 707, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " result = self.postgres_table_import(model, row_mapper, table_mapper)\n", + "lineno": 708, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " elif self.can_use_sqlite_attach_method(model, table_mapper):\n", + "lineno": 709, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " result = self.raw_attached_sqlite_table_import(model, table_mapper)\n", + "lineno": 710, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " else:\n", + "lineno": 711, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " result = self.sqlite_table_import(model, row_mapper, table_mapper)\n", + "lineno": 712, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": "\n", + "lineno": 713, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 714, + "line": " return result\n", + "lineno": 714, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 706 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 715, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 778, + "line": " def check_and_delete_existing_channel(self):\n", + "lineno": 716, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ChannelMetadataTable = self.destination.get_table(ChannelMetadata)\n", + "lineno": 717, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " existing_channel = self.destination.execute(\n", + "lineno": 718, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " select(ChannelMetadataTable).where(\n", + "lineno": 719, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ChannelMetadataTable.c.id == self.channel_id\n", + "lineno": 720, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 721, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ).fetchone()\n", + "lineno": 722, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": "\n", + "lineno": 723, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " if existing_channel:\n", + "lineno": 724, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " if self.partial:\n", + "lineno": 725, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " if existing_channel[\"version\"] != self.channel_version:\n", + "lineno": 726, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " # We have previously loaded this channel, with a different version to the metadata we are trying to insert\n", + "lineno": 727, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " logger.warning(\n", + "lineno": 728, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " (\n", + "lineno": 729, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " \"Version {channel_version} of channel {channel_id} already exists in database; cancelling partial import of \"\n", + "lineno": 730, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " + \"version {new_channel_version}\"\n", + "lineno": 731, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ).format(\n", + "lineno": 732, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " channel_version=existing_channel[\"version\"],\n", + "lineno": 733, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " channel_id=self.channel_id,\n", + "lineno": 734, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " new_channel_version=self.channel_version,\n", + "lineno": 735, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 736, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 737, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " return False\n", + "lineno": 738, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " return True\n", + "lineno": 739, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " elif existing_channel[\"version\"] < self.channel_version:\n", + "lineno": 740, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " # We have an older version of this channel, so let's clean out the old stuff first\n", + "lineno": 741, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " logger.info(\n", + "lineno": 742, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " (\n", + "lineno": 743, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " \"Older version {channel_version} of channel {channel_id} already exists in database; removing old entries \"\n", + "lineno": 744, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " + \"so we can upgrade to version {new_channel_version}\"\n", + "lineno": 745, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ).format(\n", + "lineno": 746, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " channel_version=existing_channel[\"version\"],\n", + "lineno": 747, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " channel_id=self.channel_id,\n", + "lineno": 748, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " new_channel_version=self.channel_version,\n", + "lineno": 749, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 750, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 751, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": "\n", + "lineno": 752, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ContentNodeTable = self.destination.get_table(ContentNode)\n", + "lineno": 753, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": "\n", + "lineno": 754, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " root_node = self.destination.execute(\n", + "lineno": 755, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " select(ContentNodeTable).where(\n", + "lineno": 756, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ContentNodeTable.c.id == existing_channel[\"root_id\"]\n", + "lineno": 757, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 758, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ).fetchone()\n", + "lineno": 759, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": "\n", + "lineno": 760, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " self.delete_old_channel_many_to_many_fields(self.channel_id)\n", + "lineno": 761, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " if root_node:\n", + "lineno": 762, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " self.delete_old_channel_tree_data(root_node[\"tree_id\"])\n", + "lineno": 763, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " else:\n", + "lineno": 764, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " # We have previously loaded this channel, with the same or newer version, so our work here is done\n", + "lineno": 765, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " logger.warning(\n", + "lineno": 766, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " (\n", + "lineno": 767, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " \"Version {channel_version} of channel {channel_id} already exists in database; cancelling import of \"\n", + "lineno": 768, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " + \"version {new_channel_version}\"\n", + "lineno": 769, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " ).format(\n", + "lineno": 770, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " channel_version=existing_channel[\"version\"],\n", + "lineno": 771, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " channel_id=self.channel_id,\n", + "lineno": 772, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " new_channel_version=self.channel_version,\n", + "lineno": 773, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 774, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " )\n", + "lineno": 775, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " return False\n", + "lineno": 776, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": "\n", + "lineno": 777, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 778, + "line": " return True\n", + "lineno": 778, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 716 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 779, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 784, + "line": " def _can_use_optimized_pre_deletion(self, model):\n", + "lineno": 780, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 780 + }, + { + "end_region_line": 784, + "line": " # check whether we can skip fully deleting this model, if we'll be using REPLACE on it anyway\n", + "lineno": 781, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 780 + }, + { + "end_region_line": 784, + "line": " mapping = self.schema_mapping.get(model, {})\n", + "lineno": 782, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 780 + }, + { + "end_region_line": 784, + "line": " table_mapper = self.generate_table_mapper(mapping.get(\"per_table\"))\n", + "lineno": 783, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 780 + }, + { + "end_region_line": 784, + "line": " return self.can_use_sqlite_attach_method(model, table_mapper)\n", + "lineno": 784, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 780 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 785, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 798, + "line": " def delete_old_channel_many_to_many_fields(self, channel_id):\n", + "lineno": 786, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 786 + }, + { + "end_region_line": 798, + "line": " # Delete all many to many through entries for the channel\n", + "lineno": 787, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 786 + }, + { + "end_region_line": 798, + "line": " # being deleted to prevent referential integrity errors in Postgresql.\n", + "lineno": 788, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 786 + }, + { + "end_region_line": 798, + "line": " for m2m in ChannelMetadata._meta.local_many_to_many:\n", + "lineno": 789, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " model = getattr(ChannelMetadata, m2m.attname).through\n", + "lineno": 790, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " # Our destination's schema is set to the latest import schema version\n", + "lineno": 791, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " # NOT the schema that precisely reflects the tables of the Django database.\n", + "lineno": 792, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " # So here we reference the actual current schema for the Django database\n", + "lineno": 793, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " # because annotated channel metadata many to many fields are not included\n", + "lineno": 794, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " # in channel databases, and their information is annotated after import.\n", + "lineno": 795, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " m2mtable = self.destination.get_current_table(model)\n", + "lineno": 796, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " query = m2mtable.delete().where(m2mtable.c.channelmetadata_id == channel_id)\n", + "lineno": 797, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 798, + "line": " self.destination.execute(query)\n", + "lineno": 798, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 789 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 799, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 855, + "line": " def delete_old_channel_tree_data(self, old_tree_id):\n", + "lineno": 800, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " # we want to delete all content models, but not \"merge models\" (ones that might also be used by other channels), and ContentNode last\n", + "lineno": 801, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " models_to_delete = [\n", + "lineno": 802, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " model\n", + "lineno": 803, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " for model in self.content_models\n", + "lineno": 804, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " if model is not ContentNode and model not in merge_models\n", + "lineno": 805, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " ] + [ContentNode]\n", + "lineno": 806, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": "\n", + "lineno": 807, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " ContentNodeTable = self.destination.get_table(ContentNode)\n", + "lineno": 808, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": "\n", + "lineno": 809, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 800 + }, + { + "end_region_line": 855, + "line": " for model in models_to_delete:\n", + "lineno": 810, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " table = self.destination.get_table(model)\n", + "lineno": 811, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " query = table.delete()\n", + "lineno": 812, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": "\n", + "lineno": 813, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # we do a few things differently if it's the ContentNode model, vs a model related to ContentNode\n", + "lineno": 814, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " if model is ContentNode:\n", + "lineno": 815, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " query = query.where(ContentNodeTable.c.tree_id == old_tree_id)\n", + "lineno": 816, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " else:\n", + "lineno": 817, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " columns = [\n", + "lineno": 818, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " f.column\n", + "lineno": 819, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " for f in model._meta.fields\n", + "lineno": 820, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " if isinstance(f, ForeignKey) and f.target_field.model is ContentNode\n", + "lineno": 821, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " ]\n", + "lineno": 822, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # run a query for each field this model has that foreignkeys onto ContentNode\n", + "lineno": 823, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " or_queries = [\n", + "lineno": 824, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " getattr(table.c, column).in_(\n", + "lineno": 825, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " select(ContentNodeTable.c.id).where(\n", + "lineno": 826, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " ContentNodeTable.c.tree_id == old_tree_id\n", + "lineno": 827, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " )\n", + "lineno": 828, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " )\n", + "lineno": 829, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " for column in columns\n", + "lineno": 830, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " ]\n", + "lineno": 831, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " query = query.where(or_(*or_queries))\n", + "lineno": 832, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": "\n", + "lineno": 833, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " pk_column = table.primary_key.columns.values()[0]\n", + "lineno": 834, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # if the external database is attached and there are no incompatible schema mappings for a table,\n", + "lineno": 835, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # and it doesn't use an autoincrementing integer pk\n", + "lineno": 836, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # we can skip deleting records that will be REPLACED during import, which helps efficiency\n", + "lineno": 837, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " if self._can_use_optimized_pre_deletion(\n", + "lineno": 838, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " model\n", + "lineno": 839, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " ) and column_not_auto_integer_pk(pk_column):\n", + "lineno": 840, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " pk_name = pk_column.name\n", + "lineno": 841, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " query = query.where(\n", + "lineno": 842, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " text(\n", + "lineno": 843, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " \"NOT {pk_name} IN (SELECT id FROM {alias}.{table})\".format(\n", + "lineno": 844, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " pk_name=pk_name,\n", + "lineno": 845, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " table=table.name,\n", + "lineno": 846, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " alias=SOURCE_DB_ALIAS,\n", + "lineno": 847, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " )\n", + "lineno": 848, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " )\n", + "lineno": 849, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " )\n", + "lineno": 850, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # check that the import operation hasn't since been cancelled\n", + "lineno": 851, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " self.check_cancelled()\n", + "lineno": 852, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": "\n", + "lineno": 853, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " # execute the actual query\n", + "lineno": 854, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 855, + "line": " self.destination.execute(query)\n", + "lineno": 855, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 810 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 856, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 863, + "line": " def check_cancelled(self):\n", + "lineno": 857, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 863, + "line": " if callable(self.cancel_check):\n", + "lineno": 858, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 863, + "line": " check = self.cancel_check()\n", + "lineno": 859, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 863, + "line": " else:\n", + "lineno": 860, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 863, + "line": " check = bool(self.cancel_check)\n", + "lineno": 861, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 863, + "line": " if check:\n", + "lineno": 862, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 863, + "line": " raise ImportCancelError(\"Channel import was cancelled\")\n", + "lineno": 863, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 857 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 864, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 879, + "line": " def try_attaching_sqlite_database(self):\n", + "lineno": 865, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " # attach the external content database to our primary database so we can directly transfer records en masse\n", + "lineno": 866, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " if self.destination.engine.name == \"sqlite\" and self.source_data is None:\n", + "lineno": 867, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " try:\n", + "lineno": 868, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " self.destination.execute(\n", + "lineno": 869, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " text(\n", + "lineno": 870, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " \"ATTACH '{path}' AS '{alias}'\".format(\n", + "lineno": 871, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " path=self.source_db_path, alias=SOURCE_DB_ALIAS\n", + "lineno": 872, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " )\n", + "lineno": 873, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " )\n", + "lineno": 874, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " )\n", + "lineno": 875, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " self._sqlite_db_attached = True\n", + "lineno": 876, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " except OperationalError:\n", + "lineno": 877, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " # silently ignore if we were unable to attach the database; we'll just fall back to other methods\n", + "lineno": 878, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 879, + "line": " pass\n", + "lineno": 879, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 865 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 880, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 891, + "line": " def try_detaching_sqlite_database(self):\n", + "lineno": 881, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " # detach the content database from the primary database so we don't get errors trying to attach it again later\n", + "lineno": 882, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " if self.destination.engine.name == \"sqlite\" and self.source_data is None:\n", + "lineno": 883, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " try:\n", + "lineno": 884, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " self.destination.execute(\n", + "lineno": 885, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " text(\"DETACH '{alias}'\".format(alias=SOURCE_DB_ALIAS))\n", + "lineno": 886, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " )\n", + "lineno": 887, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " except OperationalError:\n", + "lineno": 888, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " # silently ignore if the database was already detached, as then we're good to go\n", + "lineno": 889, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " pass\n", + "lineno": 890, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 891, + "line": " self._sqlite_db_attached = False\n", + "lineno": 891, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 881 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 892, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 904, + "line": " def execute_post_operations(self, model, post_operations):\n", + "lineno": 893, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 904, + "line": " DestinationTable = self.destination.get_table(model)\n", + "lineno": 894, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 904, + "line": " for operation in post_operations:\n", + "lineno": 895, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " try:\n", + "lineno": 896, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " handler = getattr(self, operation)\n", + "lineno": 897, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " handler(DestinationTable)\n", + "lineno": 898, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " except AttributeError:\n", + "lineno": 899, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " raise AttributeError(\n", + "lineno": 900, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " \"Post operation {} specified for model {} but none found on class\".format(\n", + "lineno": 901, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " operation, model\n", + "lineno": 902, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " )\n", + "lineno": 903, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 904, + "line": " )\n", + "lineno": 904, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 895 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 905, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 949, + "line": " def import_channel_data(self):\n", + "lineno": 906, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " logger.debug(\"Beginning channel metadata import\")\n", + "lineno": 907, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " start = time.time()\n", + "lineno": 908, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " import_ran = False\n", + "lineno": 909, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": "\n", + "lineno": 910, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " try:\n", + "lineno": 911, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " self.try_attaching_sqlite_database()\n", + "lineno": 912, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " transaction = self.destination.connection.begin()\n", + "lineno": 913, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " if self.check_and_delete_existing_channel():\n", + "lineno": 914, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 927, + "line": " for model in self.content_models:\n", + "lineno": 915, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " model_start = time.time()\n", + "lineno": 916, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " mapping = self.schema_mapping.get(model, {})\n", + "lineno": 917, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " row_mapper = self.generate_row_mapper(mapping.get(\"per_row\"))\n", + "lineno": 918, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " table_mapper = self.generate_table_mapper(mapping.get(\"per_table\"))\n", + "lineno": 919, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " logger.info(\"Importing {model} data\".format(model=model.__name__))\n", + "lineno": 920, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " self.table_import(model, row_mapper, table_mapper)\n", + "lineno": 921, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " self.execute_post_operations(model, mapping.get(\"post\", []))\n", + "lineno": 922, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " logger.debug(\n", + "lineno": 923, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " \"{model} data imported after {seconds} seconds\".format(\n", + "lineno": 924, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " model=model.__name__, seconds=time.time() - model_start\n", + "lineno": 925, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " )\n", + "lineno": 926, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 927, + "line": " )\n", + "lineno": 927, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 915 + }, + { + "end_region_line": 949, + "line": " import_ran = True\n", + "lineno": 928, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": "\n", + "lineno": 929, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " transaction.commit()\n", + "lineno": 930, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " self.try_detaching_sqlite_database()\n", + "lineno": 931, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " except (SQLAlchemyError, ImportCancelError) as e:\n", + "lineno": 932, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " # Rollback the transaction if any error occurs during the transaction\n", + "lineno": 933, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " transaction.rollback()\n", + "lineno": 934, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " self.try_detaching_sqlite_database()\n", + "lineno": 935, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " logger.debug(\n", + "lineno": 936, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " \"Channel metadata import did not complete after {} seconds\".format(\n", + "lineno": 937, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " time.time() - start\n", + "lineno": 938, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " )\n", + "lineno": 939, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " )\n", + "lineno": 940, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " # Reraise the exception to prevent other errors occuring due to the non-completion\n", + "lineno": 941, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " raise e\n", + "lineno": 942, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " logger.debug(\n", + "lineno": 943, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " \"Channel metadata import successfully completed in {} seconds\".format(\n", + "lineno": 944, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " time.time() - start\n", + "lineno": 945, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " )\n", + "lineno": 946, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " )\n", + "lineno": 947, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": "\n", + "lineno": 948, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 949, + "line": " return import_ran\n", + "lineno": 949, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 950, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 993, + "line": " def run_and_annotate(self):\n", + "lineno": 951, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " try:\n", + "lineno": 952, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " old_order = ChannelMetadata.objects.values(\"order\").get(id=self.channel_id)[\n", + "lineno": 953, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " \"order\"\n", + "lineno": 954, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " ]\n", + "lineno": 955, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " except ChannelMetadata.DoesNotExist:\n", + "lineno": 956, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " old_order = None\n", + "lineno": 957, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": "\n", + "lineno": 958, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " import_ran = self.import_channel_data()\n", + "lineno": 959, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": "\n", + "lineno": 960, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " self.end()\n", + "lineno": 961, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": "\n", + "lineno": 962, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " if import_ran:\n", + "lineno": 963, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " channel = ChannelMetadata.objects.get(id=self.channel_id)\n", + "lineno": 964, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " if old_order is not None:\n", + "lineno": 965, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " channel.order = old_order\n", + "lineno": 966, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " channel.last_updated = local_now()\n", + "lineno": 967, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " channel.partial = self.partial\n", + "lineno": 968, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " try:\n", + "lineno": 969, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " if not channel.root:\n", + "lineno": 970, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " raise AssertionError\n", + "lineno": 971, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " except ContentNode.DoesNotExist:\n", + "lineno": 972, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " node_id = channel.root_id\n", + "lineno": 973, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " ContentNode.objects.create(\n", + "lineno": 974, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " id=node_id,\n", + "lineno": 975, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " title=channel.name,\n", + "lineno": 976, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " content_id=node_id,\n", + "lineno": 977, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " channel_id=self.channel_id,\n", + "lineno": 978, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " )\n", + "lineno": 979, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": "\n", + "lineno": 980, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " annotate_label_bitmasks(\n", + "lineno": 981, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " ContentNode.objects.filter(channel_id=self.channel_id)\n", + "lineno": 982, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " )\n", + "lineno": 983, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " set_channel_ancestors(self.channel_id)\n", + "lineno": 984, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": "\n", + "lineno": 985, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " channel.save()\n", + "lineno": 986, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": "\n", + "lineno": 987, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " logger.info(\n", + "lineno": 988, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " \"Channel {} successfully imported into the database\".format(\n", + "lineno": 989, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " self.channel_id\n", + "lineno": 990, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " )\n", + "lineno": 991, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " )\n", + "lineno": 992, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 993, + "line": " return import_ran\n", + "lineno": 993, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 951 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 994, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 997, + "line": " def end(self):\n", + "lineno": 995, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 997, + "line": " self.source.end()\n", + "lineno": 996, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 997, + "line": " self.destination.end()\n", + "lineno": 997, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 998, + "line": "\n", + "lineno": 998, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 999, + "line": "\n", + "lineno": 999, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 999 + }, + { + "end_region_line": 1028, + "line": "class NoLearningActivitiesChannelImport(ChannelImport):\n", + "lineno": 1000, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " \"\"\"\n", + "lineno": 1001, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " Class defining the schema mapping for importing content databases before learning activities metadata was added\n", + "lineno": 1002, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " \"\"\"\n", + "lineno": 1003, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": "\n", + "lineno": 1004, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " schema_mapping = {\n", + "lineno": 1005, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " ContentNode: {\n", + "lineno": 1006, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " \"per_row\": {\n", + "lineno": 1007, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " \"tree_id\": \"available_tree_id\",\n", + "lineno": 1008, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " \"available\": \"default_to_not_available\",\n", + "lineno": 1009, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " },\n", + "lineno": 1010, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " \"post\": [\"set_learning_activities_from_kind\"],\n", + "lineno": 1011, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " },\n", + "lineno": 1012, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " LocalFile: {\"per_row\": {\"available\": \"default_to_not_available\"}},\n", + "lineno": 1013, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " File: {\"per_row\": {\"available\": \"default_to_not_available\"}},\n", + "lineno": 1014, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " }\n", + "lineno": 1015, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": "\n", + "lineno": 1016, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1000 + }, + { + "end_region_line": 1028, + "line": " def set_learning_activities_from_kind(self, ContentNodeTable):\n", + "lineno": 1017, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1017 + }, + { + "end_region_line": 1028, + "line": " for kind, la in kind_activity_map.items():\n", + "lineno": 1018, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " self.destination.execute(\n", + "lineno": 1019, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " ContentNodeTable.update()\n", + "lineno": 1020, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " .where(\n", + "lineno": 1021, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " and_(\n", + "lineno": 1022, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " ContentNodeTable.c.kind == kind,\n", + "lineno": 1023, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " ContentNodeTable.c.channel_id == self.channel_id,\n", + "lineno": 1024, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " )\n", + "lineno": 1025, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " )\n", + "lineno": 1026, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " .values(learning_activities=la)\n", + "lineno": 1027, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1028, + "line": " )\n", + "lineno": 1028, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1018 + }, + { + "end_region_line": 1029, + "line": "\n", + "lineno": 1029, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1029 + }, + { + "end_region_line": 1030, + "line": "\n", + "lineno": 1030, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1030 + }, + { + "end_region_line": 1133, + "line": "class NoVersionChannelImport(NoLearningActivitiesChannelImport):\n", + "lineno": 1031, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"\"\"\n", + "lineno": 1032, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " Class defining the schema mapping for importing old content databases (i.e. ones produced before the\n", + "lineno": 1033, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " ChannelImport machinery was implemented). The schema mapping below defines how to bring in information\n", + "lineno": 1034, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " from the old version of the Kolibri content databases into the database for the current version of Kolibri.\n", + "lineno": 1035, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"\"\"\n", + "lineno": 1036, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1037, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " schema_mapping = {\n", + "lineno": 1038, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # The top level keys of the schema_mapping are the Content Django Models that are to be imported\n", + "lineno": 1039, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " ContentNode: {\n", + "lineno": 1040, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # For each model's mappings, can defined both 'per_row' and 'per_table' mappings.\n", + "lineno": 1041, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"per_row\": {\n", + "lineno": 1042, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # The key of the 'per_row' mapping object is the table column that we are populating\n", + "lineno": 1043, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # In the case of Django ForeignKey fields, this will be the field name plus _id\n", + "lineno": 1044, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # The value is a string that refers either to a table column on the source data\n", + "lineno": 1045, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # or a method on this import class that will be passed the row data and should return\n", + "lineno": 1046, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # the mapped value.\n", + "lineno": 1047, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"channel_id\": \"infer_channel_id_from_source\",\n", + "lineno": 1048, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"tree_id\": \"available_tree_id\",\n", + "lineno": 1049, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"available\": \"get_none\",\n", + "lineno": 1050, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"license_name\": \"get_license_name\",\n", + "lineno": 1051, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"license_description\": \"get_license_description\",\n", + "lineno": 1052, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " },\n", + "lineno": 1053, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"post\": [\"set_learning_activities_from_kind\"],\n", + "lineno": 1054, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " },\n", + "lineno": 1055, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " File: {\n", + "lineno": 1056, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"per_row\": {\n", + "lineno": 1057, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # If we didn't want to encode the Django _id convention here, we could reference the field\n", + "lineno": 1058, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # attname in order to set it.\n", + "lineno": 1059, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " File._meta.get_field(\"local_file\").attname: \"checksum\",\n", + "lineno": 1060, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"available\": \"get_none\",\n", + "lineno": 1061, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " }\n", + "lineno": 1062, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " },\n", + "lineno": 1063, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " LocalFile: {\n", + "lineno": 1064, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # Because LocalFile does not exist on old content databases, we have to override the table that\n", + "lineno": 1065, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # we are drawing from, the generate_local_file_from_file method overrides the default mapping behaviour\n", + "lineno": 1066, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # and instead reads from the File model table\n", + "lineno": 1067, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # It then uses per_row mappers to get the require model fields from the File model to populate our\n", + "lineno": 1068, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " # new LocalFiles.\n", + "lineno": 1069, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"per_table\": \"generate_local_file_from_file\",\n", + "lineno": 1070, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"per_row\": {\n", + "lineno": 1071, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"id\": \"checksum\",\n", + "lineno": 1072, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"extension\": \"extension\",\n", + "lineno": 1073, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"file_size\": \"file_size\",\n", + "lineno": 1074, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"available\": \"get_none\",\n", + "lineno": 1075, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " },\n", + "lineno": 1076, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " },\n", + "lineno": 1077, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " ChannelMetadata: {\n", + "lineno": 1078, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"per_row\": {\n", + "lineno": 1079, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " ChannelMetadata._meta.get_field(\n", + "lineno": 1080, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"min_schema_version\"\n", + "lineno": 1081, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " ).attname: \"set_version_to_no_version\",\n", + "lineno": 1082, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " \"root_id\": \"root_pk\",\n", + "lineno": 1083, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " }\n", + "lineno": 1084, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " },\n", + "lineno": 1085, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " }\n", + "lineno": 1086, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1087, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " licenses = {}\n", + "lineno": 1088, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1089, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1091, + "line": " def infer_channel_id_from_source(self, source_object):\n", + "lineno": 1090, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1090 + }, + { + "end_region_line": 1091, + "line": " return self.channel_id\n", + "lineno": 1091, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1090 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1092, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1104, + "line": " def generate_local_file_from_file(self, SourceTable):\n", + "lineno": 1093, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1093 + }, + { + "end_region_line": 1104, + "line": " SourceTable = self.source.get_table(File)\n", + "lineno": 1094, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1093 + }, + { + "end_region_line": 1104, + "line": " checksum_record = set()\n", + "lineno": 1095, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1093 + }, + { + "end_region_line": 1104, + "line": " # LocalFile objects are unique per checksum\n", + "lineno": 1096, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1093 + }, + { + "end_region_line": 1104, + "line": " # Note, this would fail for a data import but for now we will not be supporting\n", + "lineno": 1097, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1093 + }, + { + "end_region_line": 1104, + "line": " # data imports from schema versions this old.\n", + "lineno": 1098, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1093 + }, + { + "end_region_line": 1104, + "line": " for record in self.source.execute(select(SourceTable)).fetchall():\n", + "lineno": 1099, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1099 + }, + { + "end_region_line": 1104, + "line": " if record.checksum not in checksum_record:\n", + "lineno": 1100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1099 + }, + { + "end_region_line": 1104, + "line": " checksum_record.add(record.checksum)\n", + "lineno": 1101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1099 + }, + { + "end_region_line": 1104, + "line": " yield record\n", + "lineno": 1102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1099 + }, + { + "end_region_line": 1104, + "line": " else:\n", + "lineno": 1103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1099 + }, + { + "end_region_line": 1104, + "line": " continue\n", + "lineno": 1104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1099 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1107, + "line": " def set_version_to_no_version(self, source_object):\n", + "lineno": 1106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1106 + }, + { + "end_region_line": 1107, + "line": " return NO_VERSION\n", + "lineno": 1107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1106 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1121, + "line": " def get_license(self, SourceTable):\n", + "lineno": 1109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " license_id = SourceTable.license_id\n", + "lineno": 1110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " if not license_id:\n", + "lineno": 1111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " return None\n", + "lineno": 1112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " if license_id not in self.licenses:\n", + "lineno": 1113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " LicenseTable = self.source.get_table(License)\n", + "lineno": 1114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " # Note, this would fail for a data import but for now we will not be supporting\n", + "lineno": 1115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " # data imports from schema versions this old.\n", + "lineno": 1116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " license = self.source.execute(\n", + "lineno": 1117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " select(LicenseTable).where(LicenseTable.c.id == license_id)\n", + "lineno": 1118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " ).fetchone()\n", + "lineno": 1119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " self.licenses[license_id] = license\n", + "lineno": 1120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1121, + "line": " return self.licenses[license_id]\n", + "lineno": 1121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1109 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1127, + "line": " def get_license_name(self, SourceTable):\n", + "lineno": 1123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1127, + "line": " license = self.get_license(SourceTable)\n", + "lineno": 1124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1127, + "line": " if not license:\n", + "lineno": 1125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1127, + "line": " return None\n", + "lineno": 1126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1127, + "line": " return license.license_name\n", + "lineno": 1127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1133, + "line": "\n", + "lineno": 1128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1031 + }, + { + "end_region_line": 1133, + "line": " def get_license_description(self, SourceTable):\n", + "lineno": 1129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1129 + }, + { + "end_region_line": 1133, + "line": " license = self.get_license(SourceTable)\n", + "lineno": 1130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1129 + }, + { + "end_region_line": 1133, + "line": " if not license:\n", + "lineno": 1131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1129 + }, + { + "end_region_line": 1133, + "line": " return None\n", + "lineno": 1132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1129 + }, + { + "end_region_line": 1133, + "line": " return license.license_description\n", + "lineno": 1133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1129 + }, + { + "end_region_line": 1134, + "line": "\n", + "lineno": 1134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1134 + }, + { + "end_region_line": 1135, + "line": "\n", + "lineno": 1135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1135 + }, + { + "end_region_line": 1136, + "line": "# Dict that maps from schema versions to ChannelImport classes\n", + "lineno": 1136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1136 + }, + { + "end_region_line": 1137, + "line": "# The channel import class defines all the operations required in order to import data\n", + "lineno": 1137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1137 + }, + { + "end_region_line": 1138, + "line": "# from a content database with this content schema, into the schema being used by this\n", + "lineno": 1138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1138 + }, + { + "end_region_line": 1139, + "line": "# version of Kolibri. When a new schema version is added\n", + "lineno": 1139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1139 + }, + { + "end_region_line": 1140, + "line": "mappings = {\n", + "lineno": 1140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1140 + }, + { + "end_region_line": 1141, + "line": " V020BETA1: NoVersionChannelImport,\n", + "lineno": 1141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1141 + }, + { + "end_region_line": 1142, + "line": " V040BETA3: NoVersionChannelImport,\n", + "lineno": 1142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1142 + }, + { + "end_region_line": 1143, + "line": " NO_VERSION: NoVersionChannelImport,\n", + "lineno": 1143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1143 + }, + { + "end_region_line": 1144, + "line": " VERSION_1: NoLearningActivitiesChannelImport,\n", + "lineno": 1144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1144 + }, + { + "end_region_line": 1145, + "line": " VERSION_2: NoLearningActivitiesChannelImport,\n", + "lineno": 1145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1145 + }, + { + "end_region_line": 1146, + "line": " VERSION_3: NoLearningActivitiesChannelImport,\n", + "lineno": 1146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1146 + }, + { + "end_region_line": 1147, + "line": " VERSION_4: NoLearningActivitiesChannelImport,\n", + "lineno": 1147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1147 + }, + { + "end_region_line": 1148, + "line": " VERSION_5: ChannelImport,\n", + "lineno": 1148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1148 + }, + { + "end_region_line": 1149, + "line": "}\n", + "lineno": 1149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1149 + }, + { + "end_region_line": 1150, + "line": "\n", + "lineno": 1150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1150 + }, + { + "end_region_line": 1151, + "line": "\n", + "lineno": 1151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1151 + }, + { + "end_region_line": 1153, + "line": "class FutureSchemaError(Exception):\n", + "lineno": 1152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1152 + }, + { + "end_region_line": 1153, + "line": " pass\n", + "lineno": 1153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1152 + }, + { + "end_region_line": 1154, + "line": "\n", + "lineno": 1154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1154 + }, + { + "end_region_line": 1155, + "line": "\n", + "lineno": 1155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1155 + }, + { + "end_region_line": 1157, + "line": "class InvalidSchemaVersionError(Exception):\n", + "lineno": 1156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1156 + }, + { + "end_region_line": 1157, + "line": " pass\n", + "lineno": 1157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1156 + }, + { + "end_region_line": 1158, + "line": "\n", + "lineno": 1158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1158 + }, + { + "end_region_line": 1159, + "line": "\n", + "lineno": 1159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1159 + }, + { + "end_region_line": 1201, + "line": "def initialize_import_manager(\n", + "lineno": 1160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " channel_metadata, source, cancel_check=None, destination=None, partial=False\n", + "lineno": 1161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": "):\n", + "lineno": 1162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " # For old versions of content databases, we can only infer the schema version\n", + "lineno": 1163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " min_version = channel_metadata.get(\n", + "lineno": 1164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " \"min_schema_version\",\n", + "lineno": 1165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " channel_metadata.get(\"inferred_schema_version\"),\n", + "lineno": 1166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": "\n", + "lineno": 1168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " try:\n", + "lineno": 1169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " ImportClass = mappings.get(min_version)\n", + "lineno": 1170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " except KeyError:\n", + "lineno": 1171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " try:\n", + "lineno": 1172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " version_number = int(min_version)\n", + "lineno": 1173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " if version_number > int(CONTENT_SCHEMA_VERSION):\n", + "lineno": 1174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " raise FutureSchemaError(\n", + "lineno": 1175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " \"Tried to import schema version, {version}, which is not supported by this version of Kolibri.\".format(\n", + "lineno": 1176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " version=min_version\n", + "lineno": 1177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " elif version_number < int(CONTENT_SCHEMA_VERSION):\n", + "lineno": 1180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " # If it's a valid integer, but there is no schema for it, then we have stopped supporting this version\n", + "lineno": 1181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " raise InvalidSchemaVersionError(\n", + "lineno": 1182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " \"Tried to import unsupported schema version {version}\".format(\n", + "lineno": 1183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " version=min_version\n", + "lineno": 1184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " except ValueError:\n", + "lineno": 1187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " raise InvalidSchemaVersionError(\n", + "lineno": 1188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " \"Tried to import invalid schema version {version}\".format(\n", + "lineno": 1189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " version=min_version\n", + "lineno": 1190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": "\n", + "lineno": 1193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " return ImportClass(\n", + "lineno": 1194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " channel_metadata[\"id\"],\n", + "lineno": 1195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " source,\n", + "lineno": 1196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " channel_version=channel_metadata[\"version\"],\n", + "lineno": 1197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " cancel_check=cancel_check,\n", + "lineno": 1198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " destination=destination,\n", + "lineno": 1199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " partial=partial,\n", + "lineno": 1200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1201, + "line": " )\n", + "lineno": 1201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1160 + }, + { + "end_region_line": 1202, + "line": "\n", + "lineno": 1202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1202 + }, + { + "end_region_line": 1203, + "line": "\n", + "lineno": 1203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1203 + }, + { + "end_region_line": 1213, + "line": "def import_channel_from_local_db(channel_id, cancel_check=None, contentfolder=None):\n", + "lineno": 1204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": " source = get_content_database_file_path(channel_id, contentfolder=contentfolder)\n", + "lineno": 1205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": "\n", + "lineno": 1206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": " channel_metadata = read_channel_metadata_from_db_file(source)\n", + "lineno": 1207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": "\n", + "lineno": 1208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": " import_manager = initialize_import_manager(\n", + "lineno": 1209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": " channel_metadata, source, cancel_check=cancel_check\n", + "lineno": 1210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": " )\n", + "lineno": 1211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": "\n", + "lineno": 1212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1213, + "line": " return import_manager.run_and_annotate()\n", + "lineno": 1213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1204 + }, + { + "end_region_line": 1214, + "line": "\n", + "lineno": 1214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1214 + }, + { + "end_region_line": 1215, + "line": "\n", + "lineno": 1215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1215 + }, + { + "end_region_line": 1223, + "line": "def import_channel_from_data(source_data, cancel_check=None, partial=False):\n", + "lineno": 1216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": " channel_metadata = source_data.get(ChannelMetadata._meta.db_table)[0]\n", + "lineno": 1217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": "\n", + "lineno": 1218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": " import_manager = initialize_import_manager(\n", + "lineno": 1219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": " channel_metadata, source_data, cancel_check=cancel_check, partial=partial\n", + "lineno": 1220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": " )\n", + "lineno": 1221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": "\n", + "lineno": 1222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + }, + { + "end_region_line": 1223, + "line": " return import_manager.run_and_annotate()\n", + "lineno": 1223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1216 + } + ], + "percent_cpu_time": 1.2357581891909515 + }, + "/home/richard/github/kolibri/kolibri/core/logger/models.py": { + "functions": [ + { + "line": "SourceFileLoader.UserSessionLog", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.061874463668753966, + "n_cpu_percent_c": 0.5748415831420469, + "n_cpu_percent_python": 0.6699884522090815, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.012584940008646, + "n_usage_fraction": 0.0 + } + ], + "imports": [ + "from __future__ import unicode_literals", + "from datetime import timedelta" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "\"\"\"\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "This app provides the core functionality for tracking user\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "engagement with content and the Kolibri app.\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "It stores:\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "* details of users' interactions with content\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "* summaries of those interactions\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "* interactions with the software in general\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "Eventually, it may also store user feedback on the content and the software.\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "\"\"\"\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from __future__ import unicode_literals\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from datetime import timedelta\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "from django.core.exceptions import ObjectDoesNotExist\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "from django.core.exceptions import ValidationError\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from django.core.validators import MaxValueValidator\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from django.core.validators import MinLengthValidator\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from django.core.validators import MinValueValidator\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from django.db import models\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "from django.utils import timezone\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "from morango.models import SyncableModelQuerySet\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from morango.models import UUIDField\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "from .permissions import AnyoneCanWriteAnonymousLogs\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "from kolibri.core.auth.constants import role_kinds\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from kolibri.core.auth.models import AbstractFacilityDataModel\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from kolibri.core.auth.models import Facility\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from kolibri.core.auth.models import FacilityUser\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from kolibri.core.auth.permissions.base import RoleBasedPermissions\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from kolibri.core.auth.permissions.general import IsOwn\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "from kolibri.core.exams.models import Exam\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "from kolibri.core.fields import DateTimeTzField\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "from kolibri.core.fields import JSONField\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "from kolibri.utils.time_utils import local_now\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 54, + "line": "class BaseLogQuerySet(SyncableModelQuerySet):\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 48, + "line": " def filter_by_topic(self, topic, content_id_lookup=\"content_id\"):\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": " \"\"\"\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": " Filter a set of logs by content_id, using content_ids from all descendants of specified topic.\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": " \"\"\"\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": "\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": " content_ids = topic.get_descendant_content_ids()\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": "\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 48, + "line": " return self.filter_by_content_ids(content_ids)\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 54, + "line": "\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 54, + "line": " def filter_by_content_ids(self, content_ids, content_id_lookup=\"content_id\"):\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 54, + "line": " \"\"\"\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 54, + "line": " Filter a set of logs by content_id, using content_ids from the provided list or queryset.\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 54, + "line": " \"\"\"\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 54, + "line": " return self.filter(**{content_id_lookup + \"__in\": content_ids})\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 55, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 56, + "line": "\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 70, + "line": "def log_permissions(user_field):\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " return (\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " AnyoneCanWriteAnonymousLogs(field_name=user_field + \"_id\")\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " | IsOwn(field_name=user_field + \"_id\")\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " | RoleBasedPermissions(\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " target_field=user_field,\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " can_be_created_by=(role_kinds.ADMIN,),\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " can_be_read_by=(role_kinds.ADMIN, role_kinds.COACH),\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " can_be_updated_by=(role_kinds.ADMIN,),\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " can_be_deleted_by=(role_kinds.ADMIN,),\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " collection_field=\"{}__memberships__collection_id\".format(user_field),\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " )\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 70, + "line": " )\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 71, + "line": "\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 72, + "line": "\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 72 + }, + { + "end_region_line": 102, + "line": "class BaseLogModel(AbstractFacilityDataModel):\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 102, + "line": " permissions = log_permissions(\"user\")\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 78, + "line": " class Meta:\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 78, + "line": " abstract = True\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 93, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " if self.user_id:\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " return self.cached_related_dataset_lookup(\"user\")\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " elif self.dataset_id:\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " # confirm that there exists a facility with that dataset_id\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " try:\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " return Facility.objects.get(dataset_id=self.dataset_id).dataset_id\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " except Facility.DoesNotExist:\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " pass\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " # if no user or matching facility, infer dataset from the default facility\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " facility = Facility.get_default_facility()\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " if not facility:\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " raise AssertionError(\"Before you can save logs, you must have a facility\")\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 93, + "line": " return facility.dataset_id\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 102, + "line": " objects = BaseLogQuerySet.as_manager()\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 102, + "line": " def calculate_partition(self):\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 102, + "line": " if self.user_id:\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 102, + "line": " return \"{dataset_id}:user-rw:{user_id}\".format(\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 102, + "line": " dataset_id=self.dataset_id, user_id=self.user_id\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 102, + "line": " )\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 102, + "line": " return \"{dataset_id}:anonymous\".format(dataset_id=self.dataset_id)\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 103, + "line": "\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 103 + }, + { + "end_region_line": 104, + "line": "\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 130, + "line": "class ContentSessionLog(BaseLogModel):\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " \"\"\"\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " This model provides a record of interactions with a content item within a single visit to that content page.\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " \"\"\"\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": "\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " # Morango syncing settings\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " morango_model_name = \"contentsessionlog\"\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": "\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " user = models.ForeignKey(FacilityUser, blank=True, null=True)\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " content_id = UUIDField(db_index=True)\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " visitor_id = models.UUIDField(blank=True, null=True)\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " channel_id = UUIDField(blank=True, null=True)\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " start_timestamp = DateTimeTzField()\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " end_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " time_spent = models.FloatField(\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " help_text=\"(in seconds)\", default=0.0, validators=[MinValueValidator(0)]\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " )\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " progress = models.FloatField(default=0, validators=[MinValueValidator(0)])\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " kind = models.CharField(max_length=200, validators=[MinLengthValidator(1)])\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " extra_fields = JSONField(default={}, blank=True)\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": "\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 130, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 130, + "line": " if self.progress < 0:\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 130, + "line": " raise ValidationError(\"Progress out of range (<0)\")\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 130, + "line": "\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 130, + "line": " super(ContentSessionLog, self).save(*args, **kwargs)\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 131, + "line": "\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 131 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 164, + "line": "class ContentSummaryLog(BaseLogModel):\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " \"\"\"\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " This model provides an aggregate summary of all recorded interactions a user has had with\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " a content item over time.\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " \"\"\"\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " # Morango syncing settings\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " morango_model_name = \"contentsummarylog\"\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " user = models.ForeignKey(FacilityUser)\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " content_id = UUIDField(db_index=True)\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " channel_id = UUIDField(blank=True, null=True)\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " start_timestamp = DateTimeTzField()\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " end_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " completion_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " time_spent = models.FloatField(\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " help_text=\"(in seconds)\", default=0.0, validators=[MinValueValidator(0)]\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " )\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " progress = models.FloatField(\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " default=0, validators=[MinValueValidator(0), MaxValueValidator(1.01)]\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " )\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " kind = models.CharField(max_length=200, validators=[MinLengthValidator(1)])\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " extra_fields = JSONField(default={}, blank=True)\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 158, + "line": " def calculate_source_id(self):\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 157 + }, + { + "end_region_line": 158, + "line": " return self.content_id\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 157 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 164, + "line": " def save(self, *args, **kwargs):\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 160 + }, + { + "end_region_line": 164, + "line": " if self.progress < 0 or self.progress > 1.01:\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 160 + }, + { + "end_region_line": 164, + "line": " raise ValidationError(\"Content summary progress out of range (0-1)\")\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 160 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 160 + }, + { + "end_region_line": 164, + "line": " super(ContentSummaryLog, self).save(*args, **kwargs)\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 160 + }, + { + "end_region_line": 165, + "line": "\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 165 + }, + { + "end_region_line": 166, + "line": "\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 218, + "line": "class UserSessionLog(BaseLogModel):\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " \"\"\"\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " This model provides a record of a user session in Kolibri.\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " \"\"\"\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": "\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " # Morango syncing settings\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " morango_model_name = \"usersessionlog\"\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": "\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " user = models.ForeignKey(FacilityUser)\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.061874463668753966, + "n_cpu_percent_c": 0.5748415831420469, + "n_cpu_percent_python": 0.6699884522090815, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.012584940008646, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " channels = models.TextField(blank=True)\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " start_timestamp = DateTimeTzField(default=local_now)\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " last_interaction_timestamp = DateTimeTzField(null=True, blank=True)\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " pages = models.TextField(blank=True)\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " device_info = models.CharField(null=True, blank=True, max_length=100)\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": "\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " @classmethod\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 218, + "line": " def update_log(cls, user, os_info=None, browser_info=None):\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " \"\"\"\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " Update the current UserSessionLog for a particular user.\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": "\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " ua_parser never defaults the setting of os.family and user_agent.family\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " It uses the value 'other' whenever the values are not recognized or the parsing\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " fails. The code depends on this behaviour.\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " \"\"\"\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " if os_info is None:\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " os_info = {}\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " if browser_info is None:\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " browser_info = {}\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " if user and isinstance(user, FacilityUser):\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " try:\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " user_session_log = cls.objects.filter(user=user).latest(\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " \"last_interaction_timestamp\"\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " )\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " except ObjectDoesNotExist:\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " user_session_log = None\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": "\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " if (\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " not user_session_log\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " or timezone.now() - user_session_log.last_interaction_timestamp\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " > timedelta(minutes=5)\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " ):\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " device_info = (\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " \"{os_name},{os_major}/{browser_name},{browser_major}\".format(\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " os_name=os_info.get(\"name\", \"\"),\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " os_major=os_info.get(\"major\", \"\"),\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " browser_name=browser_info.get(\"name\", \"\"),\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " browser_major=browser_info.get(\"major\", \"\"),\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " )\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " )\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " user_session_log = cls(user=user, device_info=device_info)\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " user_session_log.last_interaction_timestamp = local_now()\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 218, + "line": " user_session_log.save()\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 219, + "line": "\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 219 + }, + { + "end_region_line": 220, + "line": "\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 220 + }, + { + "end_region_line": 262, + "line": "class MasteryLog(BaseLogModel):\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " \"\"\"\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " This model provides a summary of a user's engagement with an assessment within a mastery level\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " \"\"\"\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": "\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # Morango syncing settings\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " morango_model_name = \"masterylog\"\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": "\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " user = models.ForeignKey(FacilityUser)\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # Every MasteryLog is related to the single summary log for the user/content pair\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " summarylog = models.ForeignKey(ContentSummaryLog, related_name=\"masterylogs\")\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # The MasteryLog records the mastery criterion that has been specified for the user.\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # It is recorded here to prevent this changing in the middle of a user's engagement\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # with an assessment.\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " mastery_criterion = JSONField(default={})\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " start_timestamp = DateTimeTzField()\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " end_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " completion_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # The integer mastery level that this log is tracking.\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # A random negative integer is used to disambiguate unique quiz attempts\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # exercise attempts use incrementing integers starting at 1.\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " mastery_level = models.IntegerField()\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # Has this mastery level been completed?\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " complete = models.BooleanField(default=False)\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # How long did the learner spend on this specific try of the exercise or quiz?\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # Field is added as nullable so that we can distinguish values from older instances\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " # of Kolibri prior to this being added and zero values.\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " time_spent = models.FloatField(\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " help_text=\"(in seconds)\",\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " null=True,\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " blank=True,\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " default=0.0,\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " validators=[MinValueValidator(0)],\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " )\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": "\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 257, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 257, + "line": " return self.cached_related_dataset_lookup(\"user\")\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 262, + "line": "\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 262, + "line": " def calculate_source_id(self):\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 262, + "line": " return \"{summarylog_id}:{mastery_level}\".format(\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 262, + "line": " summarylog_id=self.summarylog_id, mastery_level=self.mastery_level\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 262, + "line": " )\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 263, + "line": "\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 264, + "line": "\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 264 + }, + { + "end_region_line": 295, + "line": "class BaseAttemptLog(BaseLogModel):\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " \"\"\"\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " This is an abstract model that provides a summary of a user's interactions with a particular\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " item/question in an assessment/exercise/exam\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " \"\"\"\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": "\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # Unique identifier within the relevant assessment for the particular question/item\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # that this attemptlog is a record of an interaction with.\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " item = models.CharField(max_length=200, validators=[MinLengthValidator(1)])\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " start_timestamp = DateTimeTzField()\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " end_timestamp = DateTimeTzField()\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " completion_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " time_spent = models.FloatField(\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " help_text=\"(in seconds)\", default=0.0, validators=[MinValueValidator(0)]\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " )\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " complete = models.BooleanField(default=False)\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # How correct was their answer? In simple cases, just 0 or 1.\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " correct = models.FloatField(validators=[MinValueValidator(0), MaxValueValidator(1)])\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " hinted = models.BooleanField(default=False)\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # JSON blob that would allow the learner's answer to be rerendered in the frontend interface\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " answer = JSONField(default={}, null=True, blank=True)\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # A human readable answer that could be rendered directly in coach reports, can be blank.\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " simple_answer = models.CharField(max_length=200, blank=True)\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # A JSON Array with a sequence of JSON objects that describe the history of interaction of the user\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " # with this assessment item in this attempt.\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " interaction_history = JSONField(default=[], blank=True)\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " user = models.ForeignKey(FacilityUser, blank=True, null=True)\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " error = models.BooleanField(default=False)\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": "\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 295, + "line": " class Meta:\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 294 + }, + { + "end_region_line": 295, + "line": " abstract = True\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 294 + }, + { + "end_region_line": 296, + "line": "\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 297, + "line": "\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 313, + "line": "class AttemptLog(BaseAttemptLog):\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " \"\"\"\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " This model provides a summary of a user's interactions with a question in a content node.\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " (Think of it like a ContentNodeAttemptLog to distinguish it from ExamAttemptLog and BaseAttemptLog)\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " \"\"\"\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " morango_model_name = \"attemptlog\"\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " # Which mastery log was this attemptlog associated with?\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " masterylog = models.ForeignKey(\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " MasteryLog, related_name=\"attemptlogs\", blank=True, null=True\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " )\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " sessionlog = models.ForeignKey(ContentSessionLog, related_name=\"attemptlogs\")\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": "\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 313, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 312 + }, + { + "end_region_line": 313, + "line": " return self.cached_related_dataset_lookup(\"sessionlog\")\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 312 + }, + { + "end_region_line": 314, + "line": "\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 315, + "line": "\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 338, + "line": "class ExamLog(BaseLogModel):\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " \"\"\"\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " This model provides a summary of a user's interactions with an exam, and serves as\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " an aggregation point for individual attempts on questions in that exam.\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " \"\"\"\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": "\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " morango_model_name = \"examlog\"\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": "\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " # Identifies the exam that this is for.\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " exam = models.ForeignKey(Exam, related_name=\"examlogs\", blank=False, null=False)\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " # Identifies which user this log summarizes interactions for.\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " user = models.ForeignKey(FacilityUser)\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " # Is this exam open for engagement, or is it closed?\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " # Used to end user engagement with an exam when it has been deactivated.\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " closed = models.BooleanField(default=False)\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " # when was this exam finished?\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " completion_timestamp = DateTimeTzField(blank=True, null=True)\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": "\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 335, + "line": " def calculate_source_id(self):\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 334 + }, + { + "end_region_line": 335, + "line": " return \"{exam_id}:{user_id}\".format(exam_id=self.exam_id, user_id=self.user_id)\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 334 + }, + { + "end_region_line": 338, + "line": "\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 338, + "line": " def calculate_partition(self):\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 338, + "line": " return self.dataset_id\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 339, + "line": "\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 339 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 340 + }, + { + "end_region_line": 359, + "line": "class ExamAttemptLog(BaseAttemptLog):\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " \"\"\"\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " This model provides a summary of a user's interactions with a question in an exam\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " \"\"\"\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": "\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " morango_model_name = \"examattemptlog\"\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": "\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " examlog = models.ForeignKey(\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " ExamLog, related_name=\"attemptlogs\", blank=False, null=False\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " )\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " # We have no session logs associated with ExamLogs, so we need to record the channel and content\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " # ids here\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " content_id = UUIDField()\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": "\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 356, + "line": " def infer_dataset(self, *args, **kwargs):\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 355 + }, + { + "end_region_line": 356, + "line": " return self.cached_related_dataset_lookup(\"examlog\")\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 355 + }, + { + "end_region_line": 359, + "line": "\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 359, + "line": " def calculate_partition(self):\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 358 + }, + { + "end_region_line": 359, + "line": " return self.dataset_id\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 358 + }, + { + "end_region_line": 360, + "line": "\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 360 + }, + { + "end_region_line": 361, + "line": "\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 361 + }, + { + "end_region_line": 384, + "line": "class GenerateCSVLogRequest(models.Model):\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " \"\"\"\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " This model provides a record of a user's request to generate session and summary log files\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " \"\"\"\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": "\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " LOG_TYPE_CHOICES = [\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " (\"session\", \"Session\"),\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " (\"summary\", \"Summary\"),\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " ]\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " permissions = RoleBasedPermissions(\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " target_field=\"facility\",\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " can_be_created_by=(role_kinds.ADMIN,),\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " can_be_read_by=(role_kinds.ADMIN,),\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " can_be_updated_by=(role_kinds.ADMIN,),\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " can_be_deleted_by=(role_kinds.ADMIN,),\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " is_syncable=False,\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " )\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": "\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " facility = models.ForeignKey(Facility, on_delete=models.CASCADE)\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " selected_start_date = DateTimeTzField(null=True, blank=True)\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " selected_end_date = DateTimeTzField(null=True, blank=True)\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " date_requested = DateTimeTzField(default=local_now)\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 384, + "line": " log_type = models.CharField(max_length=7, choices=LOG_TYPE_CHOICES)\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + } + ], + "percent_cpu_time": 1.2574149753597745 + }, + "/home/richard/github/kolibri/kolibri/core/mixins.py": { + "functions": [], + "imports": [ + "from uuid import UUID" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "\"\"\"\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "Mixins for Django REST Framework ViewSets and Django Querysets\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "\"\"\"\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import logging\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "from uuid import UUID\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "from django.core.exceptions import EmptyResultSet\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from django.db.models import ForeignKey\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from django.db.models import QuerySet\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from django.db.models.fields import CharField\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from django.db.models.lookups import In\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from morango.models import UUIDField\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from rest_framework import status\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.062362201531851055, + "n_cpu_percent_c": 0.5567099558044565, + "n_cpu_percent_python": 0.6752697704881312, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0027222406346089066, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from rest_framework.response import Response\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.05274092111104132, + "n_cpu_percent_c": 0.681462063093494, + "n_cpu_percent_python": 1.1421774350219411, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.3374427551172165, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 24, + "line": "class BulkCreateMixin(object):\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 24, + "line": " def get_serializer(self, *args, **kwargs):\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 24, + "line": " \"\"\" if an array is passed, set serializer to many \"\"\"\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 24, + "line": " if isinstance(kwargs.get(\"data\", {}), list):\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 24, + "line": " kwargs[\"many\"] = True\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 24, + "line": " return super(BulkCreateMixin, self).get_serializer(*args, **kwargs)\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 25, + "line": "\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 58, + "line": "class BulkDeleteMixin(object):\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 58, + "line": " # Taken from https://github.com/miki725/django-rest-framework-bulk\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 40, + "line": " def allow_bulk_destroy(self, qs, filtered):\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " \"\"\"\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " Hook to ensure that the bulk destroy should be allowed.\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " By default this checks that the destroy is only applied to\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " filtered querysets.\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " \"\"\"\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " # Only let a bulk destroy if the queryset is being filtered by a valid filter_field parameter\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " return any(\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " key in self.filter_fields for key in self.request.query_params.keys()\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 40, + "line": " )\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 51, + "line": " def bulk_destroy(self, request, *args, **kwargs):\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": " qs = self.get_queryset()\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": " filtered = self.filter_queryset(qs)\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": " if not self.allow_bulk_destroy(qs, filtered):\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": " return Response(status=status.HTTP_400_BAD_REQUEST)\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": " self.perform_bulk_destroy(filtered)\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 51, + "line": " return Response(status=status.HTTP_204_NO_CONTENT)\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 54, + "line": " def perform_destroy(self, instance):\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": " instance.delete()\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 58, + "line": " def perform_bulk_destroy(self, objects):\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 58, + "line": " for obj in objects:\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": " self.perform_destroy(obj)\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 59, + "line": "\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": "\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 119, + "line": "class UUIDIn(In):\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 119, + "line": " lookup_name = \"uuidin\"\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 119, + "line": "\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 119, + "line": " # Modified from:\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 119, + "line": " # https://github.com/django/django/blob/stable/1.11.x/django/db/models/lookups.py#L346\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 119, + "line": "\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 91, + "line": " def process_rhs(self, compiler, connection):\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " db_rhs = getattr(self.rhs, \"_db\", None)\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " if db_rhs is not None and db_rhs != connection.alias:\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " raise ValueError(\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " \"Subqueries aren't allowed across different databases. Force \"\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " \"the inner query to be evaluated using `list(inner_query)`.\"\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " )\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " if self.rhs_is_direct_value():\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " try:\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " rhs = set(self.rhs)\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " except TypeError: # Unhashable items in self.rhs\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " rhs = self.rhs\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " if not rhs:\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " raise EmptyResultSet\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " # rhs should be an iterable; use batch_process_rhs() to\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " # prepare/transform those values.\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " sqls, sqls_params = self.batch_process_rhs(compiler, connection, rhs)\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " placeholder = \"(\" + \",\".join(\"'{}'\".format(p) for p in sqls_params) + \")\"\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " sqls_params = ()\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " return (placeholder, sqls_params)\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " else:\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 91, + "line": " return super(UUIDIn, self).process_rhs(compiler, connection)\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 119, + "line": "\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 119, + "line": " def split_parameter_list_as_sql(self, compiler, connection):\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " # This is a special case for databases which limit the number of\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " # elements which can appear in an 'IN' clause.\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " max_in_list_size = connection.ops.max_in_list_size()\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " lhs, lhs_params = self.process_lhs(compiler, connection)\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " rhs, rhs_params = self.batch_process_rhs(compiler, connection)\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " in_clause_elements = [\"(\"]\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " params = []\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 117, + "line": " for offset in range(0, len(rhs_params), max_in_list_size):\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " if offset > 0:\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " in_clause_elements.append(\" OR \")\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " in_clause_elements.append(\"%s IN (\" % lhs)\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " params.extend(lhs_params)\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " sqls_params = ()\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " param_group = (\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " \"(\"\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " + \",\".join(\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " \"'{}'\".format(p)\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " for p in rhs_params[offset : offset + max_in_list_size]\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " )\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " + \")\"\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " )\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " in_clause_elements.append(param_group)\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " in_clause_elements.append(\")\")\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 117, + "line": " params.extend(sqls_params)\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 119, + "line": " in_clause_elements.append(\")\")\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 119, + "line": " return \"\".join(in_clause_elements), params\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 120, + "line": "\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 120 + }, + { + "end_region_line": 121, + "line": "\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 122, + "line": "UUIDField.register_lookup(UUIDIn)\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 123, + "line": "CharField.register_lookup(UUIDIn)\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 123 + }, + { + "end_region_line": 124, + "line": "ForeignKey.register_lookup(UUIDIn)\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 125, + "line": "\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 125 + }, + { + "end_region_line": 126, + "line": "\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 128, + "line": "class UUIDValidationError(Exception):\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 128, + "line": " pass\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 129, + "line": "\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 130, + "line": "\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 130 + }, + { + "end_region_line": 141, + "line": "def validate_uuids(ids):\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 131 + }, + { + "end_region_line": 140, + "line": " for identifier in ids:\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " try:\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " if not isinstance(identifier, UUID):\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " UUID(identifier, version=4)\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " except (TypeError, ValueError):\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " # the value is not a valid hex code for a UUID, so we don't return any results\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " raise UUIDValidationError(\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " \"{} did not pass UUID validation\".format(identifier)\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 140, + "line": " )\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 141, + "line": " return ids\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 131 + }, + { + "end_region_line": 142, + "line": "\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 143, + "line": "\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 181, + "line": "class FilterByUUIDQuerysetMixin(object):\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 181, + "line": " \"\"\"\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 181, + "line": " As a workaround to the SQLITE_MAX_VARIABLE_NUMBER, so we can avoid having to chunk our queries,\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 181, + "line": " we pass in the list of ids (after being validated) as an inline query statement.\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 181, + "line": " \"\"\"\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 181, + "line": "\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 152, + "line": " def filter_by_uuids(self, ids, validate=True):\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 150 + }, + { + "end_region_line": 152, + "line": " id_field = self.model._meta.pk.attname\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 150 + }, + { + "end_region_line": 152, + "line": " return self._by_uuids(ids, validate, id_field, True)\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 150 + }, + { + "end_region_line": 181, + "line": "\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 156, + "line": " def exclude_by_uuids(self, ids, validate=True):\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 156, + "line": " id_field = self.model._meta.pk.attname\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 156, + "line": " return self._by_uuids(ids, validate, id_field, False)\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 181, + "line": "\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 181, + "line": " def _by_uuids(self, ids, validate, field_name, include):\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " if isinstance(ids, QuerySet):\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " # If we have been passed a queryset, we can shortcut and just filter by the field name\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " # on the queryset itself.\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " lookup = \"in\"\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " else:\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " if len(ids) > 10000:\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " logger.warning(\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " \"\"\"\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " More than 10000 UUIDs passed to filter by uuids method,\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " these should be batched into separate querysets to avoid SQL Query too large errors in SQLite\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " \"\"\"\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " )\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " if validate:\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " try:\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " validate_uuids(ids)\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " except UUIDValidationError:\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " # the value is not a valid hex code for a UUID, so we don't return any results\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " return self.none()\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " lookup = \"uuidin\"\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " kwargs = {\"{}__{}\".format(field_name, lookup): ids}\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " if include:\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " return self.filter(**kwargs)\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 181, + "line": " return self.exclude(**kwargs)\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + } + ], + "percent_cpu_time": 3.3957842201598485 + }, + "/home/richard/github/kolibri/kolibri/core/tasks/registry.py": { + "functions": [], + "imports": [ + "from functools import update_wrapper", + "from six import string_types" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import logging\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "from functools import update_wrapper\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "from importlib import import_module\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "from django.apps import apps\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "from rest_framework import serializers\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "from rest_framework.exceptions import PermissionDenied\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from six import string_types\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from kolibri.core.tasks.constants import DEFAULT_QUEUE\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from kolibri.core.tasks.job import Job\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from kolibri.core.tasks.job import Priority\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from kolibri.core.tasks.main import job_storage\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from kolibri.core.tasks.permissions import BasePermission\n", + "lineno": 14, + "memory_samples": [ + [ + 1378769922, + 50.40073108673096 + ] + ], + "n_avg_mb": 10.000088691711426, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0625478316633984, + "n_cpu_percent_c": 0.6380603030025305, + "n_cpu_percent_python": 0.6767618784906531, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 10.000088691711426, + "n_malloc_mb": 10.000088691711426, + "n_mallocs": 1, + "n_peak_mb": 10.000088691711426, + "n_python_fraction": 0.993329, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.19990678257609715, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from kolibri.core.tasks.utils import callable_to_import_path\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from kolibri.core.tasks.validation import JobValidator\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 127, + "line": "class _registry(dict):\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " \"\"\"\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " All jobs that get registered via `register_task` decorator are placed\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " in this registry.\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " It gets populated lazily, with jobs being imported as they are looked up.\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " This registry's key is the stringified form of decorated function and value\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " is an instance of `RegisteredJob`. For example,\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " {\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " ...\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " \"kolibri.core.content.tasks.importchannel\": ,\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " \"kolibri.core.content.tasks.exportchannel\": ,\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " ...\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " }\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " \"\"\"\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " __initialized = False\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 45, + "line": " def __init_check(self):\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 45, + "line": " if not self.__initialized:\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 45, + "line": " self._initialize()\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 45, + "line": " self.__initialized = True\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 49, + "line": " def __getitem__(self, key):\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 49, + "line": " self.__init_check()\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 49, + "line": " return super(_registry, self).__getitem__(key)\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 53, + "line": " def __contains__(self, key):\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 53, + "line": " self.__init_check()\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 53, + "line": " return super(_registry, self).__contains__(key)\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 57, + "line": " def __iter__(self):\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 57, + "line": " self.__init_check()\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 57, + "line": " return super(_registry, self).__iter__()\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 61, + "line": " def __len__(self):\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 61, + "line": " self.__init_check()\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 61, + "line": " return super(_registry, self).__len__()\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 65, + "line": " def __repr__(self):\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 65, + "line": " self.__init_check()\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 65, + "line": " return super(_registry, self).__repr__()\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 69, + "line": " def copy(self):\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 69, + "line": " self.__init_check()\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 69, + "line": " return super(_registry, self).copy()\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 72, + "line": " def has_key(self, key):\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 72, + "line": " return key in self\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 76, + "line": " def keys(self):\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 76, + "line": " self.__init_check()\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 76, + "line": " return super(_registry, self).keys()\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 80, + "line": " def values(self):\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 80, + "line": " self.__init_check()\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 80, + "line": " return super(_registry, self).values()\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 84, + "line": " def items(self):\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 82 + }, + { + "end_region_line": 84, + "line": " self.__init_check()\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 82 + }, + { + "end_region_line": 84, + "line": " return super(_registry, self).items()\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 82 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 88, + "line": " def __cmp__(self, other):\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 88, + "line": " self.__init_check()\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 88, + "line": " return super(_registry, self).__cmp__(other)\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 100, + "line": " def _initialize(self):\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 90 + }, + { + "end_region_line": 100, + "line": " logger.debug(\"Importing 'tasks' module from django apps\")\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 90 + }, + { + "end_region_line": 100, + "line": "\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 90 + }, + { + "end_region_line": 100, + "line": " for app_config in apps.get_app_configs():\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 100, + "line": " try:\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 100, + "line": " module = import_module(\".tasks\", app_config.module.__name__)\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 98, + "line": " for cls in module.__dict__.values():\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 96 + }, + { + "end_region_line": 98, + "line": " if isinstance(cls, RegisteredTask):\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 96 + }, + { + "end_region_line": 98, + "line": " self._register_task(cls)\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 96 + }, + { + "end_region_line": 100, + "line": " except ImportError:\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 100, + "line": " pass\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 105, + "line": " def _register_task(self, registered_task):\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 105, + "line": " funcstring = callable_to_import_path(registered_task)\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 105, + "line": " self[funcstring] = registered_task\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 105, + "line": " logger.debug(\"Successfully registered '%s' as task.\", funcstring)\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 110, + "line": " def __setitem__(self, key, value):\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 110, + "line": " if not isinstance(value, RegisteredTask):\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 110, + "line": " raise TypeError(\"Value must be an instance of RegisteredTask\")\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 110, + "line": " return super(_registry, self).__setitem__(key, value)\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 116, + "line": " def update(self, other):\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 116, + "line": " # Coerce args to a dict and then set each key in that dict\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 116, + "line": " other = {}.update(other)\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 116, + "line": " for key, value in other.items():\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 115 + }, + { + "end_region_line": 116, + "line": " self[key] = value\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 115 + }, + { + "end_region_line": 127, + "line": "\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 127, + "line": " def validate_task(self, task):\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " if not isinstance(task, string_types):\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " raise serializers.ValidationError(\"The task type must be a string.\")\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " if task not in self:\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " raise serializers.ValidationError(\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " \"{} is not a registered task - is it in a tasks module of an installed app?\".format(\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " task\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " )\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " )\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 127, + "line": " return self[task]\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 128, + "line": "\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 128 + }, + { + "end_region_line": 129, + "line": "\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 130, + "line": "TaskRegistry = _registry()\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 130 + }, + { + "end_region_line": 131, + "line": "\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 131 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 397, + "line": "class RegisteredTask(object):\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " \"\"\"\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " This class acts as a transparent wrapper around the `func` argument.\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " For example, if `add` is registered as:\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " @register_task(priority=Priority.HIGH, cancellable=True)\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " def add(x, y):\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " return x + y\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " Then, we can enqueue `add` by calling `add.enqueue(args=(4, 2))`.\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " Also, we can schedule `add` by calling `add.enqueue_in(timedelta(1), args=(4, 2))`\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " or `add.enqueue_at(datetime.now(), args=(4, 2))`.\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " Look at each method's docstring for more info.\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " \"\"\"\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 235, + "line": " def __init__( # noqa: C901\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self,\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " func,\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " job_id=None,\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " queue=DEFAULT_QUEUE,\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " validator=JobValidator,\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " priority=Priority.REGULAR,\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " cancellable=False,\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " track_progress=False,\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " permission_classes=None,\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " long_running=False,\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " status_fn=None,\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " ):\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " \"\"\"\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param func: Function to be wrapped as a Registered task\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type func: function\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param job_id: Fixed job_id to use for any job run from this task, defaults to None\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type job_id: str\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param queue: The queue to run this task in by default, defaults to DEFAULT_QUEUE\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type queue: str\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param validator: The job validator, used to validate and serialize JSON into\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " the args, kwargs, and job arguments for running a job of this task,\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " defaults to JobValidator\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type validator: JobValidator\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param priority: The priority for this task, can be either HIGH or REGULAR,\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " defaults to Priority.REGULAR\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type priority: int\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param cancellable: Can this task be cancelled while running, defaults to False\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type cancellable: bool\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param track_progress: Does this task track progress while it's executing, defaults to False\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type track_progress: bool\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param permission_classes: Classes that determine if a user has read and write access to\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " jobs of this task, defaults to None\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type permission_classes: list of BasePermission derived classes or\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " instantiated BasePermission derived classes.\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param long_running: In regular operation should this task finish in under ten minutes,\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " defaults to False\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type long_running: bool\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :param status_fn: A function that takes a job object as its only argument and returns\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " text describing the status of the job to an end user. Should use string wrapping, as it will\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " usually be invoked in a context where internationalization is being used.\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " :type status_fn: function\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " \"\"\"\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if permission_classes is None:\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " permission_classes = []\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if not issubclass(validator, JobValidator):\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"Validators must be a subclass of {}\".format(JobValidator))\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if priority not in Priority.Priorities:\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise ValueError(\"priority must be one of '5' or '10' (integer).\")\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if not isinstance(permission_classes, list):\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"permission_classes must be of list type.\")\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if not isinstance(queue, string_types):\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"queue must be of string type.\")\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if not isinstance(cancellable, bool):\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"cancellable must be of bool type.\")\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if not isinstance(track_progress, bool):\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"track_progress must be of bool type.\")\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if not isinstance(long_running, bool):\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"long_running must be of bool type.\")\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if status_fn is not None and not callable(status_fn):\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise TypeError(\"status_fn must be callable.\")\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if long_running and status_fn is None:\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise ValueError(\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " \"When long_running is set to True, status_fn must be defined\"\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " )\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " if priority <= Priority.HIGH and status_fn is None:\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " raise ValueError(\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " \"High priority tasks must specify a status_fn to inform the user of why it is important\"\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " )\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": "\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.func = func\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.validator = validator\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.priority = priority\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.queue = queue\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": "\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.permissions = list(self._validate_permissions_classes(permission_classes))\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": "\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.job_id = job_id\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.cancellable = cancellable\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.track_progress = track_progress\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self.long_running = long_running\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " self._status_fn = status_fn\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": "\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " # Make this wrapper object look seamlessly like the wrapped function\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 235, + "line": " update_wrapper(self, func)\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 238, + "line": " def __call__(self, *args, **kwargs):\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 237 + }, + { + "end_region_line": 238, + "line": " return self.func(*args, **kwargs)\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 237 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 241, + "line": " def __repr__(self):\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 240 + }, + { + "end_region_line": 241, + "line": " return \"\".format(func=self.func)\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 240 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " @property\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 245, + "line": " def func_string(self):\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 244 + }, + { + "end_region_line": 245, + "line": " return callable_to_import_path(self)\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 244 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 260, + "line": " def _validate_permissions_classes(self, permission_classes):\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 247 + }, + { + "end_region_line": 260, + "line": " for permission_class in permission_classes:\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " if not isinstance(permission_class, BasePermission) and not issubclass(\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " permission_class, BasePermission\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " ):\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " raise TypeError(\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " \"permission_classes must all inherit from {}.\".format(\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " BasePermission\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " )\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " )\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " if isinstance(permission_class, type):\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " yield permission_class()\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " else:\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 260, + "line": " yield permission_class\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 265, + "line": " def check_job_permissions(self, user, job, view):\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 262 + }, + { + "end_region_line": 265, + "line": " for permission in self.permissions:\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 265, + "line": " if not permission.has_permission(user, job, view):\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 265, + "line": " raise PermissionDenied\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 283, + "line": " def validate_job_data(self, user, data):\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " # Run validator with `user` and `data` as its argument.\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " if \"type\" not in data:\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " data[\"type\"] = self.func_string\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " validator = self.validator(data=data, context={\"user\": user})\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " validator.is_valid(raise_exception=True)\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " validated_data = validator.validated_data\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " enqueue_args_validated_data = validated_data.pop(\"enqueue_args\")\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": "\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " try:\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " job = self._ready_job(**validated_data)\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " except TypeError:\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " raise serializers.ValidationError(\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " \"Invalid job data returned from validator.\"\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " )\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": "\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 283, + "line": " return job, enqueue_args_validated_data\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 286, + "line": " def cancel_all(self):\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 285 + }, + { + "end_region_line": 286, + "line": " return job_storage.cancel_jobs(func=self.func_string)\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 285 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 299, + "line": " def enqueue(self, job=None, retry_interval=None, priority=None, **job_kwargs):\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " \"\"\"\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " Enqueue the function with arguments passed to this method.\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": "\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " :return: enqueued job's id.\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " \"\"\"\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " return job_storage.enqueue_job(\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " job or self._ready_job(**job_kwargs),\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " queue=self.queue,\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " priority=priority or self.priority,\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " retry_interval=retry_interval,\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 299, + "line": " )\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 314, + "line": " def enqueue_if_not(\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " self, job=None, retry_interval=None, priority=None, **job_kwargs\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " ):\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " \"\"\"\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " Enqueue the function with arguments passed to this method if a job of this type is not already enqueued.\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": "\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " :return: enqueued job's id.\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " \"\"\"\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " return job_storage.enqueue_job_if_not_enqueued(\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " job or self._ready_job(**job_kwargs),\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " queue=self.queue,\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " priority=priority or self.priority,\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " retry_interval=retry_interval,\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 314, + "line": " )\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 343, + "line": " def enqueue_in(\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " self,\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " delta_time,\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " interval=0,\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " repeat=0,\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " retry_interval=None,\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " job=None,\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " priority=None,\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " **job_kwargs\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " ):\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " \"\"\"\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " Schedule the function to get enqueued in `delta_time` with args and\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " kwargs as its positional and keyword arguments.\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": "\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " Repeat of None with a specified interval means the job will repeat\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " forever at that interval.\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": "\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " :return: scheduled job's id.\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " \"\"\"\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " return job_storage.enqueue_in(\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " delta_time,\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " job or self._ready_job(**job_kwargs),\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " queue=self.queue,\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " priority=priority or self.priority,\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " interval=interval,\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " repeat=repeat,\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " retry_interval=retry_interval,\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 343, + "line": " )\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 372, + "line": " def enqueue_at(\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " self,\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " datetime,\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " interval=0,\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " repeat=0,\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " retry_interval=None,\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " job=None,\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " priority=None,\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " **job_kwargs\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " ):\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " \"\"\"\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " Schedule the function to get enqueued at a specific `datetime` with\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " args and kwargs as its positional and keyword arguments.\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": "\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " Repeat of None with a specified interval means the job will repeat\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " forever at that interval.\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": "\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " :return: scheduled job's id.\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " \"\"\"\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " return job_storage.enqueue_at(\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " datetime,\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " job or self._ready_job(**job_kwargs),\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " queue=self.queue,\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " priority=priority or self.priority,\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " interval=interval,\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " repeat=repeat,\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " retry_interval=retry_interval,\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 372, + "line": " )\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 386, + "line": " def _ready_job(self, **job_kwargs):\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " \"\"\"\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " Returns a job object with args and kwargs as its positional and keyword arguments.\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " \"\"\"\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " job_obj = Job(\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " self,\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " job_id=job_kwargs.pop(\"job_id\", self.job_id),\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " cancellable=job_kwargs.pop(\"cancellable\", self.cancellable),\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " track_progress=job_kwargs.pop(\"track_progress\", self.track_progress),\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " long_running=job_kwargs.pop(\"long_running\", self.long_running),\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " **job_kwargs\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " )\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 386, + "line": " return job_obj\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 397, + "line": " def generate_status(self, job):\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " \"\"\"\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " Takes a job object and returns text describing the current status for a user.\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " Relies on the task having registered a status_fn, otherwise this will\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " return None.\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " Otherwise it should return an object of type JobStatus, defined in the job module.\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " \"\"\"\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " if self._status_fn:\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 397, + "line": " return self._status_fn(job)\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + } + ], + "percent_cpu_time": 1.3148221814931835 + }, + "/home/richard/github/kolibri/kolibri/core/tasks/utils.py": { + "functions": [], + "imports": [ + "import os", + "import sys", + "import time", + "import uuid", + "from threading import Thread", + "from six import string_types", + "from sqlalchemy import create_engine", + "from sqlalchemy import event", + "from sqlalchemy import exc" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import concurrent.futures\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "import logging\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import os\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import sqlite3\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "import sys\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "import time\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "import uuid\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from threading import Thread\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "import click\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from django.utils.functional import SimpleLazyObject\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from django.utils.module_loading import import_string\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from six import string_types\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from sqlalchemy import create_engine\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from sqlalchemy import event\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from sqlalchemy import exc\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "from kolibri.core.sqlite.utils import check_sqlite_integrity\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from kolibri.core.sqlite.utils import repair_sqlite_db\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from kolibri.core.tasks import compat\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.04637568728551561, + "n_cpu_percent_c": 1.0449792968381875, + "n_cpu_percent_python": 0.5021647558982503, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.5379248477136545, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from kolibri.core.tasks.exceptions import UserCancelledError\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from kolibri.utils import conf\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "from kolibri.utils.options import FD_PER_THREAD\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "from kolibri.utils.system import get_fd_limit\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "# An object on which to store data about the current job\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "# So far the only use is to track the job, but other metadata\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "# could be added.\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "current_state_tracker = SimpleLazyObject(compat.local)\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 36, + "line": "def get_current_job():\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": " return getattr(current_state_tracker, \"job\", None)\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 37, + "line": "\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 49, + "line": "def callable_to_import_path(func):\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " if callable(func):\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " funcstring = \"{module}.{funcname}\".format(\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " module=func.__module__, funcname=func.__name__\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " )\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " elif isinstance(func, string_types):\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " funcstring = func\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " else:\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " raise TypeError(\"Can't handle a function of type {}\".format(type(func)))\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": "\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 49, + "line": " return funcstring\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 50, + "line": "\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 63, + "line": "def import_path_to_callable(funcstring):\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " \"\"\"\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " Import a string that represents a module and function, e.g. {module}.{funcname}.\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " Given a function f, import_stringified_func(stringify_func(f)) will return the same function.\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " :param funcstring: String to try to import\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " :return: callable\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " \"\"\"\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " try:\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " return import_string(funcstring)\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " except AttributeError:\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 63, + "line": " raise ImportError(\"Invalid module path: {}\".format(funcstring))\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 64, + "line": "\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 64 + }, + { + "end_region_line": 65, + "line": "\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 65 + }, + { + "end_region_line": 137, + "line": "class InfiniteLoopThread(Thread):\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 137, + "line": " \"\"\"A class that runs a given function an infinite number of times, until told to shut down.\"\"\"\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 137, + "line": " DEFAULT_TIMEOUT_SECONDS = 0.001\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 91, + "line": " def __init__(self, func, thread_name, wait_between_runs=1, *args, **kwargs):\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " \"\"\"\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " Run the given func continuously until either shutdown_event is set, or the python interpreter exits.\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " :param func: the function to run. This should accept no arguments.\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " :param thread_name: the name of the thread to use during logging and debugging\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " :param wait_between_runs: how many seconds to wait in between func calls.\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " \"\"\"\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.shutdown_event = compat.Event()\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.thread_name = thread_name\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.thread_id = uuid.uuid4().hex\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.logger = logging.getLogger(\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " \"{module}\".format(module=__name__.split(\".\")[0])\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " )\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.full_thread_name = \"{thread_name}-{thread_id}\".format(\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " thread_name=self.thread_name, thread_id=self.thread_id\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " )\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " super(InfiniteLoopThread, self).__init__(\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " name=self.full_thread_name, *args, **kwargs\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " )\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.func = func\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 91, + "line": " self.wait = wait_between_runs\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 110, + "line": " def run(self):\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": " self.logger.debug(\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": " \"Started new {name} thread ID#{id}\".format(\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": " name=self.thread_name, id=self.thread_id\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": " )\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": " )\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": "\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 110, + "line": " while True:\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " if self.shutdown_event.wait(self.DEFAULT_TIMEOUT_SECONDS):\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " self.logger.debug(\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " \"{name} shut down event received; closing.\".format(\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " name=self.thread_name\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " )\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " )\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " break\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " else:\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " self.main_loop()\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 110, + "line": " continue\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 131, + "line": " def main_loop(self):\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " \"\"\"\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " The main loop of a thread. Run this loop if we haven't received any shutdown events in the last\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " timeout seconds. Normally this is used to read from a queue; the func can return an argument that\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " indicates how long the function took to execute, and to correct the waiting time on the next\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " interval - this is useful if you want the function to run at a fixed interval.\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " :return: None\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " \"\"\"\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " try:\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " corrected_time = self.func()\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " except Exception as e:\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " self.logger.warning(\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " \"Got an exception running {func}: {e}\".format(func=self.func, e=str(e))\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " )\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " corrected_time = 0\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": "\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " wait = self.wait - (corrected_time if corrected_time is not None else 0)\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": "\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " if wait > 0:\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 131, + "line": " time.sleep(wait)\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 134, + "line": " def stop(self):\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 134, + "line": " self.shutdown_event.set()\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 137, + "line": " def shutdown(self):\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 137, + "line": " self.stop()\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 138, + "line": "\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 138 + }, + { + "end_region_line": 139, + "line": "\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 152, + "line": "def create_db_url(\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " db_type, path=None, name=None, password=None, user=None, host=None, port=None\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": "):\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " if db_type == \"sqlite\":\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " return \"sqlite:///{path}\".format(path=path)\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " elif db_type == \"postgres\":\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " return \"postgresql://{user}:{password}@{host}{port}/{name}\".format(\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " name=name,\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " password=password,\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " user=user,\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " host=host,\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " port=\":\" + port if port else \"\",\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 152, + "line": " )\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 153, + "line": "\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 153 + }, + { + "end_region_line": 154, + "line": "\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 189, + "line": "def make_connection(db_type, url):\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " if db_type == \"sqlite\":\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " kwargs = dict(\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " connect_args={\"check_same_thread\": False},\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " )\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": "\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " elif db_type == \"postgres\":\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " kwargs = dict(\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " pool_pre_ping=True,\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " client_encoding=\"utf8\",\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " )\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " else:\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " raise Exception(\"Unknown database engine option: {}\".format(db_type))\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": "\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " connection = create_engine(url, **kwargs)\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": "\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " # Add multiprocessing safeguards as recommended by:\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " # https://docs.sqlalchemy.org/en/13/core/pooling.html#pooling-multiprocessing\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " # Don't make a connection before we've added the multiprocessing guards\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " # as otherwise we will have a connection that doesn't have the 'pid' attribute set.\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " @event.listens_for(connection, \"connect\")\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 177, + "line": " def connect(dbapi_connection, connection_record):\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 176 + }, + { + "end_region_line": 177, + "line": " connection_record.info[\"pid\"] = os.getpid()\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 176 + }, + { + "end_region_line": 189, + "line": "\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " @event.listens_for(connection, \"checkout\")\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 187, + "line": " def checkout(dbapi_connection, connection_record, connection_proxy):\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " pid = os.getpid()\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " if connection_record.info[\"pid\"] != pid:\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " connection_record.connection = connection_proxy.connection = None\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " raise exc.DisconnectionError(\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " \"Connection record belongs to pid %s, attempting to check out in pid %s\"\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " % (connection_record.info[\"pid\"], pid)\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 187, + "line": " )\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 189, + "line": "\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 189, + "line": " return connection\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 190, + "line": "\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 190 + }, + { + "end_region_line": 191, + "line": "\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 214, + "line": "def db_connection():\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " db_url = create_db_url(\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " conf.OPTIONS[\"Database\"][\"DATABASE_ENGINE\"],\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " path=conf.OPTIONS[\"Tasks\"][\"JOB_STORAGE_FILEPATH\"],\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " name=conf.OPTIONS[\"Database\"][\"DATABASE_NAME\"],\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " password=conf.OPTIONS[\"Database\"][\"DATABASE_PASSWORD\"],\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " user=conf.OPTIONS[\"Database\"][\"DATABASE_USER\"],\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " host=conf.OPTIONS[\"Database\"][\"DATABASE_HOST\"],\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " port=conf.OPTIONS[\"Database\"][\"DATABASE_PORT\"],\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " )\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " connection = make_connection(\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " conf.OPTIONS[\"Database\"][\"DATABASE_ENGINE\"],\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " db_url,\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " )\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": "\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " # Check if the database is corrupted\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " try:\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " check_sqlite_integrity(connection)\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " except (exc.DatabaseError, sqlite3.DatabaseError):\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " logger.warning(\"Job storage database has been corrupted, regenerating\")\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " repair_sqlite_db(connection)\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": "\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 214, + "line": " return connection\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 215, + "line": "\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 216, + "line": "\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 216 + }, + { + "end_region_line": 252, + "line": "class ProgressTracker:\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 217 + }, + { + "end_region_line": 243, + "line": " def __init__(self, total=100):\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": "\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # set default values\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.progress = 0\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.message = \"\"\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.extra_data = None\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": "\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # store provided arguments\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.total = total\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": "\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # Also check that we are not running Python 2:\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # https://github.com/learningequality/kolibri/issues/6597\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " if sys.version_info[0] == 2:\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.progressbar = None\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " else:\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # Check that we are executing inside a click context\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # as we only want to display progress bars from the command line.\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " try:\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " click.get_current_context()\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # Coerce to an integer for safety, as click uses Python `range` on this\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # value, which requires an integer argument\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # N.B. because we are only doing this in Python3, safe to just use int,\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " # as long is Py2 only\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.progressbar = click.progressbar(length=int(total), width=0)\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " except RuntimeError:\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 243, + "line": " self.progressbar = None\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 252, + "line": "\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 217 + }, + { + "end_region_line": 252, + "line": " def update_progress(self, increment, message):\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": " self.progress += increment\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": "\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": " if self.progressbar:\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": " # Click only enforces integers on the total (because it is implemented assuming a length)\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": " self.progressbar.update(increment)\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": " if message:\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 252, + "line": " self.progressbar.label = message\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 253, + "line": "\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 253 + }, + { + "end_region_line": 254, + "line": "\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 305, + "line": "class JobProgressMixin(object):\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " \"\"\"A mixin with convenience functions for displaying\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " progress to the user, and updating progress on a job.\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " If ran from the command line, code here displays a progress bar to the\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " user. If ran asynchronously this mixin sends results through the Job class\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " to the main job storage database. Anyone who knows the task id for the\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " job instance can check the intermediate progress by looking at the Job's progress.\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " \"\"\"\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 268, + "line": " def __init__(self, *args, **kwargs):\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 268, + "line": " self.progresstracker = None\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 268, + "line": " self.job = get_current_job()\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 268, + "line": " super(JobProgressMixin, self).__init__(*args, **kwargs)\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 278, + "line": " def update_progress(self, increment=1, message=\"\", extra_data=None):\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " if self.progresstracker:\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " self.progresstracker.update_progress(increment, message)\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " if self.job:\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " self.job.update_progress(\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " self.job.progress + increment, self.job.total_progress\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " )\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " if extra_data and isinstance(extra_data, dict):\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 278, + "line": " self.job.update_metadata(**extra_data)\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 282, + "line": " def update_job_metadata(self, **kwargs):\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 280 + }, + { + "end_region_line": 282, + "line": " if self.job:\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 280 + }, + { + "end_region_line": 282, + "line": " self.job.update_metadata(**kwargs)\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 280 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 286, + "line": " def check_for_cancel(self):\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 284 + }, + { + "end_region_line": 286, + "line": " if self.job:\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 284 + }, + { + "end_region_line": 286, + "line": " self.job.check_for_cancel()\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 284 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 292, + "line": " def start_progress(self, total=100):\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 292, + "line": " self.progresstracker = ProgressTracker(total=total)\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 292, + "line": " if self.job:\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 292, + "line": " self.job.update_progress(0, total)\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 292, + "line": " return self\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 295, + "line": " def __enter__(self):\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 294 + }, + { + "end_region_line": 295, + "line": " return self.update_progress\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 294 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 298, + "line": " def __exit__(self, *args, **kwargs):\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 298, + "line": " self.progresstracker = None\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 305, + "line": "\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 305, + "line": " def is_cancelled(self):\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 305, + "line": " try:\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 305, + "line": " self.check_for_cancel()\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 305, + "line": " return False\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 305, + "line": " except (UserCancelledError, KeyError):\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 305, + "line": " return True\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 306, + "line": "\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 307, + "line": "\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 307 + }, + { + "end_region_line": 350, + "line": "def fd_safe_executor(fds_per_task=2):\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " \"\"\"\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " Context manager to give an executor that should be safe for not overloading\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " file descriptors.\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " \"\"\"\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # We should be deferring to conf.OPTIONS[\"Tasks\"][\"USE_WORKER_MULTIPROCESSING\"]\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # for this value, but unfortunately, the current way that the import logic\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # is setup relies on shared memory that can only be used with threads.\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " use_multiprocessing = False\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": "\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " executor = (\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " concurrent.futures.ProcessPoolExecutor\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " if use_multiprocessing\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " else concurrent.futures.ThreadPoolExecutor\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " )\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": "\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " max_workers = 10\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": "\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " if not use_multiprocessing:\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # If we're not using multiprocessing for workers, we may need\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # to limit the number of workers depending on the number of allowed\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # file descriptors.\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # This is a heuristic method, where we know there can be issues if\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # the max number of file descriptors for a process is 256, and we use 10\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # workers, with potentially 4 concurrent tasks downloading files.\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # The number of concurrent tasks that might be downloading files is determined\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # by the number of regular workers running in the task runner\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # (although the high priority task queue could also be running a channel database download).\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " server_reserved_fd_count = (\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " FD_PER_THREAD * conf.OPTIONS[\"Server\"][\"CHERRYPY_THREAD_POOL\"]\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " )\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " max_descriptors_per_task = (\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " get_fd_limit() - server_reserved_fd_count\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " ) / conf.OPTIONS[\"Tasks\"][\"REGULAR_PRIORITY_WORKERS\"]\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # Each task only needs to have a maximum of `fds_per_task` open file descriptors at once.\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # To add tolerance, we divide the number of file descriptors that could be allocated to\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # this task by double this number which should give us leeway in case of unforeseen\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " # descriptor use during the process.\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " max_workers = min(\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " max_workers, min(1, max_descriptors_per_task // (fds_per_task * 2))\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " )\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": "\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 350, + "line": " return executor(max_workers=max_workers)\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + } + ], + "percent_cpu_time": 2.0850689004500924 + }, + "/home/richard/github/kolibri/kolibri/core/utils/cache.py": { + "functions": [ + { + "line": "CustomDjangoCache.__get_process_cache", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.01865760217172654, + "n_cpu_percent_c": 0.4556380304847576, + "n_cpu_percent_python": 0.40405612460380613, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 2.020144540071216, + "n_usage_fraction": 0.0 + } + ], + "imports": [], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import logging\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "from django.core.cache import caches\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "from django.core.cache import InvalidCacheBackendError\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "from django.utils.functional import SimpleLazyObject\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 15, + "line": "def __get_process_cache():\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 15, + "line": " try:\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 15, + "line": " return caches[\"process_cache\"]\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.01865760217172654, + "n_cpu_percent_c": 0.4556380304847576, + "n_cpu_percent_python": 0.40405612460380613, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 2.020144540071216, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 15, + "line": " except InvalidCacheBackendError:\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 15, + "line": " return caches[\"default\"]\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 16, + "line": "\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "process_cache = SimpleLazyObject(__get_process_cache)\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 63, + "line": "class RedisSettingsHelper(object):\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 63, + "line": " \"\"\"\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 63, + "line": " Small wrapper for the Redis client to explicitly get/set values from the client\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 63, + "line": " \"\"\"\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 31, + "line": " def __init__(self, client):\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 31, + "line": " \"\"\"\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 31, + "line": " :type client: redis.Redis\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 31, + "line": " \"\"\"\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 31, + "line": " self.client = client\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 31, + "line": " self.changed = False\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 34, + "line": " def get(self, key, default_value=None):\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": " return self.client.config_get(key).get(key, default_value)\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 39, + "line": " def set(self, key, value):\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 39, + "line": " self.changed = True\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 39, + "line": " logger.info(\"Configuring Redis: {} {}\".format(key, value))\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 39, + "line": " return self.client.config_set(key, value)\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 42, + "line": " def get_used_memory(self):\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": " return self.client.info(section=\"memory\").get(\"used_memory\")\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 45, + "line": " def get_maxmemory(self):\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": " return int(self.get(\"maxmemory\", default_value=0))\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 48, + "line": " def set_maxmemory(self, maxmemory):\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": " return self.set(\"maxmemory\", maxmemory)\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 51, + "line": " def get_maxmemory_policy(self):\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": " return self.get(\"maxmemory-policy\", default_value=\"noeviction\")\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 54, + "line": " def set_maxmemory_policy(self, policy):\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": " return self.set(\"maxmemory-policy\", policy)\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 63, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 63, + "line": " def save(self):\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " \"\"\"\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " Saves the changes to the redis.conf using the CONFIG REWRITE command\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " \"\"\"\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " if self.changed:\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " logger.info(\"Overwriting Redis config\")\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " self.client.config_rewrite()\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 63, + "line": " self.changed = False\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + } + ], + "percent_cpu_time": 2.87983869515978 + }, + "/home/richard/github/kolibri/kolibri/deployment/default/settings/base.py": { + "functions": [], + "imports": [ + "from __future__ import absolute_import", + "from __future__ import print_function", + "from __future__ import unicode_literals", + "import os", + "import sys", + "from six.moves.urllib.parse import urljoin", + "import psycopg2" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "# -*- coding: utf-8 -*-\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "\"\"\"\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "Django settings for kolibri project.\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "For more information on this file, see\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "https://docs.djangoproject.com/en/1.11/topics/settings/\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "For the full list of settings and their values, see\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "https://docs.djangoproject.com/en/1.11/ref/settings/\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "\"\"\"\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from __future__ import absolute_import\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from __future__ import print_function\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from __future__ import unicode_literals\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "import os\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "import sys\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "import pytz\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from django.conf import locale\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from morango.constants import settings as morango_settings\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from six.moves.urllib.parse import urljoin\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from tzlocal import get_localzone\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "import kolibri\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from kolibri.deployment.default.cache import CACHES\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from kolibri.deployment.default.sqlite_db_names import ADDITIONAL_SQLITE_DATABASES\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "from kolibri.plugins.utils.settings import apply_settings\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "from kolibri.utils import conf\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from kolibri.utils import i18n\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from kolibri.utils.logger import get_logging_config\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "try:\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": " isolation_level = None\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": " import psycopg2 # noqa\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06199313285295032, + "n_cpu_percent_c": 0.5472539812944129, + "n_cpu_percent_python": 0.6712734246893325, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.009962902041712728, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": " isolation_level = psycopg2.extensions.ISOLATION_LEVEL_SERIALIZABLE\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "except ImportError:\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": " pass\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 40, + "line": "\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 41, + "line": "\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "if not os.path.exists(conf.KOLIBRI_HOME):\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 43, + "line": " raise RuntimeError(\"The KOLIBRI_HOME dir does not exist\")\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 44, + "line": "\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "# Build paths inside the project like this: os.path.join(BASE_DIR, ...)\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 46, + "line": "# import kolibri, so we can get the path to the module.\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 47, + "line": "# we load other utilities related to i18n\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": "# This is essential! We load the kolibri conf INSIDE the Django conf\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 48 + }, + { + "end_region_line": 49, + "line": "\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 49 + }, + { + "end_region_line": 50, + "line": "KOLIBRI_MODULE_PATH = os.path.dirname(kolibri.__file__)\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 52, + "line": "BASE_DIR = os.path.abspath(os.path.dirname(__name__))\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 53, + "line": "\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": "LOCALE_PATHS = [os.path.join(KOLIBRI_MODULE_PATH, \"locale\")]\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 54 + }, + { + "end_region_line": 55, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 56, + "line": "# Quick-start development settings - unsuitable for production\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 57, + "line": "# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 59, + "line": "# SECURITY WARNING: keep the secret key used in production secret!\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": "SECRET_KEY = \"f@ey3)y^03r9^@mou97apom*+c1m#b1!cwbm50^s4yk72xce27\"\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 61, + "line": "\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 62, + "line": "# SECURITY WARNING: don't run with debug turned on in production!\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 62 + }, + { + "end_region_line": 63, + "line": "DEBUG = conf.OPTIONS[\"Server\"][\"DEBUG\"]\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 64, + "line": "\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 64 + }, + { + "end_region_line": 65, + "line": "ALLOWED_HOSTS = [\"*\"]\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 65 + }, + { + "end_region_line": 66, + "line": "\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 67, + "line": "# Application definition\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 68, + "line": "\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 69, + "line": "INSTALLED_APPS = [\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 70, + "line": " \"kolibri.core\",\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 70 + }, + { + "end_region_line": 71, + "line": " \"django.contrib.admin\",\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 72, + "line": " \"django.contrib.auth\",\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 72 + }, + { + "end_region_line": 73, + "line": " \"django.contrib.contenttypes\",\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 74, + "line": " \"django.contrib.sessions\",\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 75, + "line": " \"django.contrib.messages\",\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 75 + }, + { + "end_region_line": 76, + "line": " \"django.contrib.staticfiles\",\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 76 + }, + { + "end_region_line": 77, + "line": " \"django_filters\",\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 78, + "line": " \"kolibri.core.auth.apps.KolibriAuthConfig\",\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 79, + "line": " \"kolibri.core.bookmarks\",\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 79 + }, + { + "end_region_line": 80, + "line": " \"kolibri.core.content\",\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 81, + "line": " \"kolibri.core.logger\",\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 81 + }, + { + "end_region_line": 82, + "line": " \"kolibri.core.notifications.apps.KolibriNotificationsConfig\",\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 82 + }, + { + "end_region_line": 83, + "line": " \"kolibri.core.tasks.apps.KolibriTasksConfig\",\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 83 + }, + { + "end_region_line": 84, + "line": " \"kolibri.core.deviceadmin\",\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 84 + }, + { + "end_region_line": 85, + "line": " \"kolibri.core.webpack\",\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 86, + "line": " \"kolibri.core.exams\",\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 87, + "line": " \"kolibri.core.device\",\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 88, + "line": " \"kolibri.core.discovery\",\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 89, + "line": " \"kolibri.core.lessons\",\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 89 + }, + { + "end_region_line": 90, + "line": " \"kolibri.core.analytics\",\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 90 + }, + { + "end_region_line": 91, + "line": " \"rest_framework\",\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 91 + }, + { + "end_region_line": 92, + "line": " \"django_js_reverse\",\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 93, + "line": " \"jsonfield\",\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 94, + "line": " \"morango\",\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 94 + }, + { + "end_region_line": 95, + "line": "]\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 95 + }, + { + "end_region_line": 96, + "line": "\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 96 + }, + { + "end_region_line": 97, + "line": "MIDDLEWARE = [\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 98, + "line": " \"kolibri.core.analytics.middleware.cherrypy_access_log_middleware\",\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 99, + "line": " \"kolibri.core.device.middleware.ProvisioningErrorHandler\",\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 100, + "line": " \"kolibri.core.device.middleware.DatabaseBusyErrorHandler\",\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 100 + }, + { + "end_region_line": 101, + "line": " \"django.middleware.cache.UpdateCacheMiddleware\",\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 102, + "line": " \"kolibri.core.analytics.middleware.MetricsMiddleware\",\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 103, + "line": " \"kolibri.core.auth.middleware.KolibriSessionMiddleware\",\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 103 + }, + { + "end_region_line": 104, + "line": " \"kolibri.core.device.middleware.KolibriLocaleMiddleware\",\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 105, + "line": " \"django.middleware.common.CommonMiddleware\",\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 106, + "line": " \"django.middleware.csrf.CsrfViewMiddleware\",\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 107, + "line": " \"kolibri.core.auth.middleware.CustomAuthenticationMiddleware\",\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 108, + "line": " \"django.contrib.messages.middleware.MessageMiddleware\",\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 108 + }, + { + "end_region_line": 109, + "line": " \"django.middleware.clickjacking.XFrameOptionsMiddleware\",\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 109 + }, + { + "end_region_line": 110, + "line": " \"django.middleware.security.SecurityMiddleware\",\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 110 + }, + { + "end_region_line": 111, + "line": " \"django.middleware.cache.FetchFromCacheMiddleware\",\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 111 + }, + { + "end_region_line": 112, + "line": "]\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 112 + }, + { + "end_region_line": 113, + "line": "\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 113 + }, + { + "end_region_line": 114, + "line": "# By default don't cache anything unless it explicitly requests it to!\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 114 + }, + { + "end_region_line": 115, + "line": "CACHE_MIDDLEWARE_SECONDS = 0\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 115 + }, + { + "end_region_line": 116, + "line": "\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 117, + "line": "CACHE_MIDDLEWARE_KEY_PREFIX = \"pages\"\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 117 + }, + { + "end_region_line": 118, + "line": "\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 119, + "line": "CACHES = CACHES\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 119 + }, + { + "end_region_line": 120, + "line": "\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 120 + }, + { + "end_region_line": 121, + "line": "ROOT_URLCONF = \"kolibri.deployment.default.urls\"\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 122, + "line": "\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 123, + "line": "TEMPLATES = [\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 123 + }, + { + "end_region_line": 124, + "line": " {\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 125, + "line": " \"BACKEND\": \"django.template.backends.django.DjangoTemplates\",\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 125 + }, + { + "end_region_line": 126, + "line": " \"DIRS\": [],\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 127, + "line": " \"APP_DIRS\": True,\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 127 + }, + { + "end_region_line": 128, + "line": " \"OPTIONS\": {\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 128 + }, + { + "end_region_line": 129, + "line": " \"context_processors\": [\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 129 + }, + { + "end_region_line": 130, + "line": " \"django.template.context_processors.debug\",\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 130 + }, + { + "end_region_line": 131, + "line": " \"django.template.context_processors.request\",\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 131 + }, + { + "end_region_line": 132, + "line": " \"django.contrib.auth.context_processors.auth\",\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 132 + }, + { + "end_region_line": 133, + "line": " \"django.contrib.messages.context_processors.messages\",\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 134, + "line": " \"kolibri.core.context_processors.custom_context_processor.developer_mode\",\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 134 + }, + { + "end_region_line": 135, + "line": " ]\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 136, + "line": " },\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 137, + "line": " }\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 137 + }, + { + "end_region_line": 138, + "line": "]\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 138 + }, + { + "end_region_line": 139, + "line": "\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 140, + "line": "WSGI_APPLICATION = \"kolibri.deployment.default.wsgi.application\"\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 141, + "line": "\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 141 + }, + { + "end_region_line": 142, + "line": "\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 142 + }, + { + "end_region_line": 143, + "line": "# Database\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 143 + }, + { + "end_region_line": 144, + "line": "# https://docs.djangoproject.com/en/1.11/ref/settings/#databases\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 144 + }, + { + "end_region_line": 145, + "line": "\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 145 + }, + { + "end_region_line": 146, + "line": "if conf.OPTIONS[\"Database\"][\"DATABASE_ENGINE\"] == \"sqlite\":\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 146 + }, + { + "end_region_line": 147, + "line": " DATABASES = {\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 147 + }, + { + "end_region_line": 148, + "line": " \"default\": {\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 149, + "line": " \"ENGINE\": \"django.db.backends.sqlite3\",\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 149 + }, + { + "end_region_line": 150, + "line": " \"NAME\": os.path.join(\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 150 + }, + { + "end_region_line": 151, + "line": " conf.KOLIBRI_HOME,\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 151 + }, + { + "end_region_line": 152, + "line": " conf.OPTIONS[\"Database\"][\"DATABASE_NAME\"] or \"db.sqlite3\",\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 152 + }, + { + "end_region_line": 153, + "line": " ),\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 153 + }, + { + "end_region_line": 154, + "line": " \"OPTIONS\": {\"timeout\": 100},\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 155, + "line": " },\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 155 + }, + { + "end_region_line": 156, + "line": " }\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 156 + }, + { + "end_region_line": 157, + "line": "\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 157 + }, + { + "end_region_line": 163, + "line": " for additional_db in ADDITIONAL_SQLITE_DATABASES:\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 163, + "line": " DATABASES[additional_db] = {\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 163, + "line": " \"ENGINE\": \"django.db.backends.sqlite3\",\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 163, + "line": " \"NAME\": os.path.join(conf.KOLIBRI_HOME, \"{}.sqlite3\".format(additional_db)),\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 163, + "line": " \"OPTIONS\": {\"timeout\": 100},\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 163, + "line": " }\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 164 + }, + { + "end_region_line": 165, + "line": " DATABASE_ROUTERS = (\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 165 + }, + { + "end_region_line": 166, + "line": " \"kolibri.core.notifications.models.NotificationsRouter\",\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 167, + "line": " \"kolibri.core.device.models.SyncQueueRouter\",\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 167 + }, + { + "end_region_line": 168, + "line": " \"kolibri.core.discovery.models.NetworkLocationRouter\",\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 169, + "line": " )\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 169 + }, + { + "end_region_line": 170, + "line": "\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 170 + }, + { + "end_region_line": 171, + "line": "elif conf.OPTIONS[\"Database\"][\"DATABASE_ENGINE\"] == \"postgres\":\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 171 + }, + { + "end_region_line": 172, + "line": " DATABASES = {\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 173, + "line": " \"default\": {\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 173 + }, + { + "end_region_line": 174, + "line": " \"ENGINE\": \"django.db.backends.postgresql\",\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 174 + }, + { + "end_region_line": 175, + "line": " \"NAME\": conf.OPTIONS[\"Database\"][\"DATABASE_NAME\"],\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 175 + }, + { + "end_region_line": 176, + "line": " \"PASSWORD\": conf.OPTIONS[\"Database\"][\"DATABASE_PASSWORD\"],\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 176 + }, + { + "end_region_line": 177, + "line": " \"USER\": conf.OPTIONS[\"Database\"][\"DATABASE_USER\"],\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 177 + }, + { + "end_region_line": 178, + "line": " \"HOST\": conf.OPTIONS[\"Database\"][\"DATABASE_HOST\"],\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 178 + }, + { + "end_region_line": 179, + "line": " \"PORT\": conf.OPTIONS[\"Database\"][\"DATABASE_PORT\"],\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 179 + }, + { + "end_region_line": 180, + "line": " \"TEST\": {\"NAME\": \"test\"},\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 180 + }, + { + "end_region_line": 181, + "line": " },\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 181 + }, + { + "end_region_line": 182, + "line": " \"default-serializable\": {\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 182 + }, + { + "end_region_line": 183, + "line": " \"ENGINE\": \"django.db.backends.postgresql\",\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 183 + }, + { + "end_region_line": 184, + "line": " \"NAME\": conf.OPTIONS[\"Database\"][\"DATABASE_NAME\"],\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 184 + }, + { + "end_region_line": 185, + "line": " \"PASSWORD\": conf.OPTIONS[\"Database\"][\"DATABASE_PASSWORD\"],\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 185 + }, + { + "end_region_line": 186, + "line": " \"USER\": conf.OPTIONS[\"Database\"][\"DATABASE_USER\"],\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 187, + "line": " \"HOST\": conf.OPTIONS[\"Database\"][\"DATABASE_HOST\"],\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 187 + }, + { + "end_region_line": 188, + "line": " \"PORT\": conf.OPTIONS[\"Database\"][\"DATABASE_PORT\"],\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 188 + }, + { + "end_region_line": 189, + "line": " \"OPTIONS\": {\"isolation_level\": isolation_level},\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 189 + }, + { + "end_region_line": 190, + "line": " \"TEST\": {\"MIRROR\": \"default\"},\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 190 + }, + { + "end_region_line": 191, + "line": " },\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 192, + "line": " }\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 192 + }, + { + "end_region_line": 193, + "line": "\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 193 + }, + { + "end_region_line": 194, + "line": "\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 194 + }, + { + "end_region_line": 195, + "line": "# Internationalization\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 196, + "line": "# https://docs.djangoproject.com/en/1.11/topics/i18n/\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 197, + "line": "\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 197 + }, + { + "end_region_line": 198, + "line": "# For language names, see:\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 198 + }, + { + "end_region_line": 199, + "line": "# https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 199 + }, + { + "end_region_line": 200, + "line": "# http://helpsharepointvision.nevron.com/Culture_Table.html\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 200 + }, + { + "end_region_line": 201, + "line": "\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 201 + }, + { + "end_region_line": 202, + "line": "# django-specific format, e.g.: [ ('bn-bd', '\u09ac\u09be\u0982\u09b2\u09be'), ('en', 'English'), ...]\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 202 + }, + { + "end_region_line": 203, + "line": "LANGUAGES = [\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 204, + "line": " (\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 204 + }, + { + "end_region_line": 205, + "line": " i18n.KOLIBRI_LANGUAGE_INFO[lang_code][\"intl_code\"],\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 206, + "line": " i18n.KOLIBRI_LANGUAGE_INFO[lang_code][\"language_name\"],\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 206 + }, + { + "end_region_line": 207, + "line": " )\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 207 + }, + { + "end_region_line": 208, + "line": " for lang_code in conf.OPTIONS[\"Deployment\"][\"LANGUAGES\"]\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 208 + }, + { + "end_region_line": 209, + "line": " if lang_code in i18n.KOLIBRI_LANGUAGE_INFO\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 209 + }, + { + "end_region_line": 210, + "line": "]\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 210 + }, + { + "end_region_line": 211, + "line": "\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 211 + }, + { + "end_region_line": 212, + "line": "# Some languages are not supported out-of-the-box by Django\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 212 + }, + { + "end_region_line": 213, + "line": "# Here, we use the language code in Intl.js\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 214, + "line": "EXTRA_LANG_INFO = {\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 214 + }, + { + "end_region_line": 215, + "line": " \"ff-cm\": {\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 216, + "line": " \"bidi\": False,\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 216 + }, + { + "end_region_line": 217, + "line": " \"code\": \"ff-cm\",\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 217 + }, + { + "end_region_line": 218, + "line": " \"name\": \"Fulfulde (Cameroon)\",\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 218 + }, + { + "end_region_line": 219, + "line": " \"name_local\": \"Fulfulde Mbororoore\",\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 219 + }, + { + "end_region_line": 220, + "line": " },\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 220 + }, + { + "end_region_line": 221, + "line": " \"el\": {\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 221 + }, + { + "end_region_line": 222, + "line": " \"bidi\": False,\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 223, + "line": " \"code\": \"el\",\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 223 + }, + { + "end_region_line": 224, + "line": " \"name\": \"Greek\",\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 224 + }, + { + "end_region_line": 225, + "line": " \"name_local\": \"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac\",\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 226, + "line": " },\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 227, + "line": " \"es-419\": {\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 227 + }, + { + "end_region_line": 228, + "line": " \"bidi\": False,\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 228 + }, + { + "end_region_line": 229, + "line": " \"code\": \"es-419\",\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 229 + }, + { + "end_region_line": 230, + "line": " \"name\": \"Spanish (Latin America)\",\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 231, + "line": " \"name_local\": \"Espa\u00f1ol\",\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 231 + }, + { + "end_region_line": 232, + "line": " },\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 232 + }, + { + "end_region_line": 233, + "line": " \"es-es\": {\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 233 + }, + { + "end_region_line": 234, + "line": " \"bidi\": False,\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 234 + }, + { + "end_region_line": 235, + "line": " \"code\": \"es-es\",\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 236, + "line": " \"name\": \"Spanish (Spain)\",\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 236 + }, + { + "end_region_line": 237, + "line": " \"name_local\": \"Espa\u00f1ol (Espa\u00f1a)\",\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 237 + }, + { + "end_region_line": 238, + "line": " },\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 238 + }, + { + "end_region_line": 239, + "line": " \"fr-ht\": {\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 239 + }, + { + "end_region_line": 240, + "line": " \"bidi\": False,\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 240 + }, + { + "end_region_line": 241, + "line": " \"code\": \"fr-ht\",\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 241 + }, + { + "end_region_line": 242, + "line": " \"name\": \"Haitian Creole\",\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 242 + }, + { + "end_region_line": 243, + "line": " \"name_local\": \"Krey\u00f2l ayisyen\",\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 243 + }, + { + "end_region_line": 244, + "line": " },\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 244 + }, + { + "end_region_line": 245, + "line": " \"gu-in\": {\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 246, + "line": " \"bidi\": False,\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 247, + "line": " \"code\": \"gu-in\",\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 247 + }, + { + "end_region_line": 248, + "line": " \"name\": \"Gujarati\",\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 248 + }, + { + "end_region_line": 249, + "line": " \"name_local\": \"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0\",\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 249 + }, + { + "end_region_line": 250, + "line": " },\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 250 + }, + { + "end_region_line": 251, + "line": " \"ha\": {\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 252, + "line": " \"bidi\": False,\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 252 + }, + { + "end_region_line": 253, + "line": " \"code\": \"ha\",\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 253 + }, + { + "end_region_line": 254, + "line": " \"name\": \"Hausa\",\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 255, + "line": " \"name_local\": \"Hausa\",\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 255 + }, + { + "end_region_line": 256, + "line": " },\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 257, + "line": " \"ht\": {\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 257 + }, + { + "end_region_line": 258, + "line": " \"bidi\": False,\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 259, + "line": " \"code\": \"ht\",\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 259 + }, + { + "end_region_line": 260, + "line": " \"name\": \"Haitian Creole\",\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 260 + }, + { + "end_region_line": 261, + "line": " \"name_local\": \"Krey\u00f2l Ayisyen\",\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 261 + }, + { + "end_region_line": 262, + "line": " },\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 262 + }, + { + "end_region_line": 263, + "line": " \"id\": {\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 263 + }, + { + "end_region_line": 264, + "line": " \"bidi\": False,\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 264 + }, + { + "end_region_line": 265, + "line": " \"code\": \"id\",\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 265 + }, + { + "end_region_line": 266, + "line": " \"name\": \"Indonesian\",\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 267, + "line": " \"name_local\": \"Bahasa Indonesia\",\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 268, + "line": " },\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 268 + }, + { + "end_region_line": 269, + "line": " \"ka\": {\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 269 + }, + { + "end_region_line": 270, + "line": " \"bidi\": False,\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 271, + "line": " \"code\": \"ka\",\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 271 + }, + { + "end_region_line": 272, + "line": " \"name\": \"Georgian\",\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 272 + }, + { + "end_region_line": 273, + "line": " \"name_local\": \"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8\",\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 274, + "line": " },\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 274 + }, + { + "end_region_line": 275, + "line": " \"km\": {\"bidi\": False, \"code\": \"km\", \"name\": \"Khmer\", \"name_local\": \"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a\"},\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 276, + "line": " \"nyn\": {\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 277, + "line": " \"bidi\": False,\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 277 + }, + { + "end_region_line": 278, + "line": " \"code\": \"nyn\",\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 278 + }, + { + "end_region_line": 279, + "line": " \"name\": \"Chichewa, Chewa, Nyanja\",\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 279 + }, + { + "end_region_line": 280, + "line": " \"name_local\": \"Chinyanja\",\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 280 + }, + { + "end_region_line": 281, + "line": " },\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 281 + }, + { + "end_region_line": 282, + "line": " \"pt-mz\": {\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 282 + }, + { + "end_region_line": 283, + "line": " \"bidi\": False,\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 283 + }, + { + "end_region_line": 284, + "line": " \"code\": \"pt-mz\",\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 284 + }, + { + "end_region_line": 285, + "line": " \"name\": \"Portuguese (Mozambique)\",\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 285 + }, + { + "end_region_line": 286, + "line": " \"name_local\": \"Portugu\u00eas (Mo\u00e7ambique)\",\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 286 + }, + { + "end_region_line": 287, + "line": " },\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 287 + }, + { + "end_region_line": 288, + "line": " \"uk\": {\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 289, + "line": " \"bidi\": False,\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 289 + }, + { + "end_region_line": 290, + "line": " \"code\": \"uk\",\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 290 + }, + { + "end_region_line": 291, + "line": " \"name\": \"Ukrainian\",\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 292, + "line": " \"name_local\": \"\u0423\u043a\u0440\u0430\u0457\u0301\u043d\u0441\u044c\u043a\u0430 \u043c\u043e\u0301\u0432\u0430\",\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 292 + }, + { + "end_region_line": 293, + "line": " },\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 293 + }, + { + "end_region_line": 294, + "line": " \"zh\": {\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 294 + }, + { + "end_region_line": 295, + "line": " \"bidi\": False,\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 295 + }, + { + "end_region_line": 296, + "line": " \"code\": \"zh-hans\",\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 296 + }, + { + "end_region_line": 297, + "line": " \"name\": \"Simplified Chinese\",\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 297 + }, + { + "end_region_line": 298, + "line": " \"name_local\": \"\u7b80\u4f53\u4e2d\u6587\",\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 298 + }, + { + "end_region_line": 299, + "line": " },\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 300, + "line": " \"yo\": {\"bidi\": False, \"code\": \"yo\", \"name\": \"Yoruba\", \"name_local\": \"Yor\u00f9b\u00e1\"},\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 300 + }, + { + "end_region_line": 301, + "line": " \"zu\": {\"bidi\": False, \"code\": \"zu\", \"name\": \"Zulu\", \"name_local\": \"isiZulu\"},\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 301 + }, + { + "end_region_line": 302, + "line": "}\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 302 + }, + { + "end_region_line": 303, + "line": "locale.LANG_INFO.update(EXTRA_LANG_INFO)\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 303 + }, + { + "end_region_line": 304, + "line": "\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 304 + }, + { + "end_region_line": 305, + "line": "default_language = i18n.get_system_default_language()\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 305 + }, + { + "end_region_line": 306, + "line": "\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 307, + "line": "LANGUAGE_CODE = (\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 307 + }, + { + "end_region_line": 308, + "line": " default_language\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 308 + }, + { + "end_region_line": 309, + "line": " if default_language in conf.OPTIONS[\"Deployment\"][\"LANGUAGES\"]\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 309 + }, + { + "end_region_line": 310, + "line": " else conf.OPTIONS[\"Deployment\"][\"LANGUAGES\"][0]\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 310 + }, + { + "end_region_line": 311, + "line": ")\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 311 + }, + { + "end_region_line": 312, + "line": "\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 312 + }, + { + "end_region_line": 313, + "line": "try:\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 313 + }, + { + "end_region_line": 314, + "line": " TIME_ZONE = get_localzone().zone\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.049418409538609084, + "n_cpu_percent_c": 0.4635633452398485, + "n_cpu_percent_python": 0.5351119307419119, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.2643602067788772, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 315, + "line": "except (pytz.UnknownTimeZoneError, ValueError):\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 315 + }, + { + "end_region_line": 316, + "line": " # Do not fail at this point because a timezone was not\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 316 + }, + { + "end_region_line": 317, + "line": " # detected.\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 317 + }, + { + "end_region_line": 318, + "line": " TIME_ZONE = pytz.utc.zone\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 318 + }, + { + "end_region_line": 319, + "line": "\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 319 + }, + { + "end_region_line": 320, + "line": "# Fixes https://github.com/regebro/tzlocal/issues/44\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 320 + }, + { + "end_region_line": 321, + "line": "# tzlocal 1.4 returns 'local' if unable to detect the timezone,\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 321 + }, + { + "end_region_line": 322, + "line": "# and this TZ id is invalid\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 322 + }, + { + "end_region_line": 323, + "line": "if TIME_ZONE == \"local\":\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 323 + }, + { + "end_region_line": 324, + "line": " TIME_ZONE = pytz.utc.zone\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 324 + }, + { + "end_region_line": 325, + "line": "\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 325 + }, + { + "end_region_line": 326, + "line": "USE_I18N = True\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 326 + }, + { + "end_region_line": 327, + "line": "\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 327 + }, + { + "end_region_line": 328, + "line": "USE_L10N = True\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 328 + }, + { + "end_region_line": 329, + "line": "\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 329 + }, + { + "end_region_line": 330, + "line": "USE_TZ = True\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 330 + }, + { + "end_region_line": 331, + "line": "\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 331 + }, + { + "end_region_line": 332, + "line": "# Static files (CSS, JavaScript, Images)\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 332 + }, + { + "end_region_line": 333, + "line": "# https://docs.djangoproject.com/en/1.11/howto/static-files/\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 333 + }, + { + "end_region_line": 334, + "line": "\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 334 + }, + { + "end_region_line": 335, + "line": "path_prefix = conf.OPTIONS[\"Deployment\"][\"URL_PATH_PREFIX\"]\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 335 + }, + { + "end_region_line": 336, + "line": "\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 336 + }, + { + "end_region_line": 337, + "line": "if path_prefix != \"/\":\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 338, + "line": " path_prefix = \"/\" + path_prefix\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 338 + }, + { + "end_region_line": 339, + "line": "\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 339 + }, + { + "end_region_line": 340, + "line": "STATIC_URL = urljoin(path_prefix, \"static/\")\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 340 + }, + { + "end_region_line": 341, + "line": "STATIC_ROOT = os.path.join(conf.KOLIBRI_HOME, \"static\")\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 342, + "line": "MEDIA_URL = urljoin(path_prefix, \"media/\")\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 342 + }, + { + "end_region_line": 343, + "line": "MEDIA_ROOT = os.path.join(conf.KOLIBRI_HOME, \"media\")\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 344, + "line": "\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 345, + "line": "FILE_UPLOAD_HANDLERS = [\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 345 + }, + { + "end_region_line": 346, + "line": " \"django.core.files.uploadhandler.TemporaryFileUploadHandler\",\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 346 + }, + { + "end_region_line": 347, + "line": "]\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 347 + }, + { + "end_region_line": 348, + "line": "\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 348 + }, + { + "end_region_line": 349, + "line": "# https://docs.djangoproject.com/en/1.11/ref/settings/#csrf-cookie-path\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 349 + }, + { + "end_region_line": 350, + "line": "# Ensure that our CSRF cookie does not collide with other CSRF cookies\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 350 + }, + { + "end_region_line": 351, + "line": "# set by other Django apps served from the same domain.\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 351 + }, + { + "end_region_line": 352, + "line": "CSRF_COOKIE_PATH = path_prefix\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 352 + }, + { + "end_region_line": 353, + "line": "CSRF_COOKIE_NAME = \"kolibri_csrftoken\"\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 353 + }, + { + "end_region_line": 354, + "line": "\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 354 + }, + { + "end_region_line": 355, + "line": "# https://docs.djangoproject.com/en/1.11/ref/settings/#session-cookie-path\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 355 + }, + { + "end_region_line": 356, + "line": "# Ensure that our session cookie does not collidge with other session cookies\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 356 + }, + { + "end_region_line": 357, + "line": "# set by other Django apps served from the same domain.\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 357 + }, + { + "end_region_line": 358, + "line": "SESSION_COOKIE_PATH = path_prefix\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 358 + }, + { + "end_region_line": 359, + "line": "\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 359 + }, + { + "end_region_line": 360, + "line": "# https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-LOGGING\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 360 + }, + { + "end_region_line": 361, + "line": "# https://docs.djangoproject.com/en/1.11/topics/logging/\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 361 + }, + { + "end_region_line": 362, + "line": "\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 363, + "line": "LOGGING = get_logging_config(\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 363 + }, + { + "end_region_line": 364, + "line": " conf.LOG_ROOT,\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 364 + }, + { + "end_region_line": 365, + "line": " debug=DEBUG,\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 365 + }, + { + "end_region_line": 366, + "line": " debug_database=conf.OPTIONS[\"Server\"][\"DEBUG_LOG_DATABASE\"],\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 366 + }, + { + "end_region_line": 367, + "line": ")\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 368, + "line": "\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 368 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 369 + }, + { + "end_region_line": 370, + "line": "# Customizing Django auth system\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 371, + "line": "# https://docs.djangoproject.com/en/1.11/topics/auth/customizing/\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 372, + "line": "\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 372 + }, + { + "end_region_line": 373, + "line": "AUTH_USER_MODEL = \"kolibriauth.FacilityUser\"\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 373 + }, + { + "end_region_line": 374, + "line": "\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 374 + }, + { + "end_region_line": 375, + "line": "# Our own custom setting to override the anonymous user model\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 375 + }, + { + "end_region_line": 376, + "line": "\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 376 + }, + { + "end_region_line": 377, + "line": "AUTH_ANONYMOUS_USER_MODEL = \"kolibriauth.KolibriAnonymousUser\"\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 378, + "line": "\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 379, + "line": "AUTHENTICATION_BACKENDS = [\"kolibri.core.auth.backends.FacilityUserBackend\"]\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 379 + }, + { + "end_region_line": 380, + "line": "\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 380 + }, + { + "end_region_line": 381, + "line": "\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 381 + }, + { + "end_region_line": 382, + "line": "# Django REST Framework\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 382 + }, + { + "end_region_line": 383, + "line": "# http://www.django-rest-framework.org/api-guide/settings/\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 384, + "line": "\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 384 + }, + { + "end_region_line": 385, + "line": "REST_FRAMEWORK = {\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 385 + }, + { + "end_region_line": 386, + "line": " \"UNAUTHENTICATED_USER\": \"kolibri.core.auth.models.KolibriAnonymousUser\",\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 386 + }, + { + "end_region_line": 387, + "line": " \"DEFAULT_AUTHENTICATION_CLASSES\": [\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 387 + }, + { + "end_region_line": 388, + "line": " \"rest_framework.authentication.SessionAuthentication\"\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 388 + }, + { + "end_region_line": 389, + "line": " ],\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 389 + }, + { + "end_region_line": 390, + "line": " \"DEFAULT_CONTENT_NEGOTIATION_CLASS\": \"kolibri.core.negotiation.LimitContentNegotiation\",\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 390 + }, + { + "end_region_line": 391, + "line": " \"EXCEPTION_HANDLER\": \"kolibri.core.utils.exception_handler.custom_exception_handler\",\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 391 + }, + { + "end_region_line": 392, + "line": "}\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 392 + }, + { + "end_region_line": 393, + "line": "\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 393 + }, + { + "end_region_line": 394, + "line": "# System warnings to disable\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 394 + }, + { + "end_region_line": 395, + "line": "# see https://docs.djangoproject.com/en/1.11/ref/settings/#silenced-system-checks\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 395 + }, + { + "end_region_line": 396, + "line": "SILENCED_SYSTEM_CHECKS = [\"auth.W004\"]\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 396 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 397 + }, + { + "end_region_line": 398, + "line": "# Configuration for Django JS Reverse\n", + "lineno": 398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 398 + }, + { + "end_region_line": 399, + "line": "# https://github.com/ierror/django-js-reverse#options\n", + "lineno": 399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 399 + }, + { + "end_region_line": 400, + "line": "\n", + "lineno": 400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 401, + "line": "JS_REVERSE_EXCLUDE_NAMESPACES = [\"admin\"]\n", + "lineno": 401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 401 + }, + { + "end_region_line": 402, + "line": "\n", + "lineno": 402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 402 + }, + { + "end_region_line": 403, + "line": "ENABLE_DATA_BOOTSTRAPPING = True\n", + "lineno": 403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 403 + }, + { + "end_region_line": 404, + "line": "\n", + "lineno": 404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 404 + }, + { + "end_region_line": 405, + "line": "# Session configuration\n", + "lineno": 405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 405 + }, + { + "end_region_line": 406, + "line": "\n", + "lineno": 406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 407, + "line": "SESSION_ENGINE = \"django.contrib.sessions.backends.file\"\n", + "lineno": 407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 407 + }, + { + "end_region_line": 408, + "line": "\n", + "lineno": 408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 408 + }, + { + "end_region_line": 409, + "line": "SESSION_FILE_PATH = os.path.join(conf.KOLIBRI_HOME, \"sessions\")\n", + "lineno": 409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 409 + }, + { + "end_region_line": 410, + "line": "\n", + "lineno": 410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 410 + }, + { + "end_region_line": 411, + "line": "SECURE_CONTENT_TYPE_NOSNIFF = True\n", + "lineno": 411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 411 + }, + { + "end_region_line": 412, + "line": "\n", + "lineno": 412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 412 + }, + { + "end_region_line": 413, + "line": "if not os.path.exists(SESSION_FILE_PATH):\n", + "lineno": 413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 414, + "line": " os.mkdir(SESSION_FILE_PATH)\n", + "lineno": 414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 414 + }, + { + "end_region_line": 415, + "line": "\n", + "lineno": 415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 415 + }, + { + "end_region_line": 416, + "line": "SESSION_COOKIE_NAME = \"kolibri\"\n", + "lineno": 416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 416 + }, + { + "end_region_line": 417, + "line": "\n", + "lineno": 417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 417 + }, + { + "end_region_line": 418, + "line": "SESSION_EXPIRE_AT_BROWSER_CLOSE = True\n", + "lineno": 418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 418 + }, + { + "end_region_line": 419, + "line": "\n", + "lineno": 419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 419 + }, + { + "end_region_line": 420, + "line": "SESSION_COOKIE_AGE = 1200\n", + "lineno": 420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 420 + }, + { + "end_region_line": 421, + "line": "\n", + "lineno": 421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 421 + }, + { + "end_region_line": 422, + "line": "apply_settings(sys.modules[__name__])\n", + "lineno": 422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 422 + }, + { + "end_region_line": 423, + "line": "\n", + "lineno": 423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 423 + }, + { + "end_region_line": 424, + "line": "MORANGO_INSTANCE_INFO = os.environ.get(\n", + "lineno": 424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 424 + }, + { + "end_region_line": 425, + "line": " \"MORANGO_INSTANCE_INFO\",\n", + "lineno": 425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 425 + }, + { + "end_region_line": 426, + "line": " \"kolibri.core.auth.constants.morango_sync:CUSTOM_INSTANCE_INFO\",\n", + "lineno": 426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 427, + "line": ")\n", + "lineno": 427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 428, + "line": "# prepend our own Morango Operation to handle custom behaviors during sync\n", + "lineno": 428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 428 + }, + { + "end_region_line": 429, + "line": "SYNC_OPERATIONS = (\"kolibri.core.auth.sync_operations:KolibriSyncOperations\",)\n", + "lineno": 429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 429 + }, + { + "end_region_line": 430, + "line": "MORANGO_INITIALIZE_OPERATIONS = (\n", + "lineno": 430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 430 + }, + { + "end_region_line": 431, + "line": " SYNC_OPERATIONS + morango_settings.MORANGO_INITIALIZE_OPERATIONS\n", + "lineno": 431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 431 + }, + { + "end_region_line": 432, + "line": ")\n", + "lineno": 432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 432 + }, + { + "end_region_line": 433, + "line": "MORANGO_SERIALIZE_OPERATIONS = (\n", + "lineno": 433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 433 + }, + { + "end_region_line": 434, + "line": " SYNC_OPERATIONS + morango_settings.MORANGO_SERIALIZE_OPERATIONS\n", + "lineno": 434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 434 + }, + { + "end_region_line": 435, + "line": ")\n", + "lineno": 435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 435 + }, + { + "end_region_line": 436, + "line": "MORANGO_QUEUE_OPERATIONS = SYNC_OPERATIONS + morango_settings.MORANGO_QUEUE_OPERATIONS\n", + "lineno": 436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 436 + }, + { + "end_region_line": 437, + "line": "MORANGO_TRANSFERRING_OPERATIONS = (\n", + "lineno": 437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 437 + }, + { + "end_region_line": 438, + "line": " SYNC_OPERATIONS + morango_settings.MORANGO_TRANSFERRING_OPERATIONS\n", + "lineno": 438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 438 + }, + { + "end_region_line": 439, + "line": ")\n", + "lineno": 439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 440, + "line": "MORANGO_DEQUEUE_OPERATIONS = (\n", + "lineno": 440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 440 + }, + { + "end_region_line": 441, + "line": " SYNC_OPERATIONS + morango_settings.MORANGO_DEQUEUE_OPERATIONS\n", + "lineno": 441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 441 + }, + { + "end_region_line": 442, + "line": ")\n", + "lineno": 442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 442 + }, + { + "end_region_line": 443, + "line": "MORANGO_DESERIALIZE_OPERATIONS = (\n", + "lineno": 443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 443 + }, + { + "end_region_line": 444, + "line": " SYNC_OPERATIONS + morango_settings.MORANGO_DESERIALIZE_OPERATIONS\n", + "lineno": 444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 445, + "line": ")\n", + "lineno": 445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 445 + }, + { + "end_region_line": 446, + "line": "MORANGO_CLEANUP_OPERATIONS = (\n", + "lineno": 446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 446 + }, + { + "end_region_line": 447, + "line": " SYNC_OPERATIONS + morango_settings.MORANGO_CLEANUP_OPERATIONS\n", + "lineno": 447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 447 + }, + { + "end_region_line": 448, + "line": ")\n", + "lineno": 448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 448 + } + ], + "percent_cpu_time": 2.491525790786096 + }, + "/home/richard/github/kolibri/kolibri/plugins/utils/__init__.py": { + "functions": [ + { + "line": "Registry.initialize_kolibri_plugin", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06250354188539506, + "n_cpu_percent_c": 0.5595579553832495, + "n_cpu_percent_python": 0.6767618784906531, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0 + } + ], + "imports": [ + "import os", + "import shutil", + "import sys", + "from semver import VersionInfo" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import importlib\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "import logging\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import os\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import shutil\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "import sys\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "from django.apps import AppConfig\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from django.apps import apps\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from django.conf import settings as django_settings\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from django.core.exceptions import AppRegistryNotReady\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from django.core.management import call_command\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06223170263216016, + "n_cpu_percent_c": 2.3467267400613627, + "n_cpu_percent_python": 2.695126094576135, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.022301755100651695, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from django.urls import reverse\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from semver import VersionInfo\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "if sys.version_info < (3, 10):\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": " from importlib_metadata import entry_points\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": " from importlib_metadata import distribution\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": " from importlib_metadata import PackageNotFoundError\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "else:\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": " from importlib.metadata import entry_points\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": " from importlib.metadata import distribution\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": " from importlib.metadata import PackageNotFoundError\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "import kolibri\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from kolibri.core.upgrade import matches_version\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from kolibri.core.upgrade import run_upgrades\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "from kolibri.plugins import conf_file\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "from kolibri.plugins import config\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from kolibri.plugins import ConfigDict\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from kolibri.plugins import DEFAULT_PLUGINS\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from kolibri.plugins import KolibriPluginBase\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from kolibri.plugins.hooks import KolibriHook\n", + "lineno": 32, + "memory_samples": [ + [ + 95575937, + 10.000073432922363 + ] + ], + "n_avg_mb": 10.000073432922363, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 10.000073432922363, + "n_malloc_mb": 10.000073432922363, + "n_mallocs": 1, + "n_peak_mb": 10.000073432922363, + "n_python_fraction": 0.9927670000000001, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.19990647754525975, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from kolibri.utils.compat import module_exists\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "from kolibri.utils.conf import KOLIBRI_HOME\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "from kolibri.utils.version import normalize_version_to_semver\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 43, + "line": "class PluginDoesNotExist(Exception):\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 43, + "line": " \"\"\"\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 43, + "line": " This exception is raised when a plugin is initialized but it has no plugin class\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 43, + "line": " \"\"\"\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 44, + "line": "\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 50, + "line": "class PluginLoadsApp(Exception):\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 50, + "line": " \"\"\"\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 50, + "line": " An exception raised in case a kolibri_plugin.py results in loading of the\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 50, + "line": " Django app stack.\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 50, + "line": " \"\"\"\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 52, + "line": "\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 57, + "line": "class MultiplePlugins(Exception):\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 57, + "line": " \"\"\"\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 57, + "line": " An exception raised if more than one plugin is instantiated in a single\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 57, + "line": " kolibri_plugin module.\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 57, + "line": " \"\"\"\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 59, + "line": "\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 65, + "line": "def plugin_url(plugin_class, url_name):\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 65, + "line": " return reverse(\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 65, + "line": " \"kolibri:{namespace}:{url_name}\".format(\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 65, + "line": " namespace=plugin_class.class_module_path(), url_name=url_name\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 65, + "line": " )\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 65, + "line": " )\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 66, + "line": "\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 67, + "line": "\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 71, + "line": "def _is_plugin(class_definition):\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 71, + "line": " return isinstance(class_definition, type) and issubclass(\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 71, + "line": " class_definition, KolibriPluginBase\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 71, + "line": " )\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 72, + "line": "\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 72 + }, + { + "end_region_line": 73, + "line": "\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 82, + "line": "def is_external_plugin(module_path):\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": " \"\"\"\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": " Returns true when the given module is an external plugin.\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": "\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": " Implementation note: does a simple check on the name to see if it's\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": " not prefixed with \"kolibri.\". If so, we know it's not an internal plugin.\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": " \"\"\"\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": "\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 82, + "line": " return not module_path.startswith(\"kolibri.\")\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 83, + "line": "\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 83 + }, + { + "end_region_line": 84, + "line": "\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 84 + }, + { + "end_region_line": 96, + "line": "def _import_python_module(plugin_name):\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " try:\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " importlib.import_module(plugin_name)\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " except ImportError as e:\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " exc_message = str(e)\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " if exc_message.startswith(\"No module named\"):\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " msg = (\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " \"Plugin '{}' does not seem to exist. Is it on the PYTHONPATH?\"\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " ).format(plugin_name)\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " raise PluginDoesNotExist(msg)\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " else:\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 96, + "line": " raise\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 97, + "line": "\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 98, + "line": "\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 132, + "line": "def initialize_plugins_and_hooks(all_classes, plugin_name, initialize_hooks=True):\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " was_configured = django_settings.configured\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " plugin_objects = []\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " for class_definition in all_classes:\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " if _is_plugin(class_definition):\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " # Initialize the class, nothing more happens for now.\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " plugin_objects.append(class_definition())\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " if not was_configured and django_settings.configured:\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " raise PluginLoadsApp(\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " \"Initializing plugin class {} in plugin {} caused Django settings to be configured\".format(\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " class_definition.__name__, plugin_name\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " )\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " )\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " elif issubclass(class_definition, KolibriHook) and initialize_hooks:\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " class_definition.add_hook_to_registries()\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " if not was_configured and django_settings.configured:\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " raise PluginLoadsApp(\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " \"Initializing hook class {} in plugin {} caused Django settings to be configured\".format(\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " class_definition.__name__, plugin_name\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " )\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 119, + "line": " )\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 132, + "line": " if len(plugin_objects) == 0:\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " raise PluginDoesNotExist(\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " \"Plugin '{}' exists but does not define a KolibriPluginBase derived class\".format(\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " plugin_name\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " )\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " )\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " if len(plugin_objects) == 1:\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " plugin_instance = plugin_objects[0]\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " logger.debug(\"Initializing plugin: {}\".format(plugin_name))\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " return plugin_instance\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": "\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " if len(plugin_objects) > 1:\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 132, + "line": " raise MultiplePlugins(\"More than one plugin defined in kolibri_plugin module\")\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 133, + "line": "\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 133 + }, + { + "end_region_line": 134, + "line": "\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 134 + }, + { + "end_region_line": 202, + "line": "def initialize_kolibri_plugin(plugin_name, initialize_hooks=True):\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " \"\"\"\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " Try to load kolibri_plugin from given plugin module identifier\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " In so doing, it will instantiate the KolibriPlugin object if it\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " exists, and also register any hooks found in the module.\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " Set the initialize_hooks argument to False to just retrieve the kolibri plugin without registering\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " its hooks.\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " :returns: the KolibriPlugin object for the module\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " \"\"\"\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " was_configured = django_settings.configured\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # First import the bare plugin name to see if it exists\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # This will raise an exception if not\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " _import_python_module(plugin_name)\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " try:\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # Exceptions are expected to be thrown from here.\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " plugin_module = importlib.import_module(plugin_name + \".kolibri_plugin\")\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06250354188539506, + "n_cpu_percent_c": 0.5595579553832495, + "n_cpu_percent_python": 0.6767618784906531, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " if not was_configured and django_settings.configured:\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " raise PluginLoadsApp(\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " \"Importing plugin module {} caused Django settings to be configured\".format(\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " plugin_name\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " )\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " )\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " logger.debug(\"Loaded kolibri plugin: {}\".format(plugin_name))\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # If no exception is thrown, use this to find the plugin class.\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # Load a list of all class types in module\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # Filter the list to only match the ones that belong to the module\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # and not the ones that have been imported\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " plugin_package = (\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " plugin_module.__package__\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " if plugin_module.__package__\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " else plugin_module.__name__.rpartition(\".\")[0]\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " )\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 176, + "line": " def is_plugin_module(x):\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 176, + "line": " return (\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 176, + "line": " hasattr(x, \"__module__\")\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 176, + "line": " and plugin_package + \".kolibri_plugin\" == x.__module__\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 176, + "line": " )\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 172 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " all_classes = [\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " cls\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " for cls in plugin_module.__dict__.values()\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " if is_plugin_module(cls) and isinstance(cls, type)\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " ]\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " return initialize_plugins_and_hooks(\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " all_classes, plugin_name, initialize_hooks=initialize_hooks\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " )\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": "\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " except ImportError as e:\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " # Python 2: message, Python 3: msg\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " exc_message = getattr(e, \"message\", getattr(e, \"msg\", None))\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " if exc_message.startswith(\"No module named\"):\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " msg = (\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " \"Plugin '{}' exists but does not have an importable kolibri_plugin module\"\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " ).format(plugin_name)\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " raise PluginDoesNotExist(msg)\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " else:\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " raise\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " except AppRegistryNotReady:\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " msg = (\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " \"Plugin '{}' loads the Django app registry, which it isn't \"\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " \"allowed to do while enabling or disabling itself.\"\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " ).format(plugin_name)\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 202, + "line": " raise PluginLoadsApp(msg)\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 203, + "line": "\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 203 + }, + { + "end_region_line": 204, + "line": "\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 204 + }, + { + "end_region_line": 212, + "line": "def enable_plugin(plugin_name, initialize_hooks=False):\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " try:\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " obj = initialize_kolibri_plugin(plugin_name, initialize_hooks=initialize_hooks)\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " if obj:\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " obj.enable()\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " return True\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " except PluginDoesNotExist as e:\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 212, + "line": " logger.error(str(e))\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 205 + }, + { + "end_region_line": 213, + "line": "\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 213 + }, + { + "end_region_line": 214, + "line": "\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 214 + }, + { + "end_region_line": 227, + "line": "def disable_plugin(plugin_name, initialize_hooks=False):\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " try:\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " obj = initialize_kolibri_plugin(plugin_name, initialize_hooks=initialize_hooks)\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " if obj:\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " obj.disable()\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " return True\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " except Exception as e:\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " logger.error(str(e))\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " logger.warning(\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " \"Removing '{}' from configuration in a naive way.\".format(plugin_name)\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " )\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " config.clear_plugin(plugin_name)\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 227, + "line": " logger.info(\"Removed '{}'\".format(plugin_name))\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 228, + "line": "\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 228 + }, + { + "end_region_line": 229, + "line": "\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 229 + }, + { + "end_region_line": 251, + "line": "def _get_plugin_version(plugin_name):\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " if is_external_plugin(plugin_name):\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " top_level_module = plugin_name.split(\".\")[0]\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": "\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " try:\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " return distribution(top_level_module).version\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " except (PackageNotFoundError, AttributeError):\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " try:\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " module = importlib.import_module(plugin_name)\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " return module.__version__\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " except (ImportError, AttributeError):\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " try:\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " # Try importing the top level module that this plugin is in\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " module = importlib.import_module(top_level_module)\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " return module.__version__\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " except (ImportError, AttributeError):\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " # This should work for most things, but seems like we are stuck\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " # just use the Kolibri version and just run upgrades in line with\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " # Kolibri instead.\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " return kolibri.__version__\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " else:\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 251, + "line": " return kolibri.__version__\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 252, + "line": "\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 252 + }, + { + "end_region_line": 253, + "line": "\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 253 + }, + { + "end_region_line": 265, + "line": "def is_plugin_updated(plugin_name):\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " try:\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " old_version = VersionInfo.parse(\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " normalize_version_to_semver(config[\"PLUGIN_VERSIONS\"][plugin_name])\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " )\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " new_version = VersionInfo.parse(\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " normalize_version_to_semver(_get_plugin_version(plugin_name))\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " )\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " return new_version != old_version\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " except KeyError:\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " # We have no previous record of this plugin, so it is updated\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 265, + "line": " return True\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 254 + }, + { + "end_region_line": 266, + "line": "\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 266 + }, + { + "end_region_line": 267, + "line": "\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 267 + }, + { + "end_region_line": 269, + "line": "class PluginUpdateException(Exception):\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 268 + }, + { + "end_region_line": 269, + "line": " pass\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 268 + }, + { + "end_region_line": 270, + "line": "\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 271, + "line": "\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 271 + }, + { + "end_region_line": 375, + "line": "class PluginUpdateManager(object):\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 272 + }, + { + "end_region_line": 280, + "line": " def __init__(self, updated_plugins):\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": " # Import here as triggers django app loading\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": " from django.db.migrations.loader import MigrationLoader\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": "\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": " self.migration_loader = MigrationLoader(None)\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": " # Make a copy as this could get modified during the iteration\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": " self.updated_plugins = list(updated_plugins)\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 280, + "line": " self.errors = []\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 375, + "line": "\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 272 + }, + { + "end_region_line": 304, + "line": " def _migrate_plugin(self, plugin_name, app_configs):\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 282 + }, + { + "end_region_line": 304, + "line": " for app_config in app_configs:\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 283 + }, + { + "end_region_line": 304, + "line": " if app_config.label in self.migration_loader.migrated_apps:\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 283 + }, + { + "end_region_line": 304, + "line": " logger.info(\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 283 + }, + { + "end_region_line": 304, + "line": " \"Running database migrations for {}\".format(app_config.label)\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 283 + }, + { + "end_region_line": 304, + "line": " )\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 283 + }, + { + "end_region_line": 304, + "line": " for database in django_settings.DATABASES:\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " # Run any unapplied migrations on all active databases\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " # Migrate takes a single app label at a time as an argument\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " try:\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " call_command(\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " \"migrate\",\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " app_config.label,\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " interactive=False,\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " database=database,\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " )\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " except Exception as e:\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " logger.error(\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " \"An exception occured running migrations for plugin {} in app {} on database {}: {}\".format(\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " plugin_name, app_config.label, database, e\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " )\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " )\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 304, + "line": " raise e\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 288 + }, + { + "end_region_line": 375, + "line": "\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 272 + }, + { + "end_region_line": 364, + "line": " def _update_plugin(self, plugin_name):\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " # Import here to prevent circular import\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " from kolibri.plugins.registry import registered_plugins\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": "\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " app_configs = []\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_instance = registered_plugins.get(plugin_name)\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " if plugin_instance is None:\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " logger.error(\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " \"Tried to run upgrades for plugin {} but it doesn't exist\".format(\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_name\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " return\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 322, + "line": " for app in plugin_instance.INSTALLED_APPS:\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 319 + }, + { + "end_region_line": 322, + "line": " if not isinstance(app, AppConfig) and isinstance(app, str):\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 319 + }, + { + "end_region_line": 322, + "line": " app = apps.get_containing_app_config(app)\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 319 + }, + { + "end_region_line": 322, + "line": " app_configs.append(app)\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 319 + }, + { + "end_region_line": 364, + "line": " old_version = config[\"PLUGIN_VERSIONS\"].get(plugin_name, \"\")\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " new_version = _get_plugin_version(plugin_name)\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " try:\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " self._migrate_plugin(plugin_name, app_configs)\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " except Exception as e:\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " logger.error(\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " \"Unhandled exception while migrating {}, exception was:\\n\\n{}\".format(\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_name, e\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " return\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " if old_version:\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " if VersionInfo.parse(\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " normalize_version_to_semver(old_version)\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " ) < VersionInfo.parse(normalize_version_to_semver(new_version)):\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " logger.info(\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " \"Running upgrade routines for {}, upgrading from {} to {}\".format(\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_name, old_version, new_version\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " else:\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " logger.info(\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " \"Running downgrade routines for {}, downgrading from {} to {}\".format(\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_name, old_version, new_version\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " else:\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " logger.info(\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " \"Running installation routines for {}, installing {}\".format(\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_name, new_version\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " try:\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " run_upgrades(old_version, new_version, app_configs=app_configs)\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " except Exception as e:\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " logger.error(\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " \"An exception occured running upgrades for plugin {}: {}\".format(\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " plugin_name, e\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " )\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " return\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 364, + "line": " return new_version\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 306 + }, + { + "end_region_line": 375, + "line": "\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 272 + }, + { + "end_region_line": 375, + "line": " def update_plugins(self):\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 366 + }, + { + "end_region_line": 375, + "line": " for plugin_name in self.updated_plugins:\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " new_version = self._update_plugin(plugin_name)\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " if new_version:\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " logger.info(\"{} successfully updated\".format(plugin_name))\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " config.update_plugin_version(plugin_name, new_version)\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " else:\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " logger.error(\"{} plugin could not update\".format(plugin_name))\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " config.remove_plugin(plugin_name)\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 375, + "line": " self.errors.append(plugin_name)\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 376, + "line": "\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 376 + }, + { + "end_region_line": 377, + "line": "\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 377 + }, + { + "end_region_line": 397, + "line": "def run_plugin_updates():\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " if config[\"UPDATED_PLUGINS\"]:\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " logger.info(\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " \"Detected updates to plugins: {}\".format(\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " \", \".join(config[\"UPDATED_PLUGINS\"])\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " )\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " )\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " update_manager = PluginUpdateManager(config[\"UPDATED_PLUGINS\"])\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " update_manager.update_plugins()\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": "\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " if update_manager.errors:\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " raise PluginUpdateException(\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " \"{} failed to update, please restart Kolibri\".format(\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " \", \".join(update_manager.errors)\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " )\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " )\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " return True\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 397, + "line": " return False\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 398, + "line": "\n", + "lineno": 398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 398 + }, + { + "end_region_line": 399, + "line": "\n", + "lineno": 399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 399 + }, + { + "end_region_line": 424, + "line": "def autoremove_unavailable_plugins():\n", + "lineno": 400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " \"\"\"\n", + "lineno": 401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " Sanitize INSTALLED_PLUGINS - something that should be done separately for all\n", + "lineno": 402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " built in plugins, but we should not auto-remove plugins that are actually\n", + "lineno": 403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " configured by the user or some other kind of hard dependency that should\n", + "lineno": 404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " make execution stop if not loadable.\n", + "lineno": 405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " \"\"\"\n", + "lineno": 406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " from kolibri.plugins.registry import is_initialized\n", + "lineno": 407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": "\n", + "lineno": 408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " if is_initialized():\n", + "lineno": 409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " raise RuntimeError(\"Attempted to update plugins when registry is initialized\")\n", + "lineno": 410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " changed = False\n", + "lineno": 411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " # Iterate over a copy of the set so that it is not modified during the loop\n", + "lineno": 412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 422, + "line": " for module_path in config[\"INSTALLED_PLUGINS\"].copy():\n", + "lineno": 413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " if not module_exists(module_path):\n", + "lineno": 414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " config.clear_plugin(module_path)\n", + "lineno": 415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " logger.error(\n", + "lineno": 416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " (\n", + "lineno": 417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " \"Plugin {mod} not found and disabled. To re-enable it, run:\\n\"\n", + "lineno": 418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " \" $ kolibri plugin {mod} enable\"\n", + "lineno": 419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " ).format(mod=module_path)\n", + "lineno": 420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " )\n", + "lineno": 421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 422, + "line": " changed = True\n", + "lineno": 422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 424, + "line": " if changed:\n", + "lineno": 423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 424, + "line": " config.save()\n", + "lineno": 424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 400 + }, + { + "end_region_line": 425, + "line": "\n", + "lineno": 425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 425 + }, + { + "end_region_line": 426, + "line": "\n", + "lineno": 426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 453, + "line": "def enable_new_default_plugins():\n", + "lineno": 427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " \"\"\"\n", + "lineno": 428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " Enable new plugins that have been added between versions\n", + "lineno": 429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " This will have the undesired side effect of reactivating\n", + "lineno": 430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " default plugins that have been explicitly disabled by a user,\n", + "lineno": 431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " in versions prior to the implementation of a plugin blacklist.\n", + "lineno": 432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " \"\"\"\n", + "lineno": 433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " from kolibri.plugins.registry import is_initialized\n", + "lineno": 434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": "\n", + "lineno": 435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " if is_initialized():\n", + "lineno": 436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " raise RuntimeError(\"Attempted to update plugins when registry is initialized\")\n", + "lineno": 437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " changed = False\n", + "lineno": 438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 450, + "line": " for module_path in DEFAULT_PLUGINS:\n", + "lineno": 439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " if module_path not in config[\"INSTALLED_PLUGINS\"]:\n", + "lineno": 440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " config[\"INSTALLED_PLUGINS\"].add(module_path)\n", + "lineno": 441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " # Can be migrated to upgrade only logic\n", + "lineno": 442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " if module_path not in config[\"DISABLED_PLUGINS\"]:\n", + "lineno": 443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " logger.warning(\n", + "lineno": 444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " (\n", + "lineno": 445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " \"Default plugin {mod} not found in configuration. To re-disable it, run:\\n\"\n", + "lineno": 446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " \" $ kolibri plugin {mod} disable\"\n", + "lineno": 447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " ).format(mod=module_path)\n", + "lineno": 448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " )\n", + "lineno": 449, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 450, + "line": " changed = True\n", + "lineno": 450, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 439 + }, + { + "end_region_line": 453, + "line": "\n", + "lineno": 451, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " if changed:\n", + "lineno": 452, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 453, + "line": " config.save()\n", + "lineno": 453, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 427 + }, + { + "end_region_line": 454, + "line": "\n", + "lineno": 454, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 454 + }, + { + "end_region_line": 455, + "line": "\n", + "lineno": 455, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 455 + }, + { + "end_region_line": 471, + "line": "def check_plugin_config_file_location(version):\n", + "lineno": 456, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " if matches_version(version, \"<0.13.0\"):\n", + "lineno": 457, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " old_conf_file = os.path.join(KOLIBRI_HOME, \"kolibri_settings.json\")\n", + "lineno": 458, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " if os.path.exists(old_conf_file):\n", + "lineno": 459, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " if not os.path.exists(conf_file):\n", + "lineno": 460, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " shutil.move(old_conf_file, conf_file)\n", + "lineno": 461, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " migrate_config = ConfigDict()\n", + "lineno": 462, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " # Migrate from using 'APPS' to 'PLUGINS' as the keys\n", + "lineno": 463, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " migrate_config.update(\n", + "lineno": 464, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " {\n", + "lineno": 465, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " \"INSTALLED_PLUGINS\": migrate_config.pop(\"INSTALLED_APPS\"),\n", + "lineno": 466, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " \"DISABLED_PLUGINS\": migrate_config.pop(\"DISABLED_APPS\"),\n", + "lineno": 467, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " }\n", + "lineno": 468, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " )\n", + "lineno": 469, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " else:\n", + "lineno": 470, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 471, + "line": " os.remove(old_conf_file)\n", + "lineno": 471, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 456 + }, + { + "end_region_line": 472, + "line": "\n", + "lineno": 472, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 472 + }, + { + "end_region_line": 473, + "line": "\n", + "lineno": 473, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 473 + }, + { + "end_region_line": 485, + "line": "def iterate_plugins():\n", + "lineno": 474, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 474 + }, + { + "end_region_line": 485, + "line": " # Use to dedupe plugins\n", + "lineno": 475, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 474 + }, + { + "end_region_line": 485, + "line": " plugin_ids = set()\n", + "lineno": 476, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 474 + }, + { + "end_region_line": 485, + "line": " for entry_point in entry_points()[\"kolibri.plugins\"]:\n", + "lineno": 477, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " name = entry_point.name\n", + "lineno": 478, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " if name not in plugin_ids:\n", + "lineno": 479, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " plugin_ids.add(name)\n", + "lineno": 480, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " try:\n", + "lineno": 481, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " plugin = initialize_kolibri_plugin(name, initialize_hooks=False)\n", + "lineno": 482, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " yield plugin\n", + "lineno": 483, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " except Exception:\n", + "lineno": 484, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + }, + { + "end_region_line": 485, + "line": " pass\n", + "lineno": 485, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 477 + } + ], + "percent_cpu_time": 6.3004744236120525 + }, + "/home/richard/github/kolibri/kolibri/utils/main.py": { + "functions": [ + { + "line": "_setup_django", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.05698756700385704, + "n_cpu_percent_c": 0.8039904930198959, + "n_cpu_percent_python": 2.467246434556221, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.3179439780476962, + "n_usage_fraction": 0.0 + } + ], + "imports": [ + "from __future__ import absolute_import", + "from __future__ import print_function", + "from __future__ import unicode_literals", + "import os", + "import shutil", + "import sys" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "from __future__ import absolute_import\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "from __future__ import print_function\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "from __future__ import unicode_literals\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "import logging.config\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "import os\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "import shutil\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "import sys\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from sqlite3 import DatabaseError as SQLite3DatabaseError\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "import django\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from diskcache.fanout import FanoutCache\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from django.conf import settings\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from django.core.exceptions import ValidationError\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from django.core.management import call_command\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from django.core.management.base import handle_default_options\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "from django.db.utils import DatabaseError\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "import kolibri\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from kolibri.core.device.utils import device_provisioned\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from kolibri.core.device.utils import provision_from_file\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from kolibri.core.deviceadmin.exceptions import IncompatibleDatabase\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "from kolibri.core.deviceadmin.utils import get_backup_files\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "from kolibri.core.upgrade import matches_version\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from kolibri.core.upgrade import run_upgrades\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from kolibri.core.utils.cache import process_cache\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "from kolibri.deployment.default.sqlite_db_names import ADDITIONAL_SQLITE_DATABASES\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "from kolibri.plugins.utils import autoremove_unavailable_plugins\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from kolibri.plugins.utils import check_plugin_config_file_location\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from kolibri.plugins.utils import enable_new_default_plugins\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from kolibri.plugins.utils import run_plugin_updates\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from kolibri.utils.conf import KOLIBRI_HOME\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from kolibri.utils.conf import LOG_ROOT\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "from kolibri.utils.conf import OPTIONS\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "from kolibri.utils.debian_check import check_debian_user\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": "from kolibri.utils.logger import get_base_logging_config\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "from kolibri.utils.sanity_checks import check_content_directory_exists_and_writable\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": "from kolibri.utils.sanity_checks import check_database_is_migrated\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "from kolibri.utils.sanity_checks import check_default_options_exist\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 40, + "line": "from kolibri.utils.sanity_checks import check_django_stack_ready\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 41, + "line": "from kolibri.utils.sanity_checks import check_log_file_location\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "from kolibri.utils.sanity_checks import DatabaseInaccessible\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 43, + "line": "from kolibri.utils.sanity_checks import DatabaseNotMigrated\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 44, + "line": "from kolibri.utils.sanity_checks import ensure_job_tables_created\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "from kolibri.utils.server import get_status\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 46, + "line": "from kolibri.utils.server import NotRunning\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 47, + "line": "\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 48 + }, + { + "end_region_line": 49, + "line": "\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 49 + }, + { + "end_region_line": 50, + "line": "\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 56, + "line": "def version_file():\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 56, + "line": " \"\"\"\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 56, + "line": " During test runtime, this path may differ because KOLIBRI_HOME is\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 56, + "line": " regenerated\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 56, + "line": " \"\"\"\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 56, + "line": " return os.path.join(KOLIBRI_HOME, \".data_version\")\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 57, + "line": "\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 60, + "line": "def version_updated(kolibri_version, version_file_contents):\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": " return kolibri_version != version_file_contents\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 61, + "line": "\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 62, + "line": "\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 62 + }, + { + "end_region_line": 74, + "line": "def should_back_up(kolibri_version, version_file_contents):\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " change_version = kolibri_version != version_file_contents\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " return (\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " # Only back up if there was a previous version\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " version_file_contents\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " # That version has changed\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " and change_version\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " # The previous version was not a dev version\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " and \"dev\" not in version_file_contents\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " # And the new version is not a dev version\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " and \"dev\" not in kolibri_version\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 74, + "line": " )\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 75, + "line": "\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 75 + }, + { + "end_region_line": 76, + "line": "\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 76 + }, + { + "end_region_line": 95, + "line": "def conditional_backup(kolibri_version, version_file_contents):\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " if should_back_up(kolibri_version, version_file_contents):\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " # Non-dev version change, make a backup no matter what.\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " from kolibri.core.deviceadmin.utils import dbbackup\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " from kolibri.core.deviceadmin.utils import default_backup_folder\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": "\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " try:\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " backup = dbbackup(version_file_contents)\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " default_path = default_backup_folder()\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " backups = get_backup_files()\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " if len(backups) > 2:\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 89, + "line": " for old_backup in backups[2:]:\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 89, + "line": " os.remove(os.path.join(default_path, old_backup))\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 95, + "line": " logger.info(\"Backed up database to: {path}\".format(path=backup))\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " except IncompatibleDatabase:\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " logger.warning(\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " \"Skipped automatic database backup, not compatible with \"\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " \"this DB engine.\"\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 95, + "line": " )\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 96, + "line": "\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 96 + }, + { + "end_region_line": 97, + "line": "\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 103, + "line": "def get_version():\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 103, + "line": " try:\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 103, + "line": " version = open(version_file(), \"r\").read()\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 103, + "line": " return version.strip() if version else \"\"\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 103, + "line": " except IOError:\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 103, + "line": " return \"\"\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 104, + "line": "\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 104 + }, + { + "end_region_line": 105, + "line": "\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 115, + "line": "def _migrate_databases():\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 115, + "line": " \"\"\"\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 115, + "line": " Try to migrate all active databases. This should not be called unless Django has\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 115, + "line": " been initialized.\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 115, + "line": " \"\"\"\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 112, + "line": " for database in settings.DATABASES:\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 111 + }, + { + "end_region_line": 112, + "line": " call_command(\"migrate\", interactive=False, database=database)\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 111 + }, + { + "end_region_line": 115, + "line": "\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 115, + "line": " # load morango fixtures needed for certificate related operations\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 115, + "line": " call_command(\"loaddata\", \"scopedefinitions\")\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 116, + "line": "\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 117, + "line": "\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 117 + }, + { + "end_region_line": 123, + "line": "class DefaultDjangoOptions(object):\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 123, + "line": " __slots__ = [\"settings\", \"pythonpath\"]\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 123, + "line": "\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 118 + }, + { + "end_region_line": 123, + "line": " def __init__(self, settings, pythonpath):\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 123, + "line": " self.settings = settings\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 123, + "line": " self.pythonpath = pythonpath\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 124, + "line": "\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 125, + "line": "\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 125 + }, + { + "end_region_line": 145, + "line": "def setup_logging(debug=False, debug_database=False):\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " \"\"\"\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " Configures logging in cases where a Django environment is not supposed\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " to be configured.\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " \"\"\"\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " # Sets the global DEBUG flag to be picked up in other contexts\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " # (Django settings)\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " os.environ[\"KOLIBRI_DEBUG\"] = str(debug)\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " os.environ[\"KOLIBRI_DEBUG_LOG_DATABASE\"] = str(debug_database)\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": "\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " # Would be ideal to use the upgrade logic for this, but that is currently\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " # only designed for post-Django initialization tasks. If there are more cases\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " # for pre-django initialization upgrade tasks, we can generalize the logic here\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " if matches_version(get_version(), \"<0.12.4\"):\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " check_log_file_location()\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": "\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " LOGGING = get_base_logging_config(\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " LOG_ROOT, debug=debug, debug_database=debug_database\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " )\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 145, + "line": " logging.config.dictConfig(LOGGING)\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 146, + "line": "\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 146 + }, + { + "end_region_line": 147, + "line": "\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 147 + }, + { + "end_region_line": 163, + "line": "def _setup_django():\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " \"\"\"\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " Do our django setup - separated from initialize to reduce complexity.\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " \"\"\"\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " try:\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " django.setup()\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.05698756700385704, + "n_cpu_percent_c": 0.8039904930198959, + "n_cpu_percent_python": 2.467246434556221, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.3179439780476962, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": "\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " except (DatabaseError, SQLite3DatabaseError) as e:\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " if \"malformed\" in str(e):\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " logger.error(\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " \"Your database appears to be corrupted. If you encounter this,\"\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " \"please immediately back up all files in the .kolibri folder that\"\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " \"end in .sqlite3, .sqlite3-shm, .sqlite3-wal, or .log and then\"\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " \"contact Learning Equality. Thank you!\"\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " )\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 163, + "line": " raise\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 148 + }, + { + "end_region_line": 164, + "line": "\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 164 + }, + { + "end_region_line": 165, + "line": "\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 165 + }, + { + "end_region_line": 188, + "line": "def _copy_preseeded_db(db_name, target=None):\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " target = target or \"{}.sqlite3\".format(db_name)\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " target = os.path.join(KOLIBRI_HOME, target)\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " if not os.path.exists(target):\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " try:\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " import kolibri.dist\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": "\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " db_path = os.path.abspath(\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " os.path.join(\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " os.path.dirname(kolibri.dist.__file__),\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " \"home/{}.sqlite3\".format(db_name),\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " )\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " )\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " shutil.copyfile(db_path, target)\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " logger.info(\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " \"Copied preseeded database from {} to {}\".format(db_path, target)\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " )\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " except (ImportError, IOError, OSError):\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " logger.warning(\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " \"Unable to copy pre-migrated database from {} to {}\".format(\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " db_path, target\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " )\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 188, + "line": " )\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 166 + }, + { + "end_region_line": 189, + "line": "\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 189 + }, + { + "end_region_line": 190, + "line": "\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 190 + }, + { + "end_region_line": 223, + "line": "def _upgrades_before_django_setup(updated, version):\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " if version and updated:\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " check_plugin_config_file_location(version)\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": "\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # Do this here so that we can fix any issues with our configuration file before\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # we attempt to set up django.\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " autoremove_unavailable_plugins()\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": "\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " if updated:\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # Reset the enabled plugins to the defaults\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # This needs to be run before dbbackup because\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # dbbackup relies on settings.INSTALLED_APPS\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " enable_new_default_plugins()\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": "\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # Ensure that we have done all manipulations of our plugins registry before\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # we do the check for options.ini as that will invoke our plugin registry.\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # Check if there is an options.ini file exist inside the KOLIBRI_HOME folder\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " check_default_options_exist()\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": "\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " if OPTIONS[\"Database\"][\"DATABASE_ENGINE\"] == \"sqlite\":\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # If we are using sqlite,\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # we can shortcut migrations by using the preseeded databases\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # that we bundle in the Kolibri whl file.\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " if not version:\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " logger.info(\"Attempting to setup using pre-migrated databases\")\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # Only copy the default database if this is a fresh install\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " _copy_preseeded_db(\"db\", target=OPTIONS[\"Database\"][\"DATABASE_NAME\"])\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": "\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " if not version or updated:\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # If this is an upgrade, it is possible we've added an additional\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " # database, so we can attempt to copy a preseeded database here.\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 191 + }, + { + "end_region_line": 223, + "line": " for db_name in ADDITIONAL_SQLITE_DATABASES:\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 223, + "line": " _copy_preseeded_db(db_name)\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 222 + }, + { + "end_region_line": 224, + "line": "\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 224 + }, + { + "end_region_line": 225, + "line": "\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 243, + "line": "def _post_django_initialization():\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " # Import here to prevent the module level access to Kolibri options\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " # which causes premature registration of Kolibri plugins.\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " from kolibri.deployment.default.cache import CACHES\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": "\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " if \"process_cache\" in CACHES: # usually it means not using redis\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " if \"DatabaseCache\" not in CACHES[\"process_cache\"][\"BACKEND\"]:\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " try:\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " process_cache.cull()\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " except SQLite3DatabaseError:\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " shutil.rmtree(process_cache.directory, ignore_errors=True)\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " os.mkdir(process_cache.directory)\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " process_cache._cache = FanoutCache(\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " process_cache.directory,\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " settings.CACHES[\"process_cache\"][\"SHARDS\"],\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " settings.CACHES[\"process_cache\"][\"TIMEOUT\"],\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " **settings.CACHES[\"process_cache\"][\"OPTIONS\"]\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 243, + "line": " )\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 226 + }, + { + "end_region_line": 244, + "line": "\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 244 + }, + { + "end_region_line": 245, + "line": "\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 245 + }, + { + "end_region_line": 255, + "line": "def _upgrades_after_django_setup(updated, version):\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " # If device is not provisioned, attempt automatic provisioning\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " if not device_provisioned() and OPTIONS[\"Paths\"][\"AUTOMATIC_PROVISION_FILE\"]:\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " try:\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " provision_from_file(OPTIONS[\"Paths\"][\"AUTOMATIC_PROVISION_FILE\"])\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " except ValidationError as e:\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " logging.error(\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " \"Tried to automatically provision the device but received an error\"\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " )\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 255, + "line": " logging.error(e)\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 246 + }, + { + "end_region_line": 256, + "line": "\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 257, + "line": "\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 257 + }, + { + "end_region_line": 340, + "line": "def initialize( # noqa C901\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " skip_update=False,\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " settings=None,\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " debug=False,\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " debug_database=False,\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " no_input=True,\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " pythonpath=None,\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "):\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"\"\"\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " This should be called before starting the Kolibri app, it initializes Kolibri plugins\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " and sets up Django.\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"\"\"\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " check_debian_user(no_input)\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " setup_logging(debug=debug, debug_database=debug_database)\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " default_options = DefaultDjangoOptions(settings, pythonpath)\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " handle_default_options(default_options)\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " version = get_version()\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " updated = version_updated(kolibri.__version__, version)\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " if not skip_update:\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " _upgrades_before_django_setup(updated, version)\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " try:\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " ensure_job_tables_created()\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " except Exception as e:\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " logging.error(\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"The job tables were not fully migrated. Tried to \"\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"create them in the database and an error occurred: \"\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"{}\".format(e)\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " )\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " raise\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " _setup_django()\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " _post_django_initialization()\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " if updated and not skip_update:\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " conditional_backup(kolibri.__version__, version)\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " if version:\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " logger.info(\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"Version was {old}, new version: {new}\".format(\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " old=version, new=kolibri.__version__\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " )\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " )\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " else:\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " logger.info(\"New install, version: {new}\".format(new=kolibri.__version__))\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " update(version, kolibri.__version__)\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " check_content_directory_exists_and_writable()\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " if not skip_update:\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " # Run any plugin specific updates here in case they were missed by\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " # our Kolibri version based update logic.\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " run_plugin_updates()\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " check_django_stack_ready()\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " try:\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " check_database_is_migrated()\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " except DatabaseNotMigrated:\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " try:\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " _migrate_databases()\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " except Exception as e:\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " logging.error(\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"The database was not fully migrated. Tried to \"\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"migrate the database and an error occurred: \"\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"{}\".format(e)\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " )\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " raise\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " except DatabaseInaccessible as e:\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " logging.error(\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"Tried to check that the database was accessible \"\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " \"and an error occurred: {}\".format(e)\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " )\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " raise\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": "\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 340, + "line": " _upgrades_after_django_setup(updated, version)\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 258 + }, + { + "end_region_line": 341, + "line": "\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 341 + }, + { + "end_region_line": 342, + "line": "\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 342 + }, + { + "end_region_line": 369, + "line": "def update(old_version, new_version):\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " \"\"\"\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " Called whenever a version change in kolibri is detected\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " \"\"\"\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " logger.info(\"Running update routines for new version...\")\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " try:\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " # Check if there are other kolibri instances running\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " # If there are, then we need to stop users from starting kolibri again.\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " get_status()\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " logger.error(\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " \"There is a Kolibri server running. \"\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " \"Running updates now could cause a database error. \"\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " \"Please use `kolibri stop` and try again. \"\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " )\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " sys.exit(1)\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " except NotRunning:\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " pass\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " _migrate_databases()\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " run_upgrades(old_version, new_version)\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " with open(version_file(), \"w\") as f:\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + }, + { + "end_region_line": 369, + "line": " f.write(kolibri.__version__)\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 343 + } + ], + "percent_cpu_time": 3.589180905623813 + }, + "/home/richard/github/kolibri/kolibri/utils/sanity_checks.py": { + "functions": [ + { + "line": "check_database_is_migrated", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.03183258344854509, + "n_cpu_percent_c": 0.010217175743362963, + "n_cpu_percent_python": 1.7234463177478276, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 1.6702062715357426, + "n_usage_fraction": 0.0 + } + ], + "imports": [ + "import os", + "import shutil", + "import sys", + "from sqlalchemy.exc import OperationalError as SQLAlchemyOperationalError", + "from sqlalchemy.exc import ProgrammingError as SQLAlchemyProgrammingError" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import logging\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "import os\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import shutil\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import sys\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "from django.apps import apps\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "from django.db.utils import OperationalError\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "from django.db.utils import ProgrammingError\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from sqlalchemy.exc import OperationalError as SQLAlchemyOperationalError\n", + "lineno": 9, + "memory_samples": [ + [ + 287030015, + 20.188611030578613 + ] + ], + "n_avg_mb": 10.000051498413086, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.05960439749593381, + "n_cpu_percent_c": 6.910105827573961, + "n_cpu_percent_python": 14.193668360207512, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 10.000051498413086, + "n_malloc_mb": 10.000051498413086, + "n_mallocs": 1, + "n_peak_mb": 10.000051498413086, + "n_python_fraction": 0.890316, + "n_sys_percent": 1.0334949805851155, + "n_usage_fraction": 0.19990603906343102, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from sqlalchemy.exc import ProgrammingError as SQLAlchemyProgrammingError\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "from .conf import KOLIBRI_HOME\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "from .conf import OPTIONS\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from .options import generate_empty_options_file\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.06255793990109025, + "n_cpu_percent_c": 0.2921878127908761, + "n_cpu_percent_python": 0.6767618784906531, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from kolibri.utils.sql_alchemy import DBSchemaError\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 21, + "line": "class SanityException(RuntimeError):\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": " pass\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 22, + "line": "\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 31, + "line": "class DatabaseNotMigrated(SanityException):\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 31, + "line": " def __init__(self, *args, **kwargs):\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 31, + "line": " self.db_exception = kwargs.get(\"db_exception\")\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 31, + "line": " super(DatabaseNotMigrated, self).__init__(\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 31, + "line": " \"An exception occurred for which it is assumed that the \"\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 31, + "line": " \"database is not fully migrated.\\n\\n\"\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 31, + "line": " \"Exception: {}\".format(str(self.db_exception))\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 31, + "line": " )\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 32, + "line": "\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 40, + "line": "class DatabaseInaccessible(SanityException):\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 40, + "line": " def __init__(self, *args, **kwargs):\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 40, + "line": " self.db_exception = kwargs.get(\"db_exception\")\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 40, + "line": " super(DatabaseInaccessible, self).__init__(\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 40, + "line": " \"Not able to access the database while checking it.\\n\\n\"\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 40, + "line": " \"Exception: {}\".format(str(self.db_exception))\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 40, + "line": " )\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 41, + "line": "\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 66, + "line": "def check_content_directory_exists_and_writable():\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " \"\"\"\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " Make sure the content directory of Kolibri exists and is writable.\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " \"\"\"\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " content_directory = OPTIONS[\"Paths\"][\"CONTENT_DIR\"]\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": "\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " # Check if the content directory exists\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " if not os.path.exists(content_directory):\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " try:\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " os.makedirs(content_directory)\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " except OSError:\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " logger.error(\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " \"The content directory {} does not exist and cannot be created.\".format(\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " content_directory\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " )\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " )\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " sys.exit(1)\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": "\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " # Check if the directory is writable\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " if not os.access(content_directory, os.W_OK):\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " logger.error(\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " \"The content directory {} is not writable.\".format(content_directory)\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " )\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 66, + "line": " sys.exit(1)\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 67, + "line": "\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 68, + "line": "\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 91, + "line": "def check_log_file_location():\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " \"\"\"\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " Starting from Kolibri v0.12.4, log files are going to be renamed and moved\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " from KOLIBRI_HOME directory to KOLIBRI_HOME/logs directory.\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " \"\"\"\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " home = os.environ[\"KOLIBRI_HOME\"]\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " log_location_update = {}\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " # Old log file names\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " old_daemon_log = \"server.log\"\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " old_kolibri_log = \"kolibri.log\"\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " old_debug_log = \"debug.log\"\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " # New log file names\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " log_location_update[old_daemon_log] = \"daemon.txt\"\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " log_location_update[old_kolibri_log] = \"kolibri.txt\"\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " log_location_update[old_debug_log] = \"debug.txt\"\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 91, + "line": " for log in log_location_update:\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 91, + "line": " old_log_path = os.path.join(home, log)\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 91, + "line": " if os.path.exists(old_log_path):\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 91, + "line": " new_log_path = os.path.join(home, \"logs\", log_location_update[log])\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 91, + "line": " shutil.move(old_log_path, new_log_path)\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 92, + "line": "\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 93, + "line": "\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 93 + }, + { + "end_region_line": 96, + "line": "def check_django_stack_ready():\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 94 + }, + { + "end_region_line": 96, + "line": " \"\"\"Checks that all Django apps are loaded\"\"\"\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 94 + }, + { + "end_region_line": 96, + "line": " apps.check_apps_ready()\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 94 + }, + { + "end_region_line": 97, + "line": "\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 97 + }, + { + "end_region_line": 98, + "line": "\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 119, + "line": "def check_database_is_migrated():\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " \"\"\"\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " This function checks that the database instance id model is\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " initialized. It must only be run after Django initialization.\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": "\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " It does not actually verify whether all migrations are run, as this is\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " assumed to be a part of Kolibri version number checking. When a\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " Kolibri version change is detected, we run migrations. Checking that\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " migrations are run for every startup would be costly.\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " \"\"\"\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " from django.db import connection\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " from morango.models import InstanceIDModel\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": "\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " try:\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " InstanceIDModel.get_or_create_current_instance()[0]\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.03183258344854509, + "n_cpu_percent_c": 0.010217175743362963, + "n_cpu_percent_python": 1.7234463177478276, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 1.6702062715357426, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " connection.close()\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " return\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " except (OperationalError, ProgrammingError) as e:\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " raise DatabaseNotMigrated(db_exception=e)\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " except Exception as e:\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 119, + "line": " raise DatabaseInaccessible(db_exception=e)\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 99 + }, + { + "end_region_line": 120, + "line": "\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 120 + }, + { + "end_region_line": 121, + "line": "\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 121 + }, + { + "end_region_line": 133, + "line": "def ensure_job_tables_created():\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " from kolibri.core.tasks.main import job_storage\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " from kolibri.core.tasks.main import connection\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " from kolibri.core.tasks.storage import Storage\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": "\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " try:\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " job_storage.test_table_readable()\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " except (SQLAlchemyOperationalError, SQLAlchemyProgrammingError, DBSchemaError):\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " logger.warning(\"Database table for job storage was not accessible, recreating.\")\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " Storage.recreate_default_tables(connection)\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " except Exception as e:\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 133, + "line": " raise DatabaseInaccessible(db_exception=e)\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 122 + }, + { + "end_region_line": 134, + "line": "\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 134 + }, + { + "end_region_line": 135, + "line": "\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 135 + }, + { + "end_region_line": 146, + "line": "def check_default_options_exist():\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " options_path = os.path.join(KOLIBRI_HOME, \"options.ini\")\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " if not os.path.exists(options_path):\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " try:\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " generate_empty_options_file()\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " except IOError:\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " logger.warning(\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " \"Failed to create an options.ini file at this path: {}\".format(\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " options_path\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " )\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + }, + { + "end_region_line": 146, + "line": " )\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 136 + } + ], + "percent_cpu_time": 26.51008862467505 + }, + "/home/richard/github/kolibri/kolibri/utils/server.py": { + "functions": [], + "imports": [ + "import os", + "import signal", + "import socket", + "import sys", + "import threading", + "import time", + "import traceback as _traceback", + "from functools import partial", + "from subprocess import CalledProcessError", + "from subprocess import check_output", + "from zeroconf import get_all_addresses", + "from zeroconf import InterfaceChoice" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "import logging\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "import os\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "import signal\n", + "lineno": 3, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "import socket\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "import sys\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 6, + "line": "import threading\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": "import time\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 7 + }, + { + "end_region_line": 8, + "line": "import traceback as _traceback\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "from functools import partial\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 10, + "line": "from subprocess import CalledProcessError\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 11, + "line": "from subprocess import check_output\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 11 + }, + { + "end_region_line": 12, + "line": "\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 12 + }, + { + "end_region_line": 13, + "line": "import requests\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.062474601094093994, + "n_cpu_percent_c": 1.444443863895867, + "n_cpu_percent_python": 2.0294605629308764, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.001412307883815696, + "n_usage_fraction": 0.0, + "start_region_line": 13 + }, + { + "end_region_line": 14, + "line": "from cheroot.wsgi import Server as BaseServer\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.05972485238827069, + "n_cpu_percent_c": 0.49366785682081377, + "n_cpu_percent_python": 5.816657399557569, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.29747120288468265, + "n_usage_fraction": 0.0, + "start_region_line": 14 + }, + { + "end_region_line": 15, + "line": "from django.conf import settings\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 15 + }, + { + "end_region_line": 16, + "line": "from django.core.management import call_command\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 16 + }, + { + "end_region_line": 17, + "line": "from magicbus import ProcessBus\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 17 + }, + { + "end_region_line": 18, + "line": "from magicbus.plugins import SimplePlugin\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 18 + }, + { + "end_region_line": 19, + "line": "from magicbus.plugins.servers import ServerPlugin as BaseServerPlugin\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 19 + }, + { + "end_region_line": 20, + "line": "from magicbus.plugins.servers import wait_for_free_port\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 20 + }, + { + "end_region_line": 21, + "line": "from magicbus.plugins.servers import wait_for_occupied_port\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 21 + }, + { + "end_region_line": 22, + "line": "from magicbus.plugins.signalhandler import SignalHandler as BaseSignalHandler\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 22 + }, + { + "end_region_line": 23, + "line": "from magicbus.plugins.tasks import Autoreloader\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 23 + }, + { + "end_region_line": 24, + "line": "from magicbus.plugins.tasks import Monitor\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 25, + "line": "from zeroconf import get_all_addresses\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.023753405078308386, + "n_cpu_percent_c": 0.07057203061704294, + "n_cpu_percent_python": 0.2572063846615264, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.5346727106704653, + "n_usage_fraction": 0.0, + "start_region_line": 25 + }, + { + "end_region_line": 26, + "line": "from zeroconf import InterfaceChoice\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 26 + }, + { + "end_region_line": 27, + "line": "\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 27 + }, + { + "end_region_line": 28, + "line": "import kolibri\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 28 + }, + { + "end_region_line": 29, + "line": "from .constants import installation_types\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 29 + }, + { + "end_region_line": 30, + "line": "from .system import become_daemon\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 30 + }, + { + "end_region_line": 31, + "line": "from .system import pid_exists\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 32, + "line": "from kolibri.utils import conf\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 32 + }, + { + "end_region_line": 33, + "line": "from kolibri.utils.android import on_android\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 33 + }, + { + "end_region_line": 34, + "line": "\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 34 + }, + { + "end_region_line": 35, + "line": "try:\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 35 + }, + { + "end_region_line": 36, + "line": " FileNotFoundError\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 37, + "line": "except NameError:\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 37 + }, + { + "end_region_line": 38, + "line": " FileNotFoundError = IOError\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 38 + }, + { + "end_region_line": 39, + "line": "\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 39 + }, + { + "end_region_line": 40, + "line": "logger = logging.getLogger(__name__)\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 40 + }, + { + "end_region_line": 41, + "line": "\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 41 + }, + { + "end_region_line": 42, + "line": "# Status codes for kolibri\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 42 + }, + { + "end_region_line": 43, + "line": "STATUS_RUNNING = 0\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 43 + }, + { + "end_region_line": 44, + "line": "STATUS_STOPPED = 1\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 44 + }, + { + "end_region_line": 45, + "line": "STATUS_STARTING_UP = 4\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 45 + }, + { + "end_region_line": 46, + "line": "STATUS_NOT_RESPONDING = 5\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 46 + }, + { + "end_region_line": 47, + "line": "STATUS_FAILED_TO_START = 6\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 47 + }, + { + "end_region_line": 48, + "line": "STATUS_UNCLEAN_SHUTDOWN = 7\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 48 + }, + { + "end_region_line": 49, + "line": "STATUS_UNKNOWN_INSTANCE = 8\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 49 + }, + { + "end_region_line": 50, + "line": "STATUS_SERVER_CONFIGURATION_ERROR = 9\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 50 + }, + { + "end_region_line": 51, + "line": "STATUS_SHUTTING_DOWN = 10\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 51 + }, + { + "end_region_line": 52, + "line": "STATUS_PID_FILE_READ_ERROR = 99\n", + "lineno": 52, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 52 + }, + { + "end_region_line": 53, + "line": "STATUS_PID_FILE_INVALID = 100\n", + "lineno": 53, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 53 + }, + { + "end_region_line": 54, + "line": "STATUS_UNKNOWN = 101\n", + "lineno": 54, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 54 + }, + { + "end_region_line": 55, + "line": "\n", + "lineno": 55, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 55 + }, + { + "end_region_line": 56, + "line": "\n", + "lineno": 56, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 56 + }, + { + "end_region_line": 57, + "line": "PORT_AVAILABILITY_CHECK_TIMEOUT = 0.1\n", + "lineno": 57, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 57 + }, + { + "end_region_line": 58, + "line": "\n", + "lineno": 58, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 58 + }, + { + "end_region_line": 59, + "line": "# Used to store PID and port number (both in foreground and daemon mode)\n", + "lineno": 59, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 59 + }, + { + "end_region_line": 60, + "line": "PID_FILE = os.path.join(conf.KOLIBRI_HOME, \"server.pid\")\n", + "lineno": 60, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 60 + }, + { + "end_region_line": 61, + "line": "\n", + "lineno": 61, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 61 + }, + { + "end_region_line": 62, + "line": "# File used to activate profiling middleware and get profiler PID\n", + "lineno": 62, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 62 + }, + { + "end_region_line": 63, + "line": "PROFILE_LOCK = os.path.join(conf.KOLIBRI_HOME, \"server_profile.lock\")\n", + "lineno": 63, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 63 + }, + { + "end_region_line": 64, + "line": "\n", + "lineno": 64, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 64 + }, + { + "end_region_line": 65, + "line": "# File used to send a state transition command to the server process\n", + "lineno": 65, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 65 + }, + { + "end_region_line": 66, + "line": "PROCESS_CONTROL_FLAG = os.path.join(conf.KOLIBRI_HOME, \"process_control.flag\")\n", + "lineno": 66, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 66 + }, + { + "end_region_line": 67, + "line": "\n", + "lineno": 67, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 67 + }, + { + "end_region_line": 68, + "line": "# This is a special file with daemon activity. It logs ALL stderr output, some\n", + "lineno": 68, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 68 + }, + { + "end_region_line": 69, + "line": "# might not have made it to the log file!\n", + "lineno": 69, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 69 + }, + { + "end_region_line": 70, + "line": "DAEMON_LOG = os.path.join(conf.LOG_ROOT, \"daemon.txt\")\n", + "lineno": 70, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 70 + }, + { + "end_region_line": 71, + "line": "\n", + "lineno": 71, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 71 + }, + { + "end_region_line": 72, + "line": "status_messages = {\n", + "lineno": 72, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 72 + }, + { + "end_region_line": 73, + "line": " STATUS_RUNNING: \"OK, running\",\n", + "lineno": 73, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 73 + }, + { + "end_region_line": 74, + "line": " STATUS_STOPPED: \"Stopped\",\n", + "lineno": 74, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 74 + }, + { + "end_region_line": 75, + "line": " STATUS_STARTING_UP: \"Starting up\",\n", + "lineno": 75, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 75 + }, + { + "end_region_line": 76, + "line": " STATUS_NOT_RESPONDING: \"Not responding\",\n", + "lineno": 76, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 76 + }, + { + "end_region_line": 77, + "line": " STATUS_FAILED_TO_START: \"Failed to start (check log file: {0})\".format(DAEMON_LOG),\n", + "lineno": 77, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 77 + }, + { + "end_region_line": 78, + "line": " STATUS_UNCLEAN_SHUTDOWN: \"Unclean shutdown\",\n", + "lineno": 78, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 78 + }, + { + "end_region_line": 79, + "line": " STATUS_UNKNOWN_INSTANCE: \"Unknown Kolibri running on port\",\n", + "lineno": 79, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 79 + }, + { + "end_region_line": 80, + "line": " STATUS_SERVER_CONFIGURATION_ERROR: \"Kolibri server configuration error\",\n", + "lineno": 80, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 80 + }, + { + "end_region_line": 81, + "line": " STATUS_PID_FILE_READ_ERROR: \"Could not read PID file\",\n", + "lineno": 81, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 81 + }, + { + "end_region_line": 82, + "line": " STATUS_PID_FILE_INVALID: \"Invalid PID file\",\n", + "lineno": 82, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 82 + }, + { + "end_region_line": 83, + "line": " STATUS_UNKNOWN: \"Could not determine status\",\n", + "lineno": 83, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 83 + }, + { + "end_region_line": 84, + "line": "}\n", + "lineno": 84, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 84 + }, + { + "end_region_line": 85, + "line": "\n", + "lineno": 85, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 85 + }, + { + "end_region_line": 86, + "line": "\n", + "lineno": 86, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 86 + }, + { + "end_region_line": 87, + "line": "RESTART = \"restart\"\n", + "lineno": 87, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 87 + }, + { + "end_region_line": 88, + "line": "STOP = \"stop\"\n", + "lineno": 88, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 88 + }, + { + "end_region_line": 89, + "line": "UPDATE_ZEROCONF = \"update_zeroconf\"\n", + "lineno": 89, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 89 + }, + { + "end_region_line": 90, + "line": "\n", + "lineno": 90, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 90 + }, + { + "end_region_line": 91, + "line": "\n", + "lineno": 91, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 91 + }, + { + "end_region_line": 100, + "line": "class NotRunning(Exception):\n", + "lineno": 92, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 100, + "line": " \"\"\"\n", + "lineno": 93, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 100, + "line": " Raised when server was expected to run, but didn't. Contains a status\n", + "lineno": 94, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 100, + "line": " code explaining why.\n", + "lineno": 95, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 100, + "line": " \"\"\"\n", + "lineno": 96, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 100, + "line": "\n", + "lineno": 97, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 92 + }, + { + "end_region_line": 100, + "line": " def __init__(self, status_code):\n", + "lineno": 98, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 100, + "line": " self.status_code = status_code\n", + "lineno": 99, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 100, + "line": " super(NotRunning, self).__init__()\n", + "lineno": 100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 98 + }, + { + "end_region_line": 101, + "line": "\n", + "lineno": 101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 101 + }, + { + "end_region_line": 102, + "line": "\n", + "lineno": 102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 102 + }, + { + "end_region_line": 104, + "line": "class PortOccupied(OSError):\n", + "lineno": 103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 103 + }, + { + "end_region_line": 104, + "line": " pass\n", + "lineno": 104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 103 + }, + { + "end_region_line": 105, + "line": "\n", + "lineno": 105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 105 + }, + { + "end_region_line": 106, + "line": "\n", + "lineno": 106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 106 + }, + { + "end_region_line": 112, + "line": "class RunningException(PortOccupied):\n", + "lineno": 107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 112, + "line": " \"\"\"\n", + "lineno": 108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 112, + "line": " Raised when server already appears to be running\n", + "lineno": 109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 112, + "line": " \"\"\"\n", + "lineno": 110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 112, + "line": "\n", + "lineno": 111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 112, + "line": " pass\n", + "lineno": 112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 107 + }, + { + "end_region_line": 113, + "line": "\n", + "lineno": 113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 113 + }, + { + "end_region_line": 114, + "line": "\n", + "lineno": 114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 114 + }, + { + "end_region_line": 123, + "line": "class Server(BaseServer):\n", + "lineno": 115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 115 + }, + { + "end_region_line": 123, + "line": " def error_log(self, msg=\"\", level=20, traceback=False):\n", + "lineno": 116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " if traceback:\n", + "lineno": 117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " if traceback is True:\n", + "lineno": 118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " exc_info = sys.exc_info()\n", + "lineno": 119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " else:\n", + "lineno": 120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " exc_info = traceback\n", + "lineno": 121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " msg += \"\\n\" + \"\".join(_traceback.format_exception(*exc_info))\n", + "lineno": 122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 123, + "line": " return logger.log(level, msg)\n", + "lineno": 123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 116 + }, + { + "end_region_line": 124, + "line": "\n", + "lineno": 124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 124 + }, + { + "end_region_line": 125, + "line": "\n", + "lineno": 125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 125 + }, + { + "end_region_line": 136, + "line": "def port_is_available_on_host(host, port):\n", + "lineno": 126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " \"\"\"\n", + "lineno": 127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " Make sure the port is available for the server to start.\n", + "lineno": 128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " \"\"\"\n", + "lineno": 129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " # Also bypass when the port is 0, as that will choose a port\n", + "lineno": 130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " if port:\n", + "lineno": 131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " try:\n", + "lineno": 132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " wait_for_free_port(host, port, timeout=PORT_AVAILABILITY_CHECK_TIMEOUT)\n", + "lineno": 133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " except OSError:\n", + "lineno": 134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " return False\n", + "lineno": 135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 136, + "line": " return True\n", + "lineno": 136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 126 + }, + { + "end_region_line": 137, + "line": "\n", + "lineno": 137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 137 + }, + { + "end_region_line": 138, + "line": "\n", + "lineno": 138, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 138 + }, + { + "end_region_line": 192, + "line": "class ServerPlugin(BaseServerPlugin):\n", + "lineno": 139, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 151, + "line": " def __init__(self, bus, port):\n", + "lineno": 140, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " # The server is initialized without a bind address before it is passed into the plugin.\n", + "lineno": 141, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " # Because of the property setter below for `bind_addr` the setting of `self.bind_addr`\n", + "lineno": 142, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " # in the super invocation here, results in the httpserver's `bind_addr` property being set.\n", + "lineno": 143, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " address = (conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"], port)\n", + "lineno": 144, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": "\n", + "lineno": 145, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " super(ServerPlugin, self).__init__(\n", + "lineno": 146, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " bus,\n", + "lineno": 147, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " httpserver=Server(None, self.application, **self.server_config),\n", + "lineno": 148, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " bind_addr=address,\n", + "lineno": 149, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " )\n", + "lineno": 150, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 151, + "line": " self._default_bind_addr = self.bind_addr\n", + "lineno": 151, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 140 + }, + { + "end_region_line": 192, + "line": "\n", + "lineno": 152, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 192, + "line": " @property\n", + "lineno": 153, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 155, + "line": " def application(self):\n", + "lineno": 154, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 155, + "line": " raise NotImplementedError(\"ServerPlugin subclasses must implement application\")\n", + "lineno": 155, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 154 + }, + { + "end_region_line": 192, + "line": "\n", + "lineno": 156, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 192, + "line": " @property\n", + "lineno": 157, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 165, + "line": " def server_config(self):\n", + "lineno": 158, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " return {\n", + "lineno": 159, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " \"numthreads\": conf.OPTIONS[\"Server\"][\"CHERRYPY_THREAD_POOL\"],\n", + "lineno": 160, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " \"request_queue_size\": conf.OPTIONS[\"Server\"][\"CHERRYPY_QUEUE_SIZE\"],\n", + "lineno": 161, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " \"timeout\": conf.OPTIONS[\"Server\"][\"CHERRYPY_SOCKET_TIMEOUT\"],\n", + "lineno": 162, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " \"accepted_queue_size\": conf.OPTIONS[\"Server\"][\"CHERRYPY_QUEUE_SIZE\"],\n", + "lineno": 163, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " \"accepted_queue_timeout\": conf.OPTIONS[\"Server\"][\"CHERRYPY_QUEUE_TIMEOUT\"],\n", + "lineno": 164, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 165, + "line": " }\n", + "lineno": 165, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 158 + }, + { + "end_region_line": 192, + "line": "\n", + "lineno": 166, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 192, + "line": " @property\n", + "lineno": 167, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 173, + "line": " def bind_addr(self):\n", + "lineno": 168, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 173, + "line": " # Instead of using our own copy of bind_addr, mirror httpserver.\n", + "lineno": 169, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 173, + "line": " # This is necessary because methods in BaseServerPlugin expect\n", + "lineno": 170, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 173, + "line": " # bind_addr to match the bind address the server is using, such as\n", + "lineno": 171, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 173, + "line": " # when binding to port 0.\n", + "lineno": 172, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 173, + "line": " return self.httpserver.bind_addr\n", + "lineno": 173, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 168 + }, + { + "end_region_line": 192, + "line": "\n", + "lineno": 174, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 192, + "line": " @bind_addr.setter\n", + "lineno": 175, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 177, + "line": " def bind_addr(self, value):\n", + "lineno": 176, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 176 + }, + { + "end_region_line": 177, + "line": " self.httpserver.bind_addr = value\n", + "lineno": 177, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 176 + }, + { + "end_region_line": 192, + "line": "\n", + "lineno": 178, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 183, + "line": " def START(self):\n", + "lineno": 179, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 179 + }, + { + "end_region_line": 183, + "line": " # Reset httpserver bind_addr. This value changes if httpserver has\n", + "lineno": 180, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 179 + }, + { + "end_region_line": 183, + "line": " # been started before.\n", + "lineno": 181, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 179 + }, + { + "end_region_line": 183, + "line": " self.httpserver.bind_addr = self._default_bind_addr\n", + "lineno": 182, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 179 + }, + { + "end_region_line": 183, + "line": " super(ServerPlugin, self).START()\n", + "lineno": 183, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 179 + }, + { + "end_region_line": 192, + "line": "\n", + "lineno": 184, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 192, + "line": " @property\n", + "lineno": 185, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 139 + }, + { + "end_region_line": 192, + "line": " def interface(self):\n", + "lineno": 186, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 192, + "line": " if self.httpserver.bind_addr is None:\n", + "lineno": 187, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 192, + "line": " return \"unknown interface (dynamic?)\"\n", + "lineno": 188, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 192, + "line": " if isinstance(self.httpserver.bind_addr, tuple):\n", + "lineno": 189, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 192, + "line": " host, port = self.httpserver.bind_addr\n", + "lineno": 190, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 192, + "line": " return \"%s:%s\" % (host, port)\n", + "lineno": 191, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 192, + "line": " return \"socket file: %s\" % self.httpserver.bind_addr\n", + "lineno": 192, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 186 + }, + { + "end_region_line": 193, + "line": "\n", + "lineno": 193, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 193 + }, + { + "end_region_line": 194, + "line": "\n", + "lineno": 194, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 194 + }, + { + "end_region_line": 233, + "line": "class KolibriServerPlugin(ServerPlugin):\n", + "lineno": 195, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 212, + "line": " def __init__(self, bus, port):\n", + "lineno": 196, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " # Check if there are other kolibri instances running\n", + "lineno": 197, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " # If there are, then we need to stop users from starting kolibri again.\n", + "lineno": 198, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " pid, port, _, status = _read_pid_file(bus.pid_file)\n", + "lineno": 199, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " if (\n", + "lineno": 200, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " status in IS_RUNNING\n", + "lineno": 201, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " and pid_exists(pid)\n", + "lineno": 202, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " and not port_is_available_on_host(\n", + "lineno": 203, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"], port\n", + "lineno": 204, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " )\n", + "lineno": 205, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " ):\n", + "lineno": 206, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " logger.error(\n", + "lineno": 207, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " \"There is another Kolibri server running. \"\n", + "lineno": 208, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " \"Please use `kolibri stop` and try again.\"\n", + "lineno": 209, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " )\n", + "lineno": 210, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " raise RunningException(\"There is another Kolibri server running.\")\n", + "lineno": 211, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 212, + "line": " super(KolibriServerPlugin, self).__init__(bus, port)\n", + "lineno": 212, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 196 + }, + { + "end_region_line": 233, + "line": "\n", + "lineno": 213, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 233, + "line": " @property\n", + "lineno": 214, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 218, + "line": " def application(self):\n", + "lineno": 215, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 218, + "line": " from kolibri.deployment.default.wsgi import application\n", + "lineno": 216, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 218, + "line": "\n", + "lineno": 217, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 218, + "line": " return application\n", + "lineno": 218, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 215 + }, + { + "end_region_line": 233, + "line": "\n", + "lineno": 219, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 223, + "line": " def ENTER(self):\n", + "lineno": 220, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 220 + }, + { + "end_region_line": 223, + "line": " super(KolibriServerPlugin, self).ENTER()\n", + "lineno": 221, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 220 + }, + { + "end_region_line": 223, + "line": " # Clear old sessions up\n", + "lineno": 222, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 220 + }, + { + "end_region_line": 223, + "line": " call_command(\"clearsessions\")\n", + "lineno": 223, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 220 + }, + { + "end_region_line": 233, + "line": "\n", + "lineno": 224, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 231, + "line": " def START(self):\n", + "lineno": 225, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 231, + "line": " super(KolibriServerPlugin, self).START()\n", + "lineno": 226, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 231, + "line": " _, bind_port = self.httpserver.bind_addr\n", + "lineno": 227, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 231, + "line": " self.bus.publish(\"SERVING\", bind_port)\n", + "lineno": 228, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 231, + "line": " __, urls = get_urls(listen_port=bind_port)\n", + "lineno": 229, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 225 + }, + { + "end_region_line": 231, + "line": " for url in urls:\n", + "lineno": 230, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 231, + "line": " self.bus.publish(\"log\", \"Kolibri running on: {}\".format(url), 20)\n", + "lineno": 231, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 230 + }, + { + "end_region_line": 233, + "line": "\n", + "lineno": 232, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 233, + "line": " START.priority = 75\n", + "lineno": 233, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 195 + }, + { + "end_region_line": 234, + "line": "\n", + "lineno": 234, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 234 + }, + { + "end_region_line": 235, + "line": "\n", + "lineno": 235, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 235 + }, + { + "end_region_line": 248, + "line": "class ZipContentServerPlugin(ServerPlugin):\n", + "lineno": 236, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 236 + }, + { + "end_region_line": 248, + "line": " @property\n", + "lineno": 237, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 236 + }, + { + "end_region_line": 241, + "line": " def application(self):\n", + "lineno": 238, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 238 + }, + { + "end_region_line": 241, + "line": " from kolibri.deployment.default.alt_wsgi import alt_application\n", + "lineno": 239, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 238 + }, + { + "end_region_line": 241, + "line": "\n", + "lineno": 240, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 238 + }, + { + "end_region_line": 241, + "line": " return alt_application\n", + "lineno": 241, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 238 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 242, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 236 + }, + { + "end_region_line": 246, + "line": " def START(self):\n", + "lineno": 243, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 243 + }, + { + "end_region_line": 246, + "line": " super(ZipContentServerPlugin, self).START()\n", + "lineno": 244, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 243 + }, + { + "end_region_line": 246, + "line": " _, bind_port = self.httpserver.bind_addr\n", + "lineno": 245, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 243 + }, + { + "end_region_line": 246, + "line": " self.bus.publish(\"ZIP_SERVING\", bind_port)\n", + "lineno": 246, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 243 + }, + { + "end_region_line": 248, + "line": "\n", + "lineno": 247, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 236 + }, + { + "end_region_line": 248, + "line": " START.priority = 75\n", + "lineno": 248, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 236 + }, + { + "end_region_line": 249, + "line": "\n", + "lineno": 249, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 249 + }, + { + "end_region_line": 250, + "line": "\n", + "lineno": 250, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 250 + }, + { + "end_region_line": 272, + "line": "class ServicesPlugin(SimplePlugin):\n", + "lineno": 251, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 254, + "line": " def __init__(self, bus):\n", + "lineno": 252, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 252 + }, + { + "end_region_line": 254, + "line": " self.bus = bus\n", + "lineno": 253, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 252 + }, + { + "end_region_line": 254, + "line": " self.worker = None\n", + "lineno": 254, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 252 + }, + { + "end_region_line": 272, + "line": "\n", + "lineno": 255, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 268, + "line": " def START(self):\n", + "lineno": 256, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " from kolibri.core.tasks.main import initialize_workers\n", + "lineno": 257, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " from kolibri.core.analytics.tasks import schedule_ping\n", + "lineno": 258, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " from kolibri.core.deviceadmin.tasks import schedule_vacuum\n", + "lineno": 259, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": "\n", + "lineno": 260, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " # schedule the pingback job if not already scheduled\n", + "lineno": 261, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " schedule_ping()\n", + "lineno": 262, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": "\n", + "lineno": 263, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " # schedule the vacuum job if not already scheduled\n", + "lineno": 264, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " schedule_vacuum()\n", + "lineno": 265, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": "\n", + "lineno": 266, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " # Initialize the iceqube engine to handle queued tasks\n", + "lineno": 267, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 268, + "line": " self.worker = initialize_workers()\n", + "lineno": 268, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 256 + }, + { + "end_region_line": 272, + "line": "\n", + "lineno": 269, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 251 + }, + { + "end_region_line": 272, + "line": " def STOP(self):\n", + "lineno": 270, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 272, + "line": " if self.worker is not None:\n", + "lineno": 271, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 272, + "line": " self.worker.shutdown(wait=True)\n", + "lineno": 272, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 270 + }, + { + "end_region_line": 273, + "line": "\n", + "lineno": 273, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 273 + }, + { + "end_region_line": 274, + "line": "\n", + "lineno": 274, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 274 + }, + { + "end_region_line": 352, + "line": "class ZeroConfPlugin(Monitor):\n", + "lineno": 275, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 288, + "line": " def __init__(self, bus, port):\n", + "lineno": 276, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " self.port = port\n", + "lineno": 277, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " if conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"] == \"0.0.0.0\":\n", + "lineno": 278, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " # Only bother doing dynamic updates of the zeroconf service if we're bound\n", + "lineno": 279, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " # to all available IP addresses.\n", + "lineno": 280, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " Monitor.__init__(self, bus, self.run, frequency=5)\n", + "lineno": 281, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " else:\n", + "lineno": 282, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " # Otherwise do a dummy initialization\n", + "lineno": 283, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " # A frequency of less than 0 will prevent the monitor from running\n", + "lineno": 284, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " Monitor.__init__(self, bus, None, frequency=-1)\n", + "lineno": 285, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " self.bus.subscribe(\"SERVING\", self.SERVING)\n", + "lineno": 286, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " self.bus.subscribe(\"UPDATE_ZEROCONF\", self.UPDATE_ZEROCONF)\n", + "lineno": 287, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 288, + "line": " self.broadcast = None\n", + "lineno": 288, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 276 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 289, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 352, + "line": " @property\n", + "lineno": 290, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 296, + "line": " def interfaces(self):\n", + "lineno": 291, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 296, + "line": " return (\n", + "lineno": 292, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 296, + "line": " InterfaceChoice.All\n", + "lineno": 293, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 296, + "line": " if conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"] == \"0.0.0.0\"\n", + "lineno": 294, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 296, + "line": " else [conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"]]\n", + "lineno": 295, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 296, + "line": " )\n", + "lineno": 296, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 291 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 297, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 352, + "line": " @property\n", + "lineno": 298, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 309, + "line": " def addresses_changed(self):\n", + "lineno": 299, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " # if we're bound to a specific addresses, then we don't need to do dynamic updates\n", + "lineno": 300, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " if conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"] != \"0.0.0.0\":\n", + "lineno": 301, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " return False\n", + "lineno": 302, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": "\n", + "lineno": 303, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " current_addresses = set(get_all_addresses())\n", + "lineno": 304, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " return (\n", + "lineno": 305, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " self.broadcast is not None\n", + "lineno": 306, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " and self.broadcast.is_broadcasting\n", + "lineno": 307, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " and self.broadcast.addresses != current_addresses\n", + "lineno": 308, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 309, + "line": " )\n", + "lineno": 309, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 299 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 310, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 312, + "line": " def SERVING(self, port):\n", + "lineno": 311, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 311 + }, + { + "end_region_line": 312, + "line": " self.port = port or self.port\n", + "lineno": 312, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 311 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 313, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 332, + "line": " def RUN(self):\n", + "lineno": 314, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " # Register the Kolibri zeroconf service so it will be discoverable on the network\n", + "lineno": 315, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " from kolibri.core.discovery.utils.network.broadcast import (\n", + "lineno": 316, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " build_broadcast_instance,\n", + "lineno": 317, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " KolibriBroadcast,\n", + "lineno": 318, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " )\n", + "lineno": 319, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " from kolibri.core.discovery.utils.network.search import NetworkLocationListener\n", + "lineno": 320, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": "\n", + "lineno": 321, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " instance = build_broadcast_instance(self.port)\n", + "lineno": 322, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": "\n", + "lineno": 323, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " if self.broadcast is None:\n", + "lineno": 324, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " self.broadcast = KolibriBroadcast(instance, interfaces=self.interfaces)\n", + "lineno": 325, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " self.broadcast.add_listener(NetworkLocationListener)\n", + "lineno": 326, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " self.broadcast.start_broadcast()\n", + "lineno": 327, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " else:\n", + "lineno": 328, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " # `interfaces` should only be passed to update when there is a change to the interfaces,\n", + "lineno": 329, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " # like the detection in self.run()\n", + "lineno": 330, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " interfaces = self.interfaces if self.addresses_changed else None\n", + "lineno": 331, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 332, + "line": " self.broadcast.update_broadcast(instance=instance, interfaces=interfaces)\n", + "lineno": 332, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 314 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 333, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 335, + "line": " def UPDATE_ZEROCONF(self):\n", + "lineno": 334, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 334 + }, + { + "end_region_line": 335, + "line": " self.RUN()\n", + "lineno": 335, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 334 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 336, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 342, + "line": " def STOP(self):\n", + "lineno": 337, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 342, + "line": " super(ZeroConfPlugin, self).STOP()\n", + "lineno": 338, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 342, + "line": "\n", + "lineno": 339, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 342, + "line": " if self.broadcast is not None:\n", + "lineno": 340, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 342, + "line": " self.broadcast.stop_broadcast()\n", + "lineno": 341, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 342, + "line": " self.broadcast = None\n", + "lineno": 342, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 337 + }, + { + "end_region_line": 352, + "line": "\n", + "lineno": 343, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 275 + }, + { + "end_region_line": 352, + "line": " def run(self):\n", + "lineno": 344, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " # If set of addresses that were present at the last time zeroconf updated its broadcast list\n", + "lineno": 345, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " # don't match the current set of all addresses for this device, then we should reinitialize\n", + "lineno": 346, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " # zeroconf, the listener, and the broadcast kolibri service.\n", + "lineno": 347, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " if self.addresses_changed:\n", + "lineno": 348, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " logger.info(\n", + "lineno": 349, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " \"List of local addresses has changed since zeroconf was last initialized, updating now\"\n", + "lineno": 350, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " )\n", + "lineno": 351, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 352, + "line": " self.broadcast.update_broadcast(interfaces=self.interfaces)\n", + "lineno": 352, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 344 + }, + { + "end_region_line": 353, + "line": "\n", + "lineno": 353, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 353 + }, + { + "end_region_line": 354, + "line": "\n", + "lineno": 354, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 354 + }, + { + "end_region_line": 355, + "line": "status_map = {\n", + "lineno": 355, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 355 + }, + { + "end_region_line": 356, + "line": " \"ENTER\": STATUS_STARTING_UP,\n", + "lineno": 356, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 356 + }, + { + "end_region_line": 357, + "line": " \"START\": STATUS_STARTING_UP,\n", + "lineno": 357, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 357 + }, + { + "end_region_line": 358, + "line": " \"START_ERROR\": STATUS_FAILED_TO_START,\n", + "lineno": 358, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 358 + }, + { + "end_region_line": 359, + "line": " \"RUN\": STATUS_RUNNING,\n", + "lineno": 359, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 359 + }, + { + "end_region_line": 360, + "line": " \"STOP\": STATUS_SHUTTING_DOWN,\n", + "lineno": 360, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 360 + }, + { + "end_region_line": 361, + "line": " \"STOP_ERROR\": STATUS_UNCLEAN_SHUTDOWN,\n", + "lineno": 361, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 361 + }, + { + "end_region_line": 362, + "line": " \"IDLE\": STATUS_STARTING_UP,\n", + "lineno": 362, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 362 + }, + { + "end_region_line": 363, + "line": " \"EXIT\": STATUS_STOPPED,\n", + "lineno": 363, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 363 + }, + { + "end_region_line": 364, + "line": " \"EXIT_ERROR\": STATUS_UNCLEAN_SHUTDOWN,\n", + "lineno": 364, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 364 + }, + { + "end_region_line": 365, + "line": "}\n", + "lineno": 365, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 365 + }, + { + "end_region_line": 366, + "line": "\n", + "lineno": 366, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 366 + }, + { + "end_region_line": 367, + "line": "IS_RUNNING = set([STATUS_RUNNING, STATUS_STARTING_UP, STATUS_SHUTTING_DOWN])\n", + "lineno": 367, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 367 + }, + { + "end_region_line": 368, + "line": "\n", + "lineno": 368, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 368 + }, + { + "end_region_line": 369, + "line": "\n", + "lineno": 369, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 369 + }, + { + "end_region_line": 410, + "line": "class PIDPlugin(SimplePlugin):\n", + "lineno": 370, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 381, + "line": " def __init__(self, bus):\n", + "lineno": 371, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": " self.bus = bus\n", + "lineno": 372, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": "\n", + "lineno": 373, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": " # Do this during initialization to set a startup lock\n", + "lineno": 374, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": " self.set_pid_file(STATUS_STARTING_UP)\n", + "lineno": 375, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": " self.bus.subscribe(\"SERVING\", self.SERVING)\n", + "lineno": 376, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": " self.bus.subscribe(\"ZIP_SERVING\", self.ZIP_SERVING)\n", + "lineno": 377, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 371 + }, + { + "end_region_line": 381, + "line": " for bus_status, status in status_map.items():\n", + "lineno": 378, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 381, + "line": " handler = partial(self.set_pid_file, status)\n", + "lineno": 379, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 381, + "line": " handler.priority = 10\n", + "lineno": 380, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 381, + "line": " self.bus.subscribe(bus_status, handler)\n", + "lineno": 381, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 378 + }, + { + "end_region_line": 410, + "line": "\n", + "lineno": 382, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 396, + "line": " def set_pid_file(self, status, *args):\n", + "lineno": 383, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " \"\"\"\n", + "lineno": 384, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " Writes a PID file in the format Kolibri parses\n", + "lineno": 385, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": "\n", + "lineno": 386, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " :param: status: status of the process\n", + "lineno": 387, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " \"\"\"\n", + "lineno": 388, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " if status is None:\n", + "lineno": 389, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " _, _, _, status = _read_pid_file(self.bus.pid_file)\n", + "lineno": 390, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " with open(self.bus.pid_file, \"w\") as f:\n", + "lineno": 391, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " f.write(\n", + "lineno": 392, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " \"{}\\n{}\\n{}\\n{}\\n\".format(\n", + "lineno": 393, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " os.getpid(), self.bus.port, self.bus.zip_port, status\n", + "lineno": 394, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " )\n", + "lineno": 395, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 396, + "line": " )\n", + "lineno": 396, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 383 + }, + { + "end_region_line": 410, + "line": "\n", + "lineno": 397, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 400, + "line": " def SERVING(self, port):\n", + "lineno": 398, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 398 + }, + { + "end_region_line": 400, + "line": " self.bus.port = port or self.bus.port\n", + "lineno": 399, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 398 + }, + { + "end_region_line": 400, + "line": " self.set_pid_file(STATUS_RUNNING)\n", + "lineno": 400, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 398 + }, + { + "end_region_line": 410, + "line": "\n", + "lineno": 401, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 404, + "line": " def ZIP_SERVING(self, zip_port):\n", + "lineno": 402, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 402 + }, + { + "end_region_line": 404, + "line": " self.bus.zip_port = zip_port or self.bus.zip_port\n", + "lineno": 403, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 402 + }, + { + "end_region_line": 404, + "line": " self.set_pid_file(None)\n", + "lineno": 404, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 402 + }, + { + "end_region_line": 410, + "line": "\n", + "lineno": 405, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 370 + }, + { + "end_region_line": 410, + "line": " def EXIT(self):\n", + "lineno": 406, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 410, + "line": " try:\n", + "lineno": 407, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 410, + "line": " os.unlink(self.bus.pid_file)\n", + "lineno": 408, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 410, + "line": " except OSError:\n", + "lineno": 409, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 410, + "line": " pass\n", + "lineno": 410, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 406 + }, + { + "end_region_line": 411, + "line": "\n", + "lineno": 411, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 411 + }, + { + "end_region_line": 412, + "line": "\n", + "lineno": 412, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 412 + }, + { + "end_region_line": 464, + "line": "class SystemdNotifyPlugin(SimplePlugin):\n", + "lineno": 413, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " \"\"\"\n", + "lineno": 414, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " A plugin to notify systemd of the process' state when it's starting up and\n", + "lineno": 415, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " shutting down.\n", + "lineno": 416, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 417, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " This allows systemd to wait before starting dependent processes until all\n", + "lineno": 418, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " Kolibri process plugins have started successfully. In particular, zeroconf\n", + "lineno": 419, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " registration can take a few seconds.\n", + "lineno": 420, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 421, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " You must check to see if systemd is supported before instantiating this\n", + "lineno": 422, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " plugin, by calling ```SystemdNotifyPlugin.is_supported()```.\n", + "lineno": 423, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " \"\"\"\n", + "lineno": 424, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 425, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 438, + "line": " def __init__(self, bus):\n", + "lineno": 426, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " self.bus = bus\n", + "lineno": 427, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": "\n", + "lineno": 428, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " if not self.is_supported():\n", + "lineno": 429, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " raise RuntimeError(\n", + "lineno": 430, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " \"Attempted to use SystemdNotifyPlugin when NOTIFY_SOCKET environment variable is not set\"\n", + "lineno": 431, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " )\n", + "lineno": 432, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": "\n", + "lineno": 433, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " self.notify_socket_path = os.environ[\"NOTIFY_SOCKET\"]\n", + "lineno": 434, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": "\n", + "lineno": 435, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " self.bus.subscribe(\"RUN\", self.send_ready, priority=999)\n", + "lineno": 436, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " self.bus.subscribe(\"STOP\", self.send_stopping, priority=1)\n", + "lineno": 437, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 438, + "line": " self.bus.subscribe(\"EXIT\", self.send_stopping, priority=1)\n", + "lineno": 438, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 426 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 439, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " @classmethod\n", + "lineno": 440, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 442, + "line": " def is_supported(cls):\n", + "lineno": 441, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 441 + }, + { + "end_region_line": 442, + "line": " return os.environ.get(\"NOTIFY_SOCKET\", \"\") != \"\"\n", + "lineno": 442, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 441 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 443, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 458, + "line": " def sd_notify(self, state):\n", + "lineno": 444, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " \"\"\"\n", + "lineno": 445, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " Sends a state notification to systemd\n", + "lineno": 446, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": "\n", + "lineno": 447, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " See man page sd_notify(3)\n", + "lineno": 448, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": "\n", + "lineno": 449, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " :param: state: new service state\n", + "lineno": 450, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " \"\"\"\n", + "lineno": 451, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " try:\n", + "lineno": 452, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " with socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM) as s:\n", + "lineno": 453, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " logger.info(\"Sending sd-notify state {}\".format(state))\n", + "lineno": 454, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " s.connect(self.notify_socket_path)\n", + "lineno": 455, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " s.send(state.encode())\n", + "lineno": 456, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " except OSError as e:\n", + "lineno": 457, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 458, + "line": " logger.warning(\"Failed to send sd-notify state {}: {}\".format(state, e))\n", + "lineno": 458, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 444 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 459, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 461, + "line": " def send_ready(self):\n", + "lineno": 460, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 461, + "line": " self.sd_notify(\"READY=1\")\n", + "lineno": 461, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 460 + }, + { + "end_region_line": 464, + "line": "\n", + "lineno": 462, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 413 + }, + { + "end_region_line": 464, + "line": " def send_stopping(self):\n", + "lineno": 463, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 464, + "line": " self.sd_notify(\"STOPPING=1\")\n", + "lineno": 464, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 463 + }, + { + "end_region_line": 465, + "line": "\n", + "lineno": 465, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 465 + }, + { + "end_region_line": 466, + "line": "\n", + "lineno": 466, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 466 + }, + { + "end_region_line": 486, + "line": "def _port_check(port):\n", + "lineno": 467, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " # In case that something other than Kolibri occupies the port,\n", + "lineno": 468, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " # check the port's availability.\n", + "lineno": 469, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " # Bypass check when socket activation is used\n", + "lineno": 470, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " # https://manpages.debian.org/testing/libsystemd-dev/sd_listen_fds.3.en.html#ENVIRONMENT\n", + "lineno": 471, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " # Also bypass when the port is 0, as that will choose a port\n", + "lineno": 472, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " if (\n", + "lineno": 473, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " not os.environ.get(\"LISTEN_PID\", None)\n", + "lineno": 474, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " and port\n", + "lineno": 475, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " and not port_is_available_on_host(\n", + "lineno": 476, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"], int(port)\n", + "lineno": 477, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " )\n", + "lineno": 478, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " ):\n", + "lineno": 479, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " # Port is occupied\n", + "lineno": 480, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " logger.error(\n", + "lineno": 481, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " \"Port {} is occupied.\\n\"\n", + "lineno": 482, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " \"Please check that you do not have other processes \"\n", + "lineno": 483, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " \"running on this port and try again.\\n\".format(port)\n", + "lineno": 484, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " )\n", + "lineno": 485, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 486, + "line": " raise PortOccupied(\"Port {} is occupied.\".format(port))\n", + "lineno": 486, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 467 + }, + { + "end_region_line": 487, + "line": "\n", + "lineno": 487, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 487 + }, + { + "end_region_line": 488, + "line": "\n", + "lineno": 488, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 488 + }, + { + "end_region_line": 524, + "line": "class DaemonizePlugin(SimplePlugin):\n", + "lineno": 489, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 489 + }, + { + "end_region_line": 492, + "line": " def __init__(self, bus, check_ports):\n", + "lineno": 490, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 490 + }, + { + "end_region_line": 492, + "line": " self.check_ports = check_ports\n", + "lineno": 491, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 490 + }, + { + "end_region_line": 492, + "line": " super(DaemonizePlugin, self).__init__(bus)\n", + "lineno": 492, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 490 + }, + { + "end_region_line": 524, + "line": "\n", + "lineno": 493, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 489 + }, + { + "end_region_line": 521, + "line": " def ENTER(self):\n", + "lineno": 494, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " self.bus.publish(\"log\", \"Running Kolibri as background process\", 20)\n", + "lineno": 495, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " if self.check_ports:\n", + "lineno": 496, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " _port_check(self.bus.port)\n", + "lineno": 497, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " _port_check(self.bus.zip_port)\n", + "lineno": 498, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " if self.bus.port:\n", + "lineno": 499, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " __, urls = get_urls(listen_port=self.bus.port)\n", + "lineno": 500, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 502, + "line": " for url in urls:\n", + "lineno": 501, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 501 + }, + { + "end_region_line": 502, + "line": " logger.info(\"Kolibri running on: {}\".format(url))\n", + "lineno": 502, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 501 + }, + { + "end_region_line": 521, + "line": " else:\n", + "lineno": 503, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " logger.info(\n", + "lineno": 504, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " \"No port specified, for information about accessing the server, run kolibri status\"\n", + "lineno": 505, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " )\n", + "lineno": 506, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " # Daemonize at this point, no more user output is needed\n", + "lineno": 507, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": "\n", + "lineno": 508, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " kolibri_log = settings.LOGGING[\"handlers\"][\"file\"][\"filename\"]\n", + "lineno": 509, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " self.bus.publish(\n", + "lineno": 510, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " \"log\", \"Going to background mode, logging to {0}\".format(kolibri_log), 20\n", + "lineno": 511, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " )\n", + "lineno": 512, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": "\n", + "lineno": 513, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " kwargs = {}\n", + "lineno": 514, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " # Truncate the file\n", + "lineno": 515, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " if os.path.isfile(DAEMON_LOG):\n", + "lineno": 516, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " open(DAEMON_LOG, \"w\").truncate()\n", + "lineno": 517, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " kwargs[\"out_log\"] = DAEMON_LOG\n", + "lineno": 518, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " kwargs[\"err_log\"] = DAEMON_LOG\n", + "lineno": 519, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": "\n", + "lineno": 520, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 521, + "line": " become_daemon(**kwargs)\n", + "lineno": 521, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 494 + }, + { + "end_region_line": 524, + "line": "\n", + "lineno": 522, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 489 + }, + { + "end_region_line": 524, + "line": " # Set this to priority 0 so that it gets executed before any other ENTER handlers.\n", + "lineno": 523, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 489 + }, + { + "end_region_line": 524, + "line": " ENTER.priority = 0\n", + "lineno": 524, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 489 + }, + { + "end_region_line": 525, + "line": "\n", + "lineno": 525, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 525 + }, + { + "end_region_line": 526, + "line": "\n", + "lineno": 526, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 526 + }, + { + "end_region_line": 529, + "line": "class LogPlugin(SimplePlugin):\n", + "lineno": 527, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 527 + }, + { + "end_region_line": 529, + "line": " def log(self, msg, level):\n", + "lineno": 528, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 528 + }, + { + "end_region_line": 529, + "line": " logger.log(level, msg)\n", + "lineno": 529, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 528 + }, + { + "end_region_line": 530, + "line": "\n", + "lineno": 530, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 530 + }, + { + "end_region_line": 531, + "line": "\n", + "lineno": 531, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 531 + }, + { + "end_region_line": 561, + "line": "class SignalHandler(BaseSignalHandler):\n", + "lineno": 532, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 543, + "line": " def __init__(self, bus):\n", + "lineno": 533, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " super(SignalHandler, self).__init__(bus)\n", + "lineno": 534, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " self.process_pid = None\n", + "lineno": 535, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": "\n", + "lineno": 536, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " self.handlers.update(\n", + "lineno": 537, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " {\n", + "lineno": 538, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " \"SIGINT\": self.handle_SIGINT,\n", + "lineno": 539, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " \"CTRL_C_EVENT\": self.handle_SIGINT,\n", + "lineno": 540, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " \"CTRL_BREAK_EVENT\": self.handle_SIGINT,\n", + "lineno": 541, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " }\n", + "lineno": 542, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 543, + "line": " )\n", + "lineno": 543, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 533 + }, + { + "end_region_line": 561, + "line": "\n", + "lineno": 544, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 549, + "line": " def _handle_signal(self, signum=None, frame=None):\n", + "lineno": 545, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 545 + }, + { + "end_region_line": 549, + "line": " if self.process_pid is None:\n", + "lineno": 546, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 545 + }, + { + "end_region_line": 549, + "line": " return super(SignalHandler, self)._handle_signal(signum, frame)\n", + "lineno": 547, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 545 + }, + { + "end_region_line": 549, + "line": " if os.getpid() == self.process_pid:\n", + "lineno": 548, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 545 + }, + { + "end_region_line": 549, + "line": " return super(SignalHandler, self)._handle_signal(signum, frame)\n", + "lineno": 549, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 545 + }, + { + "end_region_line": 561, + "line": "\n", + "lineno": 550, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 553, + "line": " def subscribe(self):\n", + "lineno": 551, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 551 + }, + { + "end_region_line": 553, + "line": " super(SignalHandler, self).subscribe()\n", + "lineno": 552, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 551 + }, + { + "end_region_line": 553, + "line": " self.bus.subscribe(\"ENTER\", self.ENTER)\n", + "lineno": 553, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 551 + }, + { + "end_region_line": 561, + "line": "\n", + "lineno": 554, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 556, + "line": " def ENTER(self):\n", + "lineno": 555, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 555 + }, + { + "end_region_line": 556, + "line": " self.process_pid = os.getpid()\n", + "lineno": 556, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 555 + }, + { + "end_region_line": 561, + "line": "\n", + "lineno": 557, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 532 + }, + { + "end_region_line": 561, + "line": " def handle_SIGINT(self):\n", + "lineno": 558, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 561, + "line": " \"\"\"Transition to the EXITED state.\"\"\"\n", + "lineno": 559, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 561, + "line": " self.bus.log(\"Keyboard interrupt caught. Exiting.\")\n", + "lineno": 560, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 561, + "line": " self.bus.transition(\"EXITED\")\n", + "lineno": 561, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 558 + }, + { + "end_region_line": 562, + "line": "\n", + "lineno": 562, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 562 + }, + { + "end_region_line": 563, + "line": "\n", + "lineno": 563, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 563 + }, + { + "end_region_line": 606, + "line": "class ProcessControlPlugin(Monitor):\n", + "lineno": 564, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 564 + }, + { + "end_region_line": 567, + "line": " def __init__(self, bus):\n", + "lineno": 565, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 567, + "line": " self.mtime = self.get_mtime()\n", + "lineno": 566, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 567, + "line": " Monitor.__init__(self, bus, self.run, 1)\n", + "lineno": 567, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 565 + }, + { + "end_region_line": 606, + "line": "\n", + "lineno": 568, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 564 + }, + { + "end_region_line": 573, + "line": " def get_mtime(self):\n", + "lineno": 569, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 573, + "line": " try:\n", + "lineno": 570, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 573, + "line": " return os.stat(PROCESS_CONTROL_FLAG).st_mtime\n", + "lineno": 571, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 573, + "line": " except OSError:\n", + "lineno": 572, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 573, + "line": " return 0\n", + "lineno": 573, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 569 + }, + { + "end_region_line": 606, + "line": "\n", + "lineno": 574, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 564 + }, + { + "end_region_line": 606, + "line": " def run(self):\n", + "lineno": 575, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " mtime = self.get_mtime()\n", + "lineno": 576, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " if mtime > self.mtime:\n", + "lineno": 577, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # The file has been deleted or modified.\n", + "lineno": 578, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " with open(PROCESS_CONTROL_FLAG, \"r\") as f:\n", + "lineno": 579, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " try:\n", + "lineno": 580, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " command = f.read().strip()\n", + "lineno": 581, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " except (IOError, OSError):\n", + "lineno": 582, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # If the file does not exist, or there is\n", + "lineno": 583, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # an error when reading the file, we just carry on.\n", + "lineno": 584, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " command = \"\"\n", + "lineno": 585, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " if command == RESTART:\n", + "lineno": 586, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.bus.log(\"Restarting server.\")\n", + "lineno": 587, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.thread.cancel()\n", + "lineno": 588, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " if installation_types.WINDOWS in installation_type().lower():\n", + "lineno": 589, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # On Windows, we need to restart the server with the same executable\n", + "lineno": 590, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # magicbus gets messed up trying to find a python script to run\n", + "lineno": 591, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " sys.executable = sys.argv[0]\n", + "lineno": 592, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " sys.argv = sys.argv[1:]\n", + "lineno": 593, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.bus.restart()\n", + "lineno": 594, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " elif command == STOP:\n", + "lineno": 595, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.bus.log(\"Stopping server.\")\n", + "lineno": 596, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.thread.cancel()\n", + "lineno": 597, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.bus.transition(\"EXITED\")\n", + "lineno": 598, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " elif command == UPDATE_ZEROCONF:\n", + "lineno": 599, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.bus.publish(\"UPDATE_ZEROCONF\")\n", + "lineno": 600, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # since publish doesn't modify the bus state like `transition` does, we would keep\n", + "lineno": 601, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # triggering this if we didn't set modified time, so setting it means we'll wait\n", + "lineno": 602, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " # for a new change\n", + "lineno": 603, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.mtime = mtime\n", + "lineno": 604, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " else:\n", + "lineno": 605, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 606, + "line": " self.mtime = mtime\n", + "lineno": 606, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 575 + }, + { + "end_region_line": 607, + "line": "\n", + "lineno": 607, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 607 + }, + { + "end_region_line": 608, + "line": "\n", + "lineno": 608, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 608 + }, + { + "end_region_line": 634, + "line": "class ThreadWait(SimplePlugin):\n", + "lineno": 609, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": " \"\"\"\n", + "lineno": 610, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": " Vendored from magicbus for Python 3.9 compatibility.\n", + "lineno": 611, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": " The current released version of magicbus is still using isAlive\n", + "lineno": 612, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": " instead of is_alive which is no longer used in Python 3.9.\n", + "lineno": 613, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": " \"\"\"\n", + "lineno": 614, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": "\n", + "lineno": 615, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 632, + "line": " def EXIT(self):\n", + "lineno": 616, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " # Waiting for ALL child threads to finish is necessary on OS X.\n", + "lineno": 617, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " # See http://www.cherrypy.org/ticket/581.\n", + "lineno": 618, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " # It's also good to let them all shut down before allowing\n", + "lineno": 619, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " # the main thread to call atexit handlers.\n", + "lineno": 620, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " # See http://www.cherrypy.org/ticket/751.\n", + "lineno": 621, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " self.bus.log(\"Waiting for child threads to terminate...\")\n", + "lineno": 622, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 616 + }, + { + "end_region_line": 632, + "line": " for t in threading.enumerate():\n", + "lineno": 623, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " if t == threading.current_thread() or not t.is_alive():\n", + "lineno": 624, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " continue\n", + "lineno": 625, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": "\n", + "lineno": 626, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " # Note that any dummy (external) threads are always daemonic.\n", + "lineno": 627, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " if t.daemon or isinstance(t, threading._MainThread):\n", + "lineno": 628, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " continue\n", + "lineno": 629, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": "\n", + "lineno": 630, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " self.bus.log(\"Waiting for thread %s.\" % t.getName())\n", + "lineno": 631, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 632, + "line": " t.join()\n", + "lineno": 632, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 623 + }, + { + "end_region_line": 634, + "line": "\n", + "lineno": 633, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 634, + "line": " EXIT.priority = 100\n", + "lineno": 634, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 609 + }, + { + "end_region_line": 635, + "line": "\n", + "lineno": 635, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 635 + }, + { + "end_region_line": 636, + "line": "\n", + "lineno": 636, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 636 + }, + { + "end_region_line": 645, + "line": "def wait_for_status(target, timeout=10):\n", + "lineno": 637, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 637 + }, + { + "end_region_line": 645, + "line": " starttime = time.time()\n", + "lineno": 638, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 637 + }, + { + "end_region_line": 644, + "line": " while time.time() - starttime <= timeout:\n", + "lineno": 639, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 639 + }, + { + "end_region_line": 644, + "line": " _, _, _, status = _read_pid_file(PID_FILE)\n", + "lineno": 640, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 639 + }, + { + "end_region_line": 644, + "line": " if status != target:\n", + "lineno": 641, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 639 + }, + { + "end_region_line": 644, + "line": " time.sleep(0.1)\n", + "lineno": 642, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 639 + }, + { + "end_region_line": 644, + "line": " else:\n", + "lineno": 643, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 639 + }, + { + "end_region_line": 644, + "line": " return True\n", + "lineno": 644, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 639 + }, + { + "end_region_line": 645, + "line": " return False\n", + "lineno": 645, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 637 + }, + { + "end_region_line": 646, + "line": "\n", + "lineno": 646, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 646 + }, + { + "end_region_line": 647, + "line": "\n", + "lineno": 647, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 647 + }, + { + "end_region_line": 648, + "line": "# The SIGKILL signal does not exist on windows\n", + "lineno": 648, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 648 + }, + { + "end_region_line": 649, + "line": "# We use CTRL_C_EVENT instead, as it is intended\n", + "lineno": 649, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 649 + }, + { + "end_region_line": 650, + "line": "# to be passed to the os.kill command.\n", + "lineno": 650, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 650 + }, + { + "end_region_line": 651, + "line": "if sys.platform == \"win32\":\n", + "lineno": 651, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 651 + }, + { + "end_region_line": 652, + "line": " SIGKILL = signal.CTRL_C_EVENT\n", + "lineno": 652, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 652 + }, + { + "end_region_line": 653, + "line": "else:\n", + "lineno": 653, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 653 + }, + { + "end_region_line": 654, + "line": " SIGKILL = signal.SIGKILL\n", + "lineno": 654, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 654 + }, + { + "end_region_line": 655, + "line": "\n", + "lineno": 655, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 655 + }, + { + "end_region_line": 656, + "line": "\n", + "lineno": 656, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 656 + }, + { + "end_region_line": 687, + "line": "def stop():\n", + "lineno": 657, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " \"\"\"\n", + "lineno": 658, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " Stops the kolibri server\n", + "lineno": 659, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " :raises: NotRunning\n", + "lineno": 660, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " \"\"\"\n", + "lineno": 661, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " pid, __, __, status = _read_pid_file(PID_FILE)\n", + "lineno": 662, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": "\n", + "lineno": 663, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " if not pid:\n", + "lineno": 664, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " return status\n", + "lineno": 665, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": "\n", + "lineno": 666, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " with open(PROCESS_CONTROL_FLAG, \"w\") as f:\n", + "lineno": 667, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " f.write(STOP)\n", + "lineno": 668, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " wait_for_status(STATUS_STOPPED, timeout=10)\n", + "lineno": 669, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " if pid_exists(pid):\n", + "lineno": 670, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " logger.debug(\"Process wth pid %s still exists; attempting a SIGKILL.\" % pid)\n", + "lineno": 671, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " try:\n", + "lineno": 672, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " os.kill(pid, SIGKILL)\n", + "lineno": 673, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " except SystemError as e:\n", + "lineno": 674, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " logger.debug(\n", + "lineno": 675, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " \"Received an error while trying to kill the Kolibri process: %s\" % e\n", + "lineno": 676, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " )\n", + "lineno": 677, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " starttime = time.time()\n", + "lineno": 678, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 683, + "line": " while time.time() - starttime <= 10:\n", + "lineno": 679, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 679 + }, + { + "end_region_line": 683, + "line": " if pid_exists(pid):\n", + "lineno": 680, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 679 + }, + { + "end_region_line": 683, + "line": " time.sleep(0.1)\n", + "lineno": 681, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 679 + }, + { + "end_region_line": 683, + "line": " else:\n", + "lineno": 682, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 679 + }, + { + "end_region_line": 683, + "line": " break\n", + "lineno": 683, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 679 + }, + { + "end_region_line": 687, + "line": " if pid_exists(pid):\n", + "lineno": 684, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " logging.error(\"Kolibri process has failed to shutdown\")\n", + "lineno": 685, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " return STATUS_UNCLEAN_SHUTDOWN\n", + "lineno": 686, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 687, + "line": " return STATUS_STOPPED\n", + "lineno": 687, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 657 + }, + { + "end_region_line": 688, + "line": "\n", + "lineno": 688, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 688 + }, + { + "end_region_line": 689, + "line": "\n", + "lineno": 689, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 689 + }, + { + "end_region_line": 739, + "line": "class BaseKolibriProcessBus(ProcessBus):\n", + "lineno": 690, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 735, + "line": " def __init__(\n", + "lineno": 691, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self,\n", + "lineno": 692, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " port=0,\n", + "lineno": 693, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " zip_port=0,\n", + "lineno": 694, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " pid_file=PID_FILE,\n", + "lineno": 695, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " ):\n", + "lineno": 696, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self.pid_file = pid_file\n", + "lineno": 697, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self.port = int(port)\n", + "lineno": 698, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self.zip_port = int(zip_port)\n", + "lineno": 699, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 700, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " super(BaseKolibriProcessBus, self).__init__()\n", + "lineno": 701, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " # This can be removed when a new version of magicbus is released that\n", + "lineno": 702, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " # includes their fix for Python 3.9 compatibility.\n", + "lineno": 703, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self.thread_wait.unsubscribe()\n", + "lineno": 704, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self.thread_wait = ThreadWait(self)\n", + "lineno": 705, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " self.thread_wait.subscribe()\n", + "lineno": 706, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " # Setup plugin for handling PID file cleanup\n", + "lineno": 707, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " # Do this first to obtain a PID file lock as soon as\n", + "lineno": 708, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " # possible and reduce the risk of competing servers\n", + "lineno": 709, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " pid_plugin = PIDPlugin(self)\n", + "lineno": 710, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " pid_plugin.subscribe()\n", + "lineno": 711, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 712, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " if SystemdNotifyPlugin.is_supported():\n", + "lineno": 713, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " systemd_plugin = SystemdNotifyPlugin(self)\n", + "lineno": 714, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " systemd_plugin.subscribe()\n", + "lineno": 715, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 716, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " logger.info(\"Starting Kolibri {version}\".format(version=kolibri.__version__))\n", + "lineno": 717, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 718, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " log_plugin = LogPlugin(self)\n", + "lineno": 719, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " log_plugin.subscribe()\n", + "lineno": 720, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 721, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " signal_handler = SignalHandler(self)\n", + "lineno": 722, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 723, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " signal_handler.subscribe()\n", + "lineno": 724, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 725, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " if getattr(settings, \"DEVELOPER_MODE\", False):\n", + "lineno": 726, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " autoreloader = Autoreloader(self)\n", + "lineno": 727, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " plugins = os.path.join(conf.KOLIBRI_HOME, \"plugins.json\")\n", + "lineno": 728, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " options = os.path.join(conf.KOLIBRI_HOME, \"options.ini\")\n", + "lineno": 729, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " autoreloader.files.add(plugins)\n", + "lineno": 730, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " autoreloader.files.add(options)\n", + "lineno": 731, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " autoreloader.subscribe()\n", + "lineno": 732, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": "\n", + "lineno": 733, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " reload_plugin = ProcessControlPlugin(self)\n", + "lineno": 734, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 735, + "line": " reload_plugin.subscribe()\n", + "lineno": 735, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 691 + }, + { + "end_region_line": 739, + "line": "\n", + "lineno": 736, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 690 + }, + { + "end_region_line": 739, + "line": " def run(self):\n", + "lineno": 737, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 737 + }, + { + "end_region_line": 739, + "line": " self.graceful()\n", + "lineno": 738, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 737 + }, + { + "end_region_line": 739, + "line": " self.block()\n", + "lineno": 739, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 737 + }, + { + "end_region_line": 740, + "line": "\n", + "lineno": 740, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 740 + }, + { + "end_region_line": 741, + "line": "\n", + "lineno": 741, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 741 + }, + { + "end_region_line": 758, + "line": "class KolibriServicesProcessBus(BaseKolibriProcessBus):\n", + "lineno": 742, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 742 + }, + { + "end_region_line": 752, + "line": " def __init__(self, *args, **kwargs):\n", + "lineno": 743, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " super(KolibriServicesProcessBus, self).__init__(*args, **kwargs)\n", + "lineno": 744, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": "\n", + "lineno": 745, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " # Setup plugin for services\n", + "lineno": 746, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " service_plugin = ServicesPlugin(self)\n", + "lineno": 747, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " service_plugin.subscribe()\n", + "lineno": 748, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": "\n", + "lineno": 749, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " # Setup zeroconf plugin\n", + "lineno": 750, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " zeroconf_plugin = ZeroConfPlugin(self, self.port)\n", + "lineno": 751, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 752, + "line": " zeroconf_plugin.subscribe()\n", + "lineno": 752, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 743 + }, + { + "end_region_line": 758, + "line": "\n", + "lineno": 753, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 742 + }, + { + "end_region_line": 758, + "line": " def run(self):\n", + "lineno": 754, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 754 + }, + { + "end_region_line": 758, + "line": " self.graceful()\n", + "lineno": 755, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 754 + }, + { + "end_region_line": 758, + "line": " self.publish(\"SERVING\", self.port)\n", + "lineno": 756, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 754 + }, + { + "end_region_line": 758, + "line": "\n", + "lineno": 757, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 754 + }, + { + "end_region_line": 758, + "line": " self.block()\n", + "lineno": 758, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 754 + }, + { + "end_region_line": 759, + "line": "\n", + "lineno": 759, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 759 + }, + { + "end_region_line": 760, + "line": "\n", + "lineno": 760, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 760 + }, + { + "end_region_line": 793, + "line": "class KolibriProcessBus(KolibriServicesProcessBus):\n", + "lineno": 761, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " \"\"\"\n", + "lineno": 762, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " This class is the state machine that manages the starting, restarting, and shutdown of\n", + "lineno": 763, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " a running Kolibri instance. It is responsible for starting any WSGI servers that respond\n", + "lineno": 764, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " to HTTP requests in the Kolibri lifecycle, and also other ancillary services like\n", + "lineno": 765, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " a ZeroConf server, task runner work pool, etc.\n", + "lineno": 766, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": "\n", + "lineno": 767, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " The primary use case for this process bus is for running Kolibri in a consumer server or\n", + "lineno": 768, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " application context - although it can still be used to run the background services in\n", + "lineno": 769, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " other contexts. One possible example for the extensibility of this class is if it is used\n", + "lineno": 770, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " in conjunction with uwsgi, the 'restart' method of this class can be updated in a subclass\n", + "lineno": 771, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " to run the specific `uwsgi.restart()` function that would otherwise not get invoked.\n", + "lineno": 772, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " \"\"\"\n", + "lineno": 773, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": "\n", + "lineno": 774, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 789, + "line": " def __init__(self, *args, **kwargs):\n", + "lineno": 775, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " super(KolibriProcessBus, self).__init__(*args, **kwargs)\n", + "lineno": 776, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": "\n", + "lineno": 777, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " kolibri_server = KolibriServerPlugin(\n", + "lineno": 778, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " self,\n", + "lineno": 779, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " self.port,\n", + "lineno": 780, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " )\n", + "lineno": 781, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": "\n", + "lineno": 782, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " alt_port_server = ZipContentServerPlugin(\n", + "lineno": 783, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " self,\n", + "lineno": 784, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " self.zip_port,\n", + "lineno": 785, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " )\n", + "lineno": 786, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " # Subscribe these servers\n", + "lineno": 787, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " kolibri_server.subscribe()\n", + "lineno": 788, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 789, + "line": " alt_port_server.subscribe()\n", + "lineno": 789, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 775 + }, + { + "end_region_line": 793, + "line": "\n", + "lineno": 790, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 761 + }, + { + "end_region_line": 793, + "line": " def run(self):\n", + "lineno": 791, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 791 + }, + { + "end_region_line": 793, + "line": " self.graceful()\n", + "lineno": 792, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 791 + }, + { + "end_region_line": 793, + "line": " self.block()\n", + "lineno": 793, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 791 + }, + { + "end_region_line": 794, + "line": "\n", + "lineno": 794, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 794 + }, + { + "end_region_line": 795, + "line": "\n", + "lineno": 795, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 795 + }, + { + "end_region_line": 819, + "line": "def start(port=0, zip_port=0, serve_http=True, background=False):\n", + "lineno": 796, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " \"\"\"\n", + "lineno": 797, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " Starts the server.\n", + "lineno": 798, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": "\n", + "lineno": 799, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " :param: port: Port number (default: 0) - assigned by free port\n", + "lineno": 800, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " \"\"\"\n", + "lineno": 801, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " if serve_http:\n", + "lineno": 802, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " bus = KolibriProcessBus(\n", + "lineno": 803, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " port=port,\n", + "lineno": 804, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " zip_port=zip_port,\n", + "lineno": 805, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " )\n", + "lineno": 806, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " else:\n", + "lineno": 807, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " bus = KolibriServicesProcessBus(\n", + "lineno": 808, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " port=port,\n", + "lineno": 809, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " zip_port=zip_port,\n", + "lineno": 810, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " )\n", + "lineno": 811, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": "\n", + "lineno": 812, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " # On Mac, Python crashes when forking the process, so prevent daemonization until we can figure out\n", + "lineno": 813, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " # a better fix. See https://github.com/learningequality/kolibri/issues/4821\n", + "lineno": 814, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " if background and sys.platform != \"darwin\":\n", + "lineno": 815, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " daemonize_plugin = DaemonizePlugin(bus, serve_http)\n", + "lineno": 816, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " daemonize_plugin.subscribe()\n", + "lineno": 817, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": "\n", + "lineno": 818, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 819, + "line": " bus.run()\n", + "lineno": 819, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 796 + }, + { + "end_region_line": 820, + "line": "\n", + "lineno": 820, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 820 + }, + { + "end_region_line": 821, + "line": "\n", + "lineno": 821, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 821 + }, + { + "end_region_line": 828, + "line": "def signal_restart():\n", + "lineno": 822, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 828, + "line": " try:\n", + "lineno": 823, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 828, + "line": " with open(PROCESS_CONTROL_FLAG, \"w\") as f:\n", + "lineno": 824, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 828, + "line": " f.write(RESTART)\n", + "lineno": 825, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 828, + "line": " except (IOError, OSError):\n", + "lineno": 826, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 828, + "line": " return False\n", + "lineno": 827, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 828, + "line": " return True\n", + "lineno": 828, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 822 + }, + { + "end_region_line": 829, + "line": "\n", + "lineno": 829, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 829 + }, + { + "end_region_line": 830, + "line": "\n", + "lineno": 830, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 830 + }, + { + "end_region_line": 845, + "line": "def restart():\n", + "lineno": 831, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " \"\"\"\n", + "lineno": 832, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " Restarts the server.\n", + "lineno": 833, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " \"\"\"\n", + "lineno": 834, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " if not conf.OPTIONS[\"Deployment\"][\"RESTART_HOOKS\"]:\n", + "lineno": 835, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " logging.warning(\"No registered RESTART_HOOKS, restarting is not possible\")\n", + "lineno": 836, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " return False\n", + "lineno": 837, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 845, + "line": " result = True\n", + "lineno": 838, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 844, + "line": " for hook in conf.OPTIONS[\"Deployment\"][\"RESTART_HOOKS\"]:\n", + "lineno": 839, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 839 + }, + { + "end_region_line": 844, + "line": " try:\n", + "lineno": 840, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 839 + }, + { + "end_region_line": 844, + "line": " result = result and hook()\n", + "lineno": 841, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 839 + }, + { + "end_region_line": 844, + "line": " except Exception as e:\n", + "lineno": 842, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 839 + }, + { + "end_region_line": 844, + "line": " logging.warning(\"Error running restart hook %s: %s\" % (hook, e))\n", + "lineno": 843, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 839 + }, + { + "end_region_line": 844, + "line": " result = False\n", + "lineno": 844, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 839 + }, + { + "end_region_line": 845, + "line": " return result\n", + "lineno": 845, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 831 + }, + { + "end_region_line": 846, + "line": "\n", + "lineno": 846, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 846 + }, + { + "end_region_line": 847, + "line": "\n", + "lineno": 847, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 847 + }, + { + "end_region_line": 853, + "line": "def restart_and_wait():\n", + "lineno": 848, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 848 + }, + { + "end_region_line": 853, + "line": " if not restart():\n", + "lineno": 849, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 848 + }, + { + "end_region_line": 853, + "line": " return False\n", + "lineno": 850, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 848 + }, + { + "end_region_line": 853, + "line": " if not wait_for_status(STATUS_STOPPED):\n", + "lineno": 851, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 848 + }, + { + "end_region_line": 853, + "line": " return False\n", + "lineno": 852, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 848 + }, + { + "end_region_line": 853, + "line": " return wait_for_status(STATUS_RUNNING)\n", + "lineno": 853, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 848 + }, + { + "end_region_line": 854, + "line": "\n", + "lineno": 854, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 854 + }, + { + "end_region_line": 855, + "line": "\n", + "lineno": 855, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 855 + }, + { + "end_region_line": 861, + "line": "def update_zeroconf_broadcast():\n", + "lineno": 856, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 856 + }, + { + "end_region_line": 861, + "line": " \"\"\"\n", + "lineno": 857, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 856 + }, + { + "end_region_line": 861, + "line": " Updates the instance registered on the Zeroconf network\n", + "lineno": 858, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 856 + }, + { + "end_region_line": 861, + "line": " \"\"\"\n", + "lineno": 859, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 856 + }, + { + "end_region_line": 861, + "line": " with open(PROCESS_CONTROL_FLAG, \"w\") as f:\n", + "lineno": 860, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 856 + }, + { + "end_region_line": 861, + "line": " f.write(UPDATE_ZEROCONF)\n", + "lineno": 861, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 856 + }, + { + "end_region_line": 862, + "line": "\n", + "lineno": 862, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 862 + }, + { + "end_region_line": 863, + "line": "\n", + "lineno": 863, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 863 + }, + { + "end_region_line": 890, + "line": "def _read_pid_file(filename):\n", + "lineno": 864, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " \"\"\"\n", + "lineno": 865, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " Reads a pid file and returns the contents. PID files have 1 or 2 lines;\n", + "lineno": 866, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " - first line is always the pid\n", + "lineno": 867, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " - second line is the port the server is listening on.\n", + "lineno": 868, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " - third line is the port the alternate origin server is listening on\n", + "lineno": 869, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " - fourth line is the status of the server process\n", + "lineno": 870, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": "\n", + "lineno": 871, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " :param filename: Path of PID to read\n", + "lineno": 872, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " :return: (pid, port, zip_port, status): with the PID in the file, the port numbers\n", + "lineno": 873, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " if they exist. If the port number doesn't exist, then\n", + "lineno": 874, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " port is None. Lastly, the status code is returned.\n", + "lineno": 875, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " \"\"\"\n", + "lineno": 876, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " if not os.path.isfile(filename):\n", + "lineno": 877, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " return None, None, None, STATUS_STOPPED\n", + "lineno": 878, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": "\n", + "lineno": 879, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " try:\n", + "lineno": 880, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " pid_file_lines = open(filename, \"r\").readlines()\n", + "lineno": 881, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " pid, port, zip_port, status = pid_file_lines\n", + "lineno": 882, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " pid = int(pid.strip())\n", + "lineno": 883, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " port = int(port.strip()) if port.strip() else None\n", + "lineno": 884, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " zip_port = int(zip_port.strip()) if zip_port.strip() else None\n", + "lineno": 885, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " status = int(status.strip())\n", + "lineno": 886, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " return pid, port, zip_port, status\n", + "lineno": 887, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " except (TypeError, ValueError, IOError, OSError):\n", + "lineno": 888, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " pass\n", + "lineno": 889, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 890, + "line": " return None, None, None, STATUS_PID_FILE_INVALID\n", + "lineno": 890, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 864 + }, + { + "end_region_line": 891, + "line": "\n", + "lineno": 891, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 891 + }, + { + "end_region_line": 892, + "line": "\n", + "lineno": 892, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 892 + }, + { + "end_region_line": 898, + "line": "def get_status_from_pid_file():\n", + "lineno": 893, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 898, + "line": " \"\"\"\n", + "lineno": 894, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 898, + "line": " Returns the status of the server process from the PID file.\n", + "lineno": 895, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 898, + "line": " \"\"\"\n", + "lineno": 896, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 898, + "line": " _, _, _, status = _read_pid_file(PID_FILE)\n", + "lineno": 897, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 898, + "line": " return status\n", + "lineno": 898, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 893 + }, + { + "end_region_line": 899, + "line": "\n", + "lineno": 899, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 899 + }, + { + "end_region_line": 900, + "line": "\n", + "lineno": 900, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 900 + }, + { + "end_region_line": 903, + "line": "def get_zip_port():\n", + "lineno": 901, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 901 + }, + { + "end_region_line": 903, + "line": " _, _, zip_port, _ = _read_pid_file(PID_FILE)\n", + "lineno": 902, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 901 + }, + { + "end_region_line": 903, + "line": " return zip_port\n", + "lineno": 903, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 901 + }, + { + "end_region_line": 904, + "line": "\n", + "lineno": 904, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 904 + }, + { + "end_region_line": 905, + "line": "\n", + "lineno": 905, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 905 + }, + { + "end_region_line": 987, + "line": "def get_status(): # noqa: max-complexity=16\n", + "lineno": 906, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " \"\"\"\n", + "lineno": 907, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " Tries to get the PID of a running server.\n", + "lineno": 908, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 909, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " The behavior is also quite redundant given that `kolibri start` should\n", + "lineno": 910, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " always create a PID file, and if its been started directly with the\n", + "lineno": 911, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " runserver command, then its up to the developer to know what's happening.\n", + "lineno": 912, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 913, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " :returns: (PID, address, port), where address is not currently detected in\n", + "lineno": 914, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " a valid way because it's not configurable, and we might be\n", + "lineno": 915, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " listening on several IPs.\n", + "lineno": 916, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " :raises: NotRunning\n", + "lineno": 917, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " \"\"\"\n", + "lineno": 918, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # PID file exists and startup has finished, check if it is running\n", + "lineno": 919, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " pid, port, _, status = _read_pid_file(PID_FILE)\n", + "lineno": 920, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 921, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if status not in IS_RUNNING:\n", + "lineno": 922, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(status)\n", + "lineno": 923, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 924, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if status == STATUS_STARTING_UP:\n", + "lineno": 925, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " try:\n", + "lineno": 926, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " wait_for_occupied_port(conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"], port)\n", + "lineno": 927, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " except OSError:\n", + "lineno": 928, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_FAILED_TO_START)\n", + "lineno": 929, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 930, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if status == STATUS_SHUTTING_DOWN:\n", + "lineno": 931, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " try:\n", + "lineno": 932, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " wait_for_free_port(conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"], port)\n", + "lineno": 933, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " except OSError:\n", + "lineno": 934, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_UNCLEAN_SHUTDOWN)\n", + "lineno": 935, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_STOPPED)\n", + "lineno": 936, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 937, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # PID file exists, but process is dead\n", + "lineno": 938, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if pid is None or not pid_exists(pid):\n", + "lineno": 939, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_UNCLEAN_SHUTDOWN) # Unclean shutdown\n", + "lineno": 940, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 941, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " listen_port = port\n", + "lineno": 942, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 943, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " prefix = (\n", + "lineno": 944, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " conf.OPTIONS[\"Deployment\"][\"URL_PATH_PREFIX\"]\n", + "lineno": 945, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if conf.OPTIONS[\"Deployment\"][\"URL_PATH_PREFIX\"] == \"/\"\n", + "lineno": 946, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " else \"/\" + conf.OPTIONS[\"Deployment\"][\"URL_PATH_PREFIX\"]\n", + "lineno": 947, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " )\n", + "lineno": 948, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 949, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " check_url = \"http://{}:{}{}status/\".format(\"127.0.0.1\", listen_port, prefix)\n", + "lineno": 950, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 951, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if conf.OPTIONS[\"Server\"][\"CHERRYPY_START\"]:\n", + "lineno": 952, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 953, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " try:\n", + "lineno": 954, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # Timeout is 3 seconds, we don't want the status command to be slow\n", + "lineno": 955, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # TODO: Using 127.0.0.1 is a hardcode default from Kolibri, it could\n", + "lineno": 956, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # be configurable\n", + "lineno": 957, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # TODO: HTTP might not be the protocol if server has SSL\n", + "lineno": 958, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " response = requests.get(check_url, timeout=3)\n", + "lineno": 959, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " except (requests.exceptions.ReadTimeout, requests.exceptions.ConnectionError):\n", + "lineno": 960, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_NOT_RESPONDING)\n", + "lineno": 961, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " except (requests.exceptions.RequestException):\n", + "lineno": 962, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_UNCLEAN_SHUTDOWN)\n", + "lineno": 963, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 964, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if response.status_code == 404:\n", + "lineno": 965, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_UNKNOWN_INSTANCE) # Unknown HTTP server\n", + "lineno": 966, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 967, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " if response.status_code != 200:\n", + "lineno": 968, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " # Probably a mis-configured kolibri\n", + "lineno": 969, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " sys.stderr.write(\"---Debug information---\\n\")\n", + "lineno": 970, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " sys.stderr.write(response.text)\n", + "lineno": 971, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " sys.stderr.write(\"\\n-----------------------\\n\")\n", + "lineno": 972, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_SERVER_CONFIGURATION_ERROR)\n", + "lineno": 973, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 974, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " else:\n", + "lineno": 975, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " try:\n", + "lineno": 976, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " requests.get(check_url, timeout=3)\n", + "lineno": 977, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " except (requests.exceptions.ReadTimeout, requests.exceptions.ConnectionError):\n", + "lineno": 978, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " raise NotRunning(STATUS_NOT_RESPONDING)\n", + "lineno": 979, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " except (requests.exceptions.RequestException):\n", + "lineno": 980, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " return pid, \"\", \"\"\n", + "lineno": 981, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": "\n", + "lineno": 982, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " return (\n", + "lineno": 983, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " pid,\n", + "lineno": 984, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"],\n", + "lineno": 985, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " listen_port,\n", + "lineno": 986, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 987, + "line": " ) # Correct PID !\n", + "lineno": 987, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 906 + }, + { + "end_region_line": 988, + "line": " # We don't detect this at present:\n", + "lineno": 988, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 988 + }, + { + "end_region_line": 989, + "line": " # Could be detected because we fetch the PID directly via HTTP, but this\n", + "lineno": 989, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 989 + }, + { + "end_region_line": 990, + "line": " # is dumb because kolibri could be running in a worker pool with different\n", + "lineno": 990, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 990 + }, + { + "end_region_line": 991, + "line": " # PID from the PID file..\n", + "lineno": 991, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 991 + }, + { + "end_region_line": 992, + "line": " # raise NotRunning(STATUS_UNKNOWN_INSTANCE)\n", + "lineno": 992, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 992 + }, + { + "end_region_line": 993, + "line": " # This would be the fallback when we know it's not running, but we can't\n", + "lineno": 993, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 993 + }, + { + "end_region_line": 994, + "line": " # give a proper reason...\n", + "lineno": 994, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 994 + }, + { + "end_region_line": 995, + "line": " # raise NotRunning(STATUS_UNKNOW)\n", + "lineno": 995, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 995 + }, + { + "end_region_line": 996, + "line": "\n", + "lineno": 996, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 996 + }, + { + "end_region_line": 997, + "line": "\n", + "lineno": 997, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 997 + }, + { + "end_region_line": 1022, + "line": "def get_urls(listen_port=None):\n", + "lineno": 998, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " \"\"\"\n", + "lineno": 999, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " :param listen_port: if set, will not try to determine the listen port from\n", + "lineno": 1000, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " other running instances.\n", + "lineno": 1001, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " \"\"\"\n", + "lineno": 1002, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " try:\n", + "lineno": 1003, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " if listen_port:\n", + "lineno": 1004, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " port = listen_port\n", + "lineno": 1005, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " else:\n", + "lineno": 1006, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " __, __, port = get_status()\n", + "lineno": 1007, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " urls = []\n", + "lineno": 1008, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " if port:\n", + "lineno": 1009, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " try:\n", + "lineno": 1010, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " all_addresses = (\n", + "lineno": 1011, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " get_all_addresses()\n", + "lineno": 1012, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " if conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"] == \"0.0.0.0\"\n", + "lineno": 1013, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " else [conf.OPTIONS[\"Deployment\"][\"LISTEN_ADDRESS\"]]\n", + "lineno": 1014, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " )\n", + "lineno": 1015, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1017, + "line": " for ip in all_addresses:\n", + "lineno": 1016, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1016 + }, + { + "end_region_line": 1017, + "line": " urls.append(\"http://{}:{}/\".format(ip, port))\n", + "lineno": 1017, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1016 + }, + { + "end_region_line": 1022, + "line": " except RuntimeError:\n", + "lineno": 1018, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " logger.error(\"Error retrieving network interface list!\")\n", + "lineno": 1019, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " return STATUS_RUNNING, urls\n", + "lineno": 1020, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " except NotRunning as e:\n", + "lineno": 1021, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1022, + "line": " return e.status_code, []\n", + "lineno": 1022, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 998 + }, + { + "end_region_line": 1023, + "line": "\n", + "lineno": 1023, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1023 + }, + { + "end_region_line": 1024, + "line": "\n", + "lineno": 1024, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1024 + }, + { + "end_region_line": 1067, + "line": "def get_installer_version(installer_type): # noqa: C901\n", + "lineno": 1025, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1043, + "line": " def get_debian_pkg_version(package):\n", + "lineno": 1026, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " \"\"\"\n", + "lineno": 1027, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " In case we want to distinguish between dpkg and apt installations\n", + "lineno": 1028, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " we can use apt-cache show madison and compare versions with dpkg\n", + "lineno": 1029, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " if dpkg > madison, it's dpkg otherwise it's apt\n", + "lineno": 1030, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " \"\"\"\n", + "lineno": 1031, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " try:\n", + "lineno": 1032, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " output = check_output([\"dpkg\", \"-s\", package])\n", + "lineno": 1033, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " if hasattr(output, \"decode\"): # needed in python 2.x\n", + "lineno": 1034, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " output = output.decode(\"utf-8\")\n", + "lineno": 1035, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " package_info = output.split(\"\\n\")\n", + "lineno": 1036, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " version_info = [line for line in package_info if \"Version\" in line]\n", + "lineno": 1037, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " if version_info:\n", + "lineno": 1038, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " version = version_info[0].split(\":\")[1].strip()\n", + "lineno": 1039, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " return version\n", + "lineno": 1040, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " except CalledProcessError: # package not installed!\n", + "lineno": 1041, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " pass # will return None\n", + "lineno": 1042, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1043, + "line": " return None\n", + "lineno": 1043, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1026 + }, + { + "end_region_line": 1067, + "line": "\n", + "lineno": 1044, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1046, + "line": " def get_deb_kolibriserver_version():\n", + "lineno": 1045, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1045 + }, + { + "end_region_line": 1046, + "line": " return get_debian_pkg_version(\"kolibri-server\")\n", + "lineno": 1046, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1045 + }, + { + "end_region_line": 1067, + "line": "\n", + "lineno": 1047, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1049, + "line": " def get_deb_version():\n", + "lineno": 1048, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1048 + }, + { + "end_region_line": 1049, + "line": " return get_debian_pkg_version(\"kolibri\")\n", + "lineno": 1049, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1048 + }, + { + "end_region_line": 1067, + "line": "\n", + "lineno": 1050, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1052, + "line": " def get_apk_version():\n", + "lineno": 1051, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1051 + }, + { + "end_region_line": 1052, + "line": " return os.environ.get(\"KOLIBRI_APK_VERSION_NAME\")\n", + "lineno": 1052, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1051 + }, + { + "end_region_line": 1067, + "line": "\n", + "lineno": 1053, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " installer_version = os.environ.get(\"KOLIBRI_INSTALLER_VERSION\")\n", + "lineno": 1054, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " if installer_version:\n", + "lineno": 1055, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " return installer_version\n", + "lineno": 1056, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": "\n", + "lineno": 1057, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " version_funcs = {\n", + "lineno": 1058, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " installation_types.DEB: get_deb_version,\n", + "lineno": 1059, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " installation_types.KOLIBRI_SERVER: get_deb_kolibriserver_version,\n", + "lineno": 1060, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " installation_types.APK: get_apk_version,\n", + "lineno": 1061, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " }\n", + "lineno": 1062, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": "\n", + "lineno": 1063, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " if installer_type in version_funcs:\n", + "lineno": 1064, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " return version_funcs[installer_type]()\n", + "lineno": 1065, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " else:\n", + "lineno": 1066, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1067, + "line": " return None\n", + "lineno": 1067, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1025 + }, + { + "end_region_line": 1068, + "line": "\n", + "lineno": 1068, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1068 + }, + { + "end_region_line": 1069, + "line": "\n", + "lineno": 1069, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1069 + }, + { + "end_region_line": 1137, + "line": "def installation_type(cmd_line=None): # noqa:C901\n", + "lineno": 1070, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " \"\"\"\n", + "lineno": 1071, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " Tries to guess how the running kolibri server was installed\n", + "lineno": 1072, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1073, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " :returns: install_type is the type of detected installation\n", + "lineno": 1074, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " \"\"\"\n", + "lineno": 1075, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1076, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = os.environ.get(\"KOLIBRI_INSTALLATION_TYPE\", \"Unknown\")\n", + "lineno": 1077, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1078, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if cmd_line is None:\n", + "lineno": 1079, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " cmd_line = sys.argv\n", + "lineno": 1080, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1081, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1093, + "line": " def is_debian_package():\n", + "lineno": 1082, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " # find out if this is from the debian package\n", + "lineno": 1083, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " install_type = installation_types.DEB\n", + "lineno": 1084, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " try:\n", + "lineno": 1085, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " check_output([\"dpkg\", \"-s\", \"kolibri\"])\n", + "lineno": 1086, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " except (\n", + "lineno": 1087, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " CalledProcessError,\n", + "lineno": 1088, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " FileNotFoundError,\n", + "lineno": 1089, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " ): # kolibri package not installed!\n", + "lineno": 1090, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " if sys.path[-1] != \"/usr/lib/python3/dist-packages\":\n", + "lineno": 1091, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " install_type = installation_types.WHL\n", + "lineno": 1092, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1093, + "line": " return install_type\n", + "lineno": 1093, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1082 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1094, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1103, + "line": " def is_kolibri_server():\n", + "lineno": 1095, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " # running under uwsgi, finding out if we are using kolibri-server\n", + "lineno": 1096, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " install_type = \"Unknown\"\n", + "lineno": 1097, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " try:\n", + "lineno": 1098, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " check_output([\"dpkg\", \"-s\", \"kolibri-server\"])\n", + "lineno": 1099, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " install_type = installation_types.KOLIBRI_SERVER\n", + "lineno": 1100, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " except CalledProcessError: # kolibri-server package not installed!\n", + "lineno": 1101, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " install_type = installation_types.WHL\n", + "lineno": 1102, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1103, + "line": " return install_type\n", + "lineno": 1103, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1095 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1104, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " # in case the KOLIBRI_INSTALLATION_TYPE is not set, let's use the old method:\n", + "lineno": 1105, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if install_type == \"Unknown\":\n", + "lineno": 1106, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if on_android():\n", + "lineno": 1107, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = installation_types.APK\n", + "lineno": 1108, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " elif os.environ.get(\"KOLIBRI_DEVELOPER_MODE\", False):\n", + "lineno": 1109, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = \"devserver\"\n", + "lineno": 1110, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " elif len(cmd_line) > 1 or \"uwsgi\" in cmd_line:\n", + "lineno": 1111, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " launcher = cmd_line[0]\n", + "lineno": 1112, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if launcher.endswith(\".pex\"):\n", + "lineno": 1113, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = installation_types.PEX\n", + "lineno": 1114, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " elif launcher == \"/usr/bin/kolibri\":\n", + "lineno": 1115, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = is_debian_package()\n", + "lineno": 1116, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " elif launcher == \"uwsgi\":\n", + "lineno": 1117, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " package = is_debian_package()\n", + "lineno": 1118, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if package != \"whl\":\n", + "lineno": 1119, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = is_kolibri_server()\n", + "lineno": 1120, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " elif \"\\\\Scripts\\\\kolibri\" in launcher:\n", + "lineno": 1121, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " paths = sys.path\n", + "lineno": 1122, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1126, + "line": " for path in paths:\n", + "lineno": 1123, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1126, + "line": " if \"kolibri.exe\" in path:\n", + "lineno": 1124, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1126, + "line": " install_type = installation_types.WINDOWS\n", + "lineno": 1125, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1126, + "line": " break\n", + "lineno": 1126, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1123 + }, + { + "end_region_line": 1137, + "line": " elif \"start\" in cmd_line:\n", + "lineno": 1127, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " install_type = installation_types.WHL\n", + "lineno": 1128, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1129, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if install_type in installation_types.install_type_map:\n", + "lineno": 1130, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " version = get_installer_version(install_type)\n", + "lineno": 1131, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " if version:\n", + "lineno": 1132, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " return installation_types.install_type_map[install_type].format(version)\n", + "lineno": 1133, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " else:\n", + "lineno": 1134, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " return installation_types.install_type_map[install_type].split(\" - \")[0]\n", + "lineno": 1135, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": "\n", + "lineno": 1136, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + }, + { + "end_region_line": 1137, + "line": " return install_type\n", + "lineno": 1137, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1070 + } + ], + "percent_cpu_time": 10.94556431992266 + }, + "/home/richard/github/kolibri/kolibri/utils/sql_alchemy.py": { + "functions": [ + { + "line": "Storage.db_matches_schema", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.041256621004368596, + "n_cpu_percent_c": 0.07556876485699124, + "n_cpu_percent_python": 0.4467345332974948, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.2689383338540772, + "n_usage_fraction": 0.0 + } + ], + "imports": [ + "from sqlalchemy import inspect" + ], + "leaks": {}, + "lines": [ + { + "end_region_line": 1, + "line": "# Modified from https://gist.github.com/miohtama/278fd4eeb9e5272d061c\n", + "lineno": 1, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 1 + }, + { + "end_region_line": 2, + "line": "from sqlalchemy import inspect\n", + "lineno": 2, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 2 + }, + { + "end_region_line": 3, + "line": "from sqlalchemy.orm import RelationshipProperty\n", + "lineno": 3, + "memory_samples": [ + [ + 699111620, + 30.189701080322266 + ] + ], + "n_avg_mb": 10.001090049743652, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.05662883401598372, + "n_cpu_percent_c": 2.9482299507562857, + "n_cpu_percent_python": 2.452751109465122, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 10.001090049743652, + "n_malloc_mb": 10.001090049743652, + "n_mallocs": 1, + "n_peak_mb": 10.001090049743652, + "n_python_fraction": 0.9985099999999999, + "n_sys_percent": 0.5599630794470858, + "n_usage_fraction": 0.1999268002248001, + "start_region_line": 3 + }, + { + "end_region_line": 4, + "line": "\n", + "lineno": 4, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 4 + }, + { + "end_region_line": 5, + "line": "\n", + "lineno": 5, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 5 + }, + { + "end_region_line": 7, + "line": "class DBSchemaError(Exception):\n", + "lineno": 6, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 7, + "line": " pass\n", + "lineno": 7, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 6 + }, + { + "end_region_line": 8, + "line": "\n", + "lineno": 8, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 8 + }, + { + "end_region_line": 9, + "line": "\n", + "lineno": 9, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 9 + }, + { + "end_region_line": 51, + "line": "def db_matches_schema(classes, engine):\n", + "lineno": 10, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " \"\"\"\n", + "lineno": 11, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " Check whether the current database matches the models declared in model base.\n", + "lineno": 12, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " Currently we check that all tables exist with all columns.\n", + "lineno": 13, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " :param Base: Declarative Base for SQLAlchemy models to check\n", + "lineno": 14, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " :param session: SQLAlchemy session bound to an engine\n", + "lineno": 15, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " :return: True if all declared models have corresponding tables and columns.\n", + "lineno": 16, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " \"\"\"\n", + "lineno": 17, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 18, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " iengine = inspect(engine)\n", + "lineno": 19, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 20, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " tables = iengine.get_table_names()\n", + "lineno": 21, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 22, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " # Go through all SQLAlchemy models\n", + "lineno": 23, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 10 + }, + { + "end_region_line": 51, + "line": " for table, klass in classes.items():\n", + "lineno": 24, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 25, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " if table in tables:\n", + "lineno": 26, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 27, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " columns = [c[\"name\"] for c in iengine.get_columns(table)]\n", + "lineno": 28, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.041256621004368596, + "n_cpu_percent_c": 0.07556876485699124, + "n_cpu_percent_python": 0.4467345332974948, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.2689383338540772, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " mapper = inspect(klass)\n", + "lineno": 29, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": "\n", + "lineno": 30, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 44, + "line": " for column_prop in mapper.attrs:\n", + "lineno": 31, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 44, + "line": " if isinstance(column_prop, RelationshipProperty):\n", + "lineno": 32, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 44, + "line": " # TODO: Add sanity checks for relations\n", + "lineno": 33, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 44, + "line": " pass\n", + "lineno": 34, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 44, + "line": " else:\n", + "lineno": 35, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 31 + }, + { + "end_region_line": 44, + "line": " for column in column_prop.columns:\n", + "lineno": 36, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " # Assume normal flat column\n", + "lineno": 37, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " if column.key not in columns:\n", + "lineno": 38, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " raise DBSchemaError(\n", + "lineno": 39, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " \"Model %s declares column %s which does not exist in database %s\",\n", + "lineno": 40, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " klass,\n", + "lineno": 41, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " column.key,\n", + "lineno": 42, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " engine,\n", + "lineno": 43, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 44, + "line": " )\n", + "lineno": 44, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 36 + }, + { + "end_region_line": 51, + "line": " else:\n", + "lineno": 45, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " raise DBSchemaError(\n", + "lineno": 46, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " \"Model %s declares table %s which does not exist in database %s\",\n", + "lineno": 47, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " klass,\n", + "lineno": 48, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " table,\n", + "lineno": 49, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " engine,\n", + "lineno": 50, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + }, + { + "end_region_line": 51, + "line": " )\n", + "lineno": 51, + "memory_samples": [], + "n_avg_mb": 0.0, + "n_copy_mb_s": 0.0, + "n_core_utilization": 0.0, + "n_cpu_percent_c": 0.0, + "n_cpu_percent_python": 0.0, + "n_gpu_avg_memory_mb": 0.0, + "n_gpu_peak_memory_mb": 0.0, + "n_gpu_percent": 0, + "n_growth_mb": 0.0, + "n_malloc_mb": 0.0, + "n_mallocs": 0, + "n_peak_mb": 0.0, + "n_python_fraction": 0, + "n_sys_percent": 0.0, + "n_usage_fraction": 0.0, + "start_region_line": 24 + } + ], + "percent_cpu_time": 6.752185771677057 + } + }, + "gpu": false, + "growth_rate": 101.13037946427167, + "max_footprint_fname": "/home/richard/github/kolibri/kolibri/core/tasks/registry.py", + "max_footprint_lineno": 15, + "max_footprint_mb": 50.58921718597412, + "memory": true, + "program": "./test/initialize.py", + "samples": [ + [ + 95513079, + 10.000073432922363 + ], + [ + 95520622, + 10.094316482543945 + ], + [ + 95524883, + 10.188559532165527 + ], + [ + 286988110, + 20.188611030578613 + ], + [ + 699063988, + 20.282854080200195 + ], + [ + 699070204, + 30.283944129943848 + ], + [ + 895911372, + 30.37818717956543 + ], + [ + 895918076, + 40.40064239501953 + ], + [ + 1378720335, + 40.49488544464111 + ], + [ + 1378726132, + 50.49497413635254 + ], + [ + 1378729484, + 50.58921718597412 + ] + ], + "stacks": [] +} diff --git a/test/initialize.py b/test/initialize.py new file mode 100644 index 00000000000..2148eb2ffa2 --- /dev/null +++ b/test/initialize.py @@ -0,0 +1,3 @@ +from kolibri.main import initialize + +initialize() diff --git a/test/initialize_performance.sh b/test/initialize_performance.sh new file mode 100755 index 00000000000..60d3b1c95fa --- /dev/null +++ b/test/initialize_performance.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +function run_n_times { + local n=$1 + local total_time=0 + for (( i=1; i<=$n; i++ )) + do + start=$(date +%s.%N) + echo "from kolibri.main import initialize; initialize()" | python > /dev/null 2>&1 + end=$(date +%s.%N) + total_time=$(echo "$total_time + ($end - $start)" | bc) + done + average_time=$(echo "scale=3; $total_time / $n" | bc) + echo "Average execution time over $n runs: $average_time seconds" +} + + +run_n_times "$@"