Commit Graph

4 Commits

Author SHA1 Message Date
Phil Cohen
20f4e198ee metrics: create simple metrics framework
Summary: A stub class in metrics.py can be overwritten by dedicated implementations.

Reviewed By: quark-zju

Differential Revision: D7673553

fbshipit-source-id: f713abb3203d393e356f96fb834111ec2c37498a
2018-04-18 20:08:01 -07:00
Phil Cohen
487a3fb991 repogenerator: add new files and directories over time
Summary:
The megarepo generator now adds new directories and files automatically. We now pick folders and paths randomly, with a configurable number of subdirectories and a configurable length for the leaf filename, and a fixed alphabet.

The array of directories and leaf filenames are prorated: they start out constrained and grow as we approach our desired number of commits to generate (`repogenerator.numcommits`), so as not to be too sparse initially.

The directory array is randomized initially, so the above proration doesn't lead to a trivial edit pattern (e.g. everything in a/* initially.)

Lastly, we now stop generation when we hit our goal.

Reviewed By: quark-zju

Differential Revision: D7572968

fbshipit-source-id: b60d60b6262962ee114cb19b0989e6a1af8c0549
2018-04-13 21:51:54 -07:00
Phil Cohen
8f2a8be437 perfsuite: add --print and --use-profile
Summary:
Also add an IMM test to tease out working-copy vs. non-working-copy issues.

Also add some newlines to code stolen from fbcode.

Reviewed By: DurhamG

Differential Revision: D7432333

fbshipit-source-id: 029ccd8aeec7f0e2c380da41e7d78b433a275af3
2018-04-13 21:51:41 -07:00
Phil Cohen
2e5e764e25 a basic perf suite implementation
Reviewed By: DurhamG

Differential Revision: D7341042

fbshipit-source-id: e87bd1bfe198fc4c5e1e2239b761c543d6acbf01
2018-04-13 21:51:36 -07:00