diff options
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r-- | src/statistics/gnunet-statistics.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index aba80ab36..e004a0f1c 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c | |||
@@ -192,6 +192,7 @@ new_value_set (const char *subsystem, | |||
192 | return value_set; | 192 | return value_set; |
193 | } | 193 | } |
194 | 194 | ||
195 | |||
195 | /** | 196 | /** |
196 | * @brief Print the (collected) values. | 197 | * @brief Print the (collected) values. |
197 | * | 198 | * |
@@ -258,6 +259,7 @@ printer (void *cls, const struct GNUNET_HashCode *key, void *value) | |||
258 | return GNUNET_YES; | 259 | return GNUNET_YES; |
259 | } | 260 | } |
260 | 261 | ||
262 | |||
261 | /** | 263 | /** |
262 | * Callback function to process statistic values. | 264 | * Callback function to process statistic values. |
263 | * | 265 | * |
@@ -318,6 +320,7 @@ printer_watch (void *cls, | |||
318 | return GNUNET_OK; | 320 | return GNUNET_OK; |
319 | } | 321 | } |
320 | 322 | ||
323 | |||
321 | /** | 324 | /** |
322 | * @brief Clean all data structures related to given node. | 325 | * @brief Clean all data structures related to given node. |
323 | * | 326 | * |
@@ -372,6 +375,7 @@ clean_node (void *cls) | |||
372 | } | 375 | } |
373 | } | 376 | } |
374 | 377 | ||
378 | |||
375 | /** | 379 | /** |
376 | * @brief Print and shutdown | 380 | * @brief Print and shutdown |
377 | * | 381 | * |
@@ -384,6 +388,7 @@ print_finish (void *cls) | |||
384 | GNUNET_SCHEDULER_shutdown (); | 388 | GNUNET_SCHEDULER_shutdown (); |
385 | } | 389 | } |
386 | 390 | ||
391 | |||
387 | /** | 392 | /** |
388 | * @brief Called once all statistic values are available. | 393 | * @brief Called once all statistic values are available. |
389 | * | 394 | * |
@@ -422,6 +427,7 @@ continuation_print (void *cls, int success) | |||
422 | } | 427 | } |
423 | } | 428 | } |
424 | 429 | ||
430 | |||
425 | /** | 431 | /** |
426 | * Function called last by the statistics code. | 432 | * Function called last by the statistics code. |
427 | * | 433 | * |
@@ -450,6 +456,7 @@ cleanup (void *cls, int success) | |||
450 | GNUNET_SCHEDULER_shutdown (); | 456 | GNUNET_SCHEDULER_shutdown (); |
451 | } | 457 | } |
452 | 458 | ||
459 | |||
453 | /** | 460 | /** |
454 | * @brief Iterate over statistics values and store them in #values. | 461 | * @brief Iterate over statistics values and store them in #values. |
455 | * They will be printed once all are available. | 462 | * They will be printed once all are available. |
@@ -500,6 +507,7 @@ collector (void *cls, | |||
500 | return GNUNET_OK; | 507 | return GNUNET_OK; |
501 | } | 508 | } |
502 | 509 | ||
510 | |||
503 | /** | 511 | /** |
504 | * Main task that does the actual work. | 512 | * Main task that does the actual work. |
505 | * | 513 | * |
@@ -582,6 +590,7 @@ main_task (void *cls) | |||
582 | GNUNET_SCHEDULER_add_shutdown (&clean_node, &nodes[index_node].index_node); | 590 | GNUNET_SCHEDULER_add_shutdown (&clean_node, &nodes[index_node].index_node); |
583 | } | 591 | } |
584 | 592 | ||
593 | |||
585 | /** | 594 | /** |
586 | * @brief Iter over content of a node's directory to check for existence of a | 595 | * @brief Iter over content of a node's directory to check for existence of a |
587 | * config file. | 596 | * config file. |
@@ -617,6 +626,7 @@ iter_check_config (void *cls, const char *filename) | |||
617 | } | 626 | } |
618 | } | 627 | } |
619 | 628 | ||
629 | |||
620 | /** | 630 | /** |
621 | * @brief Iterates over filenames in testbed directory. | 631 | * @brief Iterates over filenames in testbed directory. |
622 | * | 632 | * |
@@ -649,6 +659,7 @@ iter_testbed_path (void *cls, const char *filename) | |||
649 | return GNUNET_OK; | 659 | return GNUNET_OK; |
650 | } | 660 | } |
651 | 661 | ||
662 | |||
652 | /** | 663 | /** |
653 | * @brief Count the number of nodes running in the testbed | 664 | * @brief Count the number of nodes running in the testbed |
654 | * | 665 | * |
@@ -671,6 +682,7 @@ discover_testbed_nodes (const char *path_testbed) | |||
671 | return 0; | 682 | return 0; |
672 | } | 683 | } |
673 | 684 | ||
685 | |||
674 | /** | 686 | /** |
675 | * Main function that will be run by the scheduler. | 687 | * Main function that will be run by the scheduler. |
676 | * | 688 | * |
@@ -857,4 +869,5 @@ main (int argc, char *const *argv) | |||
857 | return ret; | 869 | return ret; |
858 | } | 870 | } |
859 | 871 | ||
872 | |||
860 | /* end of gnunet-statistics.c */ | 873 | /* end of gnunet-statistics.c */ |