Make bundle portable by bundling third party packages we need

This commit is contained in:
2017-11-16 10:12:16 +01:00
parent c557f0bdec
commit 5a199f14c1
32 changed files with 15217 additions and 34 deletions

View File

@@ -1,5 +1,12 @@
#!/usr/bin/env python3
import os
import sys
SCRIPT_PATH = os.path.realpath(__file__)
SCRIPT_DIR = os.path.dirname(SCRIPT_PATH)
sys.path.append(os.path.join(SCRIPT_DIR, "third_party"))
import argparse
import foundation
from foundation import (benchrunner,
@@ -79,21 +86,21 @@ def _printFullResult(ctx, results):
for scene in ctx.scenes:
if scene not in stats:
continue
stats = stats[scene]
scene_stats = stats[scene]
print(" {}:" . format(scene))
print(" - Engine render time: {}" . format(
util.humanReadableTimeDifference(
stats.total_render_time)))
scene_stats.total_render_time)))
print(" - Render time without sync: {}" . format(
util.humanReadableTimeDifference(
stats.render_time_no_sync)))
scene_stats.render_time_no_sync)))
print(" - Total render time: {}" . format(
util.humanReadableTimeDifference(
stats.pipeline_render_time)))
scene_stats.pipeline_render_time)))
print(" - Peak memory used on device: {}" . format(
util.humanReadableSize(stats.device_peak_memory)))
util.humanReadableSize(scene_stats.device_peak_memory)))
print(" - Memory used on device during rendering: {}" . format(
util.humanReadableSize(stats.device_memory_usage)))
util.humanReadableSize(scene_stats.device_memory_usage)))
def _printFullJSONResult(ctx, results):