| OLD | NEW |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 4 */ | |
| 5 | 4 |
| 6 | 5 |
| 7 /* XRay -- a simple profiler for Native Client */ | 6 /* XRay -- a simple profiler for Native Client */ |
| 8 | 7 |
| 9 #include <alloca.h> | 8 #include <alloca.h> |
| 10 #include <errno.h> | 9 #include <errno.h> |
| 11 #include <stdarg.h> | 10 #include <stdarg.h> |
| 12 #include <stdint.h> | 11 #include <stdint.h> |
| 13 #include <stdio.h> | 12 #include <stdio.h> |
| 14 #include <stdlib.h> | 13 #include <stdlib.h> |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 int ticks_cutoff) { | 195 int ticks_cutoff) { |
| 197 FILE* f; | 196 FILE* f; |
| 198 f = fopen(filename, "wt"); | 197 f = fopen(filename, "wt"); |
| 199 if (NULL != f) { | 198 if (NULL != f) { |
| 200 XRayReport(capture, f, percent_cutoff, ticks_cutoff); | 199 XRayReport(capture, f, percent_cutoff, ticks_cutoff); |
| 201 fclose(f); | 200 fclose(f); |
| 202 } | 201 } |
| 203 } | 202 } |
| 204 | 203 |
| 205 #endif /* XRAY */ | 204 #endif /* XRAY */ |
| OLD | NEW |