mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix error starting import_ifc profiling (in 515bfd1)
This commit is contained in:
@@ -239,7 +239,7 @@ class ProfileImportIFC(bpy.types.Operator):
|
|||||||
import cProfile
|
import cProfile
|
||||||
import pstats
|
import pstats
|
||||||
|
|
||||||
profile_file = Path(profile_filename)
|
profile_file = Path(self.profile_filename)
|
||||||
cProfile.run("import bpy; bpy.ops.bim.load_project_elements()", str(profile_file))
|
cProfile.run("import bpy; bpy.ops.bim.load_project_elements()", str(profile_file))
|
||||||
p = pstats.Stats(str(profile_file))
|
p = pstats.Stats(str(profile_file))
|
||||||
p.sort_stats("cumulative").print_stats(50)
|
p.sort_stats("cumulative").print_stats(50)
|
||||||
|
|||||||
Reference in New Issue
Block a user