Change profile_creator to not subclass page_test.
commit8c2882777864cfbe31941bb9c610c4f2f97b3c9f
authorerikchen <erikchen@chromium.org>
Fri, 9 Jan 2015 21:15:41 +0000 (9 13:15 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 9 Jan 2015 21:16:44 +0000 (9 21:16 +0000)
treee0816462f37fa0a9f42afaa0944fd657b73b119f
parentf2f6ce2f20979578e78db6d806530ec0a0a0fb52
Change profile_creator to not subclass page_test.

No intended behavioral change. This CL is purely a refactor.

Previously, common logic for profile generation was held in
profile_generator.py, and subclasses of profile_creator were merely different
page_tests. This structure has two problems:

- It relies on the assumption that the logic for generating profiles is
relatively similar, modulo some differences in page navigation. There are
currently only 2 subclasses of profile_creator, and they are already diverging
in behavior. I will soon be adding more.

- It doesn't allow for composition of profile generation. In the near future,
there will be a profile creator that takes an existing profile, and adds 25
extensions to it. Another profile creator will take that profile, and add 100
bookmarks. Another one will then perform 1000 navigations.

BUG=444230, 442546

Review URL: https://codereview.chromium.org/825703003

Cr-Commit-Position: refs/heads/master@{#310856}
tools/perf/profile_creators/extensions_profile_creator.py
tools/perf/profile_creators/small_profile_creator.py
tools/telemetry/telemetry/page/profile_creator.py
tools/telemetry/telemetry/page/profile_generator.py
tools/telemetry/telemetry/page/record_wpr.py