Make a copy-paste recipe for rebuilding the blacklist
This commit is contained in:
parent
ce361a12e3
commit
8405fe763e
1 changed files with 14 additions and 18 deletions
|
@ -38,24 +38,20 @@ bool IsUrlArg(const base::CommandLine::CharType* arg) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The blacklist of command line switches, must be sorted.
|
/*
|
||||||
// Created with:
|
* The blacklist of command line switches, must be sorted.
|
||||||
// find ./ -name "*switches.cc" \
|
* Update the list by pasting the following command into bash
|
||||||
// | xargs grep -P --no-filename "\"\S+\";" \
|
* in libchromiumcontent/src/:
|
||||||
// | perl -pe 's|^.*?"(\S+)";| "$1",|' \
|
|
||||||
// | sort | uniq
|
(find ./ -name "*switches.cc" | \
|
||||||
// then manually insert following switches into the list:
|
xargs grep -P --no-filename "\"\S+\";" | \
|
||||||
// "inspect",
|
perl -pe 's|^.*?"(\S+)";| "$1",|'; \
|
||||||
// "inspect-brk",
|
echo ' "inspect",'; \
|
||||||
// finally write a small piece of code to print out the sorted list since
|
echo ' "inspect-brk",') | \
|
||||||
// the "sort" tool may use differnt rules from C++ STL.
|
LANG=C sort | \
|
||||||
// std::vector<std::string> sorted(std::begin(kBlacklist),
|
uniq > blacklist-switches.txt
|
||||||
// std::end(kBlacklist));
|
|
||||||
// std::sort(sorted.begin(), sorted.end());
|
*/
|
||||||
// FILE* f = fopen("testlist2", "w+");
|
|
||||||
// for (auto& i : sorted)
|
|
||||||
// fprintf(f, "\"%s\",\n", i.c_str());
|
|
||||||
// fclose(f);
|
|
||||||
const char* kBlacklist[] = {
|
const char* kBlacklist[] = {
|
||||||
"/prefetch:1",
|
"/prefetch:1",
|
||||||
"/prefetch:2",
|
"/prefetch:2",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue