Thread (3 messages) flat view 3 messages, 1 author, 2018-02-01
STALE3154d

[PATCH v2 3/3] perf/aggregate: sort JSON fields in output

From: Christian Couder <hidden>
Date: 2018-02-01 10:15:19
Subsystem: the rest · Maintainer: Linus Torvalds

It is much easier to diff the output against a previous
one when the fields are sorted.

Helped-by: Philip Oakley [off-list ref]
Signed-off-by: Christian Couder <redacted>
---
 t/perf/aggregate.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

The only change compared to v1 is a typo fix suggested by Philip in
the commti message.
diff --git a/t/perf/aggregate.perl b/t/perf/aggregate.perl
index a609292491..749d6689f9 100755
--- a/t/perf/aggregate.perl
+++ b/t/perf/aggregate.perl
@@ -253,7 +253,7 @@ sub print_codespeed_results {
 		}
 	}
 
-	print to_json(\@data, {utf8 => 1, pretty => 1}), "\n";
+	print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
 }
 
 binmode STDOUT, ":utf8" or die "PANIC on binmode: $!";
-- 
2.16.0.rc2.45.g09a1bbd803
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help