sourcing.vendors Profiling¶
This file generates execution profiles for tendril.sourcing.vendors
and subclasses thereof.
-
profiling.sourcing.vendors.
profile_vendor_genvmap
(*args, **kwargs)[source]¶ This function profiles vendor map file generation for the given vendor. This corresponds to the execution profile for searching for a part from the vendor.
Warning
Make sure that your cache already includes all the necessary files by first running the
tendril-genvmaps
script before running the profiler.
-
profiling.sourcing.vendors.
profile_vendor_genvmapaudit
(*args, **kwargs)[source]¶ This function profiles vendor map audit file generation for the given vendor. This no longer corresponds to the execution profile for retrieving a part from the vendor, since the data may be retrieved from the database.
Warning
Make sure that your cache already includes all the necessary files by first running the
tendril-genvmapaudits
script before running the profiler.
-
profiling.sourcing.vendors.
profile_vendor_get_part
(*args, **kwargs)[source]¶ This function profiles
tendril.sourcing.vendors.VendorBase.get_all_vparts()
execution for the given vendor. Uses max_age=0 to avoid using the database cache.Todo
Change this to only hit one part or so, to avoid API rate limit related issues.
-
profiling.sourcing.vendors.
profile_vendor_get_part_db
(*args, **kwargs)[source]¶ This function profiles
tendril.sourcing.vendors.VendorBase.get_all_vparts()
execution for the given vendor. Uses the database cache, which would have been prepared by get_part by this stage.Todo
Change this to only hit one part or so, to avoid API rate limit related issues.