various refinements of log output

This commit is contained in:
Robert Kaiser 2013-04-20 16:41:38 +02:00
Родитель 50686ebdc2
Коммит 08ae8c3f4c
12 изменённых файлов: 21 добавлений и 22 удалений

Просмотреть файл

@ -87,7 +87,7 @@ for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anatime = strtotime(date('Y-m-d', $curtime).' -'.$daysback.' day');
$anadir = date('Y-m-d', $anatime);
print('Looking at B2G data for '.$anadir."\n");
print('B2G: Looking at on-device crash data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fbcdata = 'b2g-crashdata.json';
@ -287,9 +287,8 @@ for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
'display_rep' => 'Crashes Report');
file_put_contents($anafpages, json_encode($pages));
}
print("\n");
}
print("\n");
// *** helper functions ***

Просмотреть файл

@ -88,7 +88,7 @@ else {
for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anatime = strtotime(date('Y-m-d', $curtime).' -'.$daysback.' day');
$anadir = date('Y-m-d', $anatime);
print('Looking at per-build crash data for '.$anadir."\n");
print('Builds: Looking at per-build crash data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fpages = 'pages.json';
@ -97,7 +97,7 @@ for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anafweb = $anadir.'/'.$fweb;
if (!file_exists($anafweb)) {
// create out an HTML page
print('Write HTML output'."\n");
print('Writing HTML output'."\n");
$doc = new DOMDocument('1.0', 'utf-8');
$doc->formatOutput = true; // we want a nice output

Просмотреть файл

@ -176,7 +176,7 @@ foreach ($reports as $rep) {
for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anatime = strtotime(date('Y-m-d', $curtime).' -'.$daysback.' day');
$anadir = date('Y-m-d', $anatime);
print('Looking at '.$prdverdisplay.' data for '.$anadir."\n");
print('Components: Looking at '.$prdverdisplay.' data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fcompdata = $prdvershort.'-components.json';

Просмотреть файл

@ -57,7 +57,7 @@ $bdfile = $outdir.'/crash.bugdata.json';
$fweb = '%s.weeklybugs.html';
if (file_exists($bdfile)) {
print('Read stored data'."\n");
print('Reading stored crash bug data'."\n");
$bugdata = json_decode(file_get_contents($bdfile), true);
}
else {

Просмотреть файл

@ -170,7 +170,7 @@ foreach ($reports as $rep) {
for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anatime = strtotime(date('Y-m-d', $curtime).' -'.$daysback.' day');
$anadir = date('Y-m-d', $anatime);
print('Looking at data for '.$anadir."\n");
print('Devices: Looking at '.$prdverdisplay.' data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fdevdata = $prdvershort.'-devices.json';

Просмотреть файл

@ -264,7 +264,7 @@ foreach ($reports as $rep) {
for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anatime = strtotime(date('Y-m-d', $curtime).' -'.$daysback.' day');
$anadir = date('Y-m-d', $anatime);
print('Looking at '.$prdverdisplay.' data for '.$anadir."\n");
print('Explosiveness: Looking at '.$prdverdisplay.' data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fsigcnt = $prdvershort.'-sigcount.csv';
@ -335,7 +335,7 @@ foreach ($reports as $rep) {
$anafexpdata = $anadir.'/'.$fexpdata;
if (!file_exists($anafexpdata)) {
// get topcrasher list with counts per signature
print('Calculate explosiveness'."\n");
print('Calculating explosiveness'."\n");
$exp = array();
$dayset = array($anadir);
@ -386,7 +386,7 @@ foreach ($reports as $rep) {
'dayset'=> $dayset)));
}
else {
print('Read stored explosiveness'."\n");
print('Reading stored explosiveness'."\n");
$edata = json_decode(file_get_contents($anafexpdata), true);
$exp = $edata['exp'];
$exp_total = $edata['exp_total'];
@ -396,7 +396,7 @@ foreach ($reports as $rep) {
$anafweb = $anadir.'/'.$fweb;
if (!file_exists($anafweb)) {
// create out an HTML page
print('Write HTML output'."\n");
print('Writing HTML output'."\n");
$doc = new DOMDocument('1.0', 'utf-8');
$doc->formatOutput = true; // we want a nice output

Просмотреть файл

@ -141,7 +141,7 @@ foreach ($reports as $rep) {
$fwebdata = $prdverfile.'.flashdata-permajorver.html';
if (file_exists($fdfile)) {
print('Read stored data'."\n");
print('Reading stored '.$prdverdisplay.' Flash/hang data'."\n");
$flashdata = json_decode(file_get_contents($fdfile), true);
}
else {
@ -205,14 +205,14 @@ foreach ($reports as $rep) {
}
foreach ($days_to_analyze as $anaday) {
$anadir = $anaday;
print('Looking at data for '.$anadir."\n");
print('Flash/hangs: Looking at '.$prdverdisplay.' data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fpages = 'pages.json';
$fweb = $anadir.'.'.$prdverfile.'.flashhangs.html';
if (!array_key_exists($anadir, $flashdata) || in_array($anadir, $force_dates)) {
print('Fetch Flash/hang data for '.$prdverdisplay."\n");
print('Fetching Flash/hang data for '.$prdverdisplay."\n");
$rep_query =
'SELECT COUNT(*) as cnt, flash_version, LENGTH(hang_id)>0 as is_hang '

Просмотреть файл

@ -188,7 +188,7 @@ foreach ($flash_versions as $fver) {
}
foreach ($days_to_analyze as $anaday) {
$anadir = $anaday;
print('Looking at Flash version data for '.$anadir."\n");
print('Flash versions: Looking at Flash '.$fver.' data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$fpages = 'pages.json';

Просмотреть файл

@ -57,7 +57,7 @@ $bdfile = $outdir.'/socorro.bugdata.json';
$fweb = '%s.weeklybugs.html';
if (file_exists($bdfile)) {
print('Read stored data'."\n");
print('Reading stored Socorro bug data'."\n");
$bugdata = json_decode(file_get_contents($bdfile), true);
}
else {

Просмотреть файл

@ -157,4 +157,5 @@ foreach ($products as $product) {
}
file_put_contents($fproddata, json_encode($proddata));
}
print("\n");
?>

Просмотреть файл

@ -196,7 +196,7 @@ foreach ($reports as $rep) {
for ($daysback = $backlog_days + 1; $daysback > 0; $daysback--) {
$anatime = strtotime(date('Y-m-d', $curtime).' -'.$daysback.' day');
$anadir = date('Y-m-d', $anatime);
print('Looking at data for '.$anadir."\n");
print('Startup: Looking at data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$ftotal = $prdvershort.'-total.csv';
@ -284,7 +284,7 @@ foreach ($reports as $rep) {
$anafweb = $anadir.'/'.$fweb;
if (!file_exists($anafweb) && count($anacrashes)) {
// create out an HTML page
print('Write HTML output'."\n");
print('Writing HTML output'."\n");
$doc = new DOMDocument('1.0', 'utf-8');
$doc->formatOutput = true; // we want a nice output

Просмотреть файл

@ -167,7 +167,7 @@ foreach ($reports as $rname=>$rep) {
if ($min_date > $anadir) {
continue;
}
print('Looking at '.$prdverdisplay.' on '.$rep['display_name'].' data for '.$anadir."\n");
print('TCBS: Looking at '.$prdverdisplay.' on '.$rep['display_name'].' data for '.$anadir."\n");
if (!file_exists($anadir)) { mkdir($anadir); }
$ftcdata = $prdvershort.'-'.$rname.'-topcrash.json';
@ -380,9 +380,8 @@ foreach ($reports as $rname=>$rep) {
'display_rep' => $rep['display_name'].' Top Crash Report');
file_put_contents($anafpages, json_encode($pages));
}
print("\n");
}
print("\n");
}
}
}