Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-15 02:11:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-15 02:11:46 +0300
commitd04f94d0c6ec03b09fb37dfa62ec9515789f4489 (patch)
tree2dacd36aebe1d1dec4a994d80fa7738151cc3534 /release/scripts/modules/bpy
parent33da66d7b3d16ff09cfffaaa02ea175deeb5899f (diff)
skip rna property & function lookups for members starting with "_" (since makesrna disallows this)
added a way profile python startup in bpy/__init__.py, if'd out by default.
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r--release/scripts/modules/bpy/__init__.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/__init__.py b/release/scripts/modules/bpy/__init__.py
index f5ecfaf1294..2aadbeb43c3 100644
--- a/release/scripts/modules/bpy/__init__.py
+++ b/release/scripts/modules/bpy/__init__.py
@@ -64,4 +64,14 @@ def load_scripts(reload_scripts=False):
print("Reloading:", mod)
reload(mod)
-load_scripts() \ No newline at end of file
+
+if "-d" in sys.argv and False: # Enable this to measure startup speed
+ import cProfile
+ cProfile.run('import bpy; bpy.load_scripts()', 'blender.prof')
+
+ import pstats
+ p = pstats.Stats('blender.prof')
+ p.sort_stats('cumulative').print_stats(100)
+
+else:
+ load_scripts() \ No newline at end of file