dec3dcf7b86168234e38e4f40059abecd3245c44,testing/test_profiling.py,TestProfiling,test_profile,#TestProfiling#,28
Before Change
s.profiling.output_directory = "./testing/"
with gpflow.settings.temp_settings(s):
self.m.compile()
self.m._objective(self.m.get_free_state())
expected_file = "".join([
s.profiling.output_directory,
After Change
s = gpflow.settings.get_settings()
s.profiling.dump_timeline = True
s.profiling.output_directory = os.path.dirname(__file__)
s.profiling.output_file_name = "test_trace_profile"
with gpflow.settings.temp_settings(s):
m.compile()
opt = gpflow.train.ScipyOptimizer()
opt.minimize(m, maxiter=10)
expected_file = os.path.join(s.profiling.output_directory,
s.profiling.output_file_name + ".json")
print(expected_file)
self.assertTrue(os.path.exists(expected_file))
os.remove(expected_file)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GPflow/GPflow
Commit Name: dec3dcf7b86168234e38e4f40059abecd3245c44
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_profiling.py
Class Name: TestProfiling
Method Name: test_profile
Project Name: chartbeat-labs/textacy
Commit Name: 2fdabb14fd48534243b2e472995f4bec432ed493
Time: 2017-05-07
Author: burton@chartbeat.com
File Name: textacy/constants.py
Class Name:
Method Name:
Project Name: pyinstaller/pyinstaller
Commit Name: 279d7bf2f69801e07880b86023716ff57482ee02
Time: 2015-07-28
Author: h.goebel@crazy-compilers.com
File Name: tests/old_suite/basic/hooks1/hook-pkg1.py
Class Name:
Method Name: hook