2 This file is part of GNUnet.
3 (C) 2011 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
21 * @file nse/gnunet-nse-profiler.c
23 * @brief Profiling driver for the network size estimation service.
24 * Generally, the profiler starts a given number of peers,
25 * then churns some off, waits a certain amount of time, then
26 * churns again, and repeats.
29 #include "gnunet_testing_lib.h"
30 #include "gnunet_nse_service.h"
40 struct GNUNET_TESTING_Daemon *daemon;
42 struct GNUNET_NSE_Handle *nse_handle;
44 struct GNUNET_STATISTICS_Handle *stats;
46 GNUNET_SCHEDULER_TaskIdentifier stats_task;
53 * Whether or not shoutdown after finishing.
58 * How many messages have peers received during the test.
60 unsigned long long total_nse_received_messages;
63 * How many messages have peers send during the test (should be == received).
65 unsigned long long total_nse_transmitted_messages;
68 * How many messages have travelled an edge in both directions.
70 unsigned long long total_nse_cross;
73 * How many extra messages per edge (corrections) have been received.
75 unsigned long long total_nse_extra;
79 static struct NSEPeer *peer_head;
81 static struct NSEPeer *peer_tail;
84 * How long until we give up on connecting the peers?
86 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1500)
96 * Total number of peers in the test.
98 static unsigned long long num_peers;
101 * Global configuration file
103 static struct GNUNET_CONFIGURATION_Handle *testing_cfg;
106 * Total number of currently running peers.
108 static unsigned long long peers_running;
111 * Current round we are in.
113 static unsigned long long current_round;
116 * Peers desired in the next round.
118 static unsigned long long peers_next_round;
121 * Maximum number of connections to NSE services.
123 static unsigned long long connection_limit;
126 * Total number of connections in the whole network.
128 static unsigned int total_connections;
131 * The currently running peer group.
133 static struct GNUNET_TESTING_PeerGroup *pg;
136 * File to report results to.
138 static struct GNUNET_DISK_FileHandle *output_file;
141 * File to log connection info, statistics to.
143 static struct GNUNET_DISK_FileHandle *data_file;
146 * How many data points to capture before triggering next round?
148 static struct GNUNET_TIME_Relative wait_time;
153 static struct GNUNET_TIME_Relative interval;
156 * Task called to disconnect peers.
158 static GNUNET_SCHEDULER_TaskIdentifier disconnect_task;
161 * Task called to shutdown test.
163 static GNUNET_SCHEDULER_TaskIdentifier shutdown_handle;
166 * Task used to churn the network.
168 static GNUNET_SCHEDULER_TaskIdentifier churn_task;
170 static char *topology_file;
173 * Check whether peers successfully shut down.
176 shutdown_callback (void *cls, const char *emsg)
181 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Shutdown of peers failed!\n");
189 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "All peers successfully shut down!\n");
197 shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
202 FPRINTF (stderr, "%s", "Ending test.\n");
205 if (disconnect_task != GNUNET_SCHEDULER_NO_TASK)
207 GNUNET_SCHEDULER_cancel (disconnect_task);
208 disconnect_task = GNUNET_SCHEDULER_NO_TASK;
210 while (NULL != (pos = peer_head))
212 if (pos->nse_handle != NULL)
213 GNUNET_NSE_disconnect (pos->nse_handle);
214 GNUNET_CONTAINER_DLL_remove (peer_head, peer_tail, pos);
218 if (data_file != NULL)
219 GNUNET_DISK_file_close (data_file);
220 GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
225 * Callback to call when network size estimate is updated.
228 * @param timestamp server timestamp
229 * @param estimate the value of the current network size estimate
230 * @param std_dev standard deviation (rounded down to nearest integer)
231 * of the size estimation values seen
235 handle_estimate (void *cls, struct GNUNET_TIME_Absolute timestamp,
236 double estimate, double std_dev)
238 struct NSEPeer *peer = cls;
242 if (output_file != NULL)
245 GNUNET_asprintf (&output_buffer, "%s %llu %llu %f %f %f\n",
246 GNUNET_i2s (&peer->daemon->id), peers_running,
248 GNUNET_NSE_log_estimate_to_n (estimate), estimate,
250 if (size != GNUNET_DISK_file_write (output_file, output_buffer, size))
251 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unable to write to file!\n");
252 GNUNET_free (output_buffer);
256 "Received network size estimate from peer %s. Size: %f std.dev. %f\n",
257 GNUNET_i2s (&peer->daemon->id), estimate, std_dev);
262 * Process core statistic values.
265 * @param subsystem name of subsystem that created the statistic
266 * @param name the name of the datum
267 * @param value the current value
268 * @param is_persistent GNUNET_YES if the value is persistent, GNUNET_NO if not
269 * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration
272 core_stats_iterator (void *cls, const char *subsystem, const char *name,
273 uint64_t value, int is_persistent)
275 struct NSEPeer *peer = cls;
279 if (output_file != NULL)
282 GNUNET_asprintf (&output_buffer, "%s [%s] %s %llu\n",
283 GNUNET_i2s (&peer->daemon->id),
284 subsystem, name, value);
285 if (size != GNUNET_DISK_file_write (output_file, output_buffer, size))
286 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Unable to write to file!\n");
287 GNUNET_free (output_buffer);
290 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
291 "%s -> %s [%s]: %llu\n",
292 GNUNET_i2s (&peer->daemon->id), subsystem, name, value);
298 * Continuation called by "get_stats" function.
301 * @param success GNUNET_OK if statistics were
302 * successfully obtained, GNUNET_SYSERR if not.
305 core_stats_cont (void *cls, int success);
308 core_get_stats (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
310 struct NSEPeer *peer = cls;
312 peer->stats_task = GNUNET_SCHEDULER_NO_TASK;
313 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
315 GNUNET_STATISTICS_destroy(peer->stats, GNUNET_NO);
320 GNUNET_STATISTICS_get(peer->stats, "core", NULL,
321 GNUNET_TIME_UNIT_FOREVER_REL,
322 &core_stats_cont, &core_stats_iterator, peer);
323 GNUNET_STATISTICS_get(peer->stats, "transport", NULL,
324 GNUNET_TIME_UNIT_FOREVER_REL,
325 NULL, &core_stats_iterator, peer);
326 GNUNET_STATISTICS_get(peer->stats, "nse", NULL,
327 GNUNET_TIME_UNIT_FOREVER_REL,
328 NULL, &core_stats_iterator, peer);
333 * Continuation called by "get_stats" function.
336 * @param success GNUNET_OK if statistics were
337 * successfully obtained, GNUNET_SYSERR if not.
340 core_stats_cont (void *cls, int success)
342 struct NSEPeer *peer = cls;
343 peer->stats_task = GNUNET_SCHEDULER_add_delayed (interval, &core_get_stats,
352 connect_nse_service (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
354 struct NSEPeer *current_peer;
358 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connecting to nse service of peers\n");
360 for (i = 0; i < num_peers; i++)
362 if ((connection_limit > 0) && (i % (num_peers / connection_limit) != 0))
365 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
366 "nse-profiler: connecting to nse service of peer %d\n", i);
368 current_peer = GNUNET_malloc (sizeof (struct NSEPeer));
369 current_peer->daemon = GNUNET_TESTING_daemon_get (pg, i);
371 GNUNET_TESTING_test_daemon_running (GNUNET_TESTING_daemon_get (pg, i)))
373 current_peer->nse_handle =
374 GNUNET_NSE_connect (current_peer->daemon->cfg, &handle_estimate,
376 GNUNET_assert (current_peer->nse_handle != NULL);
378 current_peer->stats = GNUNET_STATISTICS_create("profiler", current_peer->daemon->cfg);
379 GNUNET_STATISTICS_get(current_peer->stats, "core", NULL,
380 GNUNET_TIME_UNIT_FOREVER_REL,
381 &core_stats_cont, &core_stats_iterator, current_peer);
382 GNUNET_STATISTICS_get(current_peer->stats, "transport", NULL,
383 GNUNET_TIME_UNIT_FOREVER_REL,
384 NULL, &core_stats_iterator, current_peer);
385 GNUNET_STATISTICS_get(current_peer->stats, "nse", NULL,
386 GNUNET_TIME_UNIT_FOREVER_REL,
387 NULL, &core_stats_iterator, current_peer);
388 GNUNET_CONTAINER_DLL_insert (peer_head, peer_tail, current_peer);
394 churn_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc);
398 * Continuation called by the "get_all" and "get" functions.
400 * @param cls struct StatsContext
401 * @param success GNUNET_OK if statistics were
402 * successfully obtained, GNUNET_SYSERR if not.
405 stats_finished_callback (void *cls, int success)
407 struct StatsContext *stats_context = cls;
411 if ((GNUNET_OK == success) && (data_file != NULL))
413 /* Stats lookup successful, write out data */
416 GNUNET_asprintf (&buf, "TOTAL_NSE_RECEIVED_MESSAGES_%d: %u \n",
417 stats_context->shutdown,
418 stats_context->total_nse_received_messages);
421 GNUNET_DISK_file_write (data_file, buf, buf_len);
423 GNUNET_free_non_null (buf);
427 GNUNET_asprintf (&buf, "TOTAL_NSE_TRANSMITTED_MESSAGES_%d: %u\n",
428 stats_context->shutdown,
429 stats_context->total_nse_transmitted_messages);
432 GNUNET_DISK_file_write (data_file, buf, buf_len);
434 GNUNET_free_non_null (buf);
438 GNUNET_asprintf (&buf, "TOTAL_NSE_CROSS_%d: %u \n",
439 stats_context->shutdown,
440 stats_context->total_nse_cross);
443 GNUNET_DISK_file_write (data_file, buf, buf_len);
445 GNUNET_free_non_null (buf);
449 GNUNET_asprintf (&buf, "TOTAL_NSE_EXTRA_%d: %u \n",
450 stats_context->shutdown,
451 stats_context->total_nse_extra);
454 GNUNET_DISK_file_write (data_file, buf, buf_len);
456 GNUNET_free_non_null (buf);
460 if (GNUNET_YES == stats_context->shutdown)
462 GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == shutdown_handle);
463 shutdown_handle = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
467 GNUNET_assert (churn_task == GNUNET_SCHEDULER_NO_TASK);
468 churn_task = GNUNET_SCHEDULER_add_now (&churn_peers, NULL);
470 GNUNET_free (stats_context);
475 * Callback function to process statistic values.
477 * @param cls struct StatsContext
478 * @param peer the peer the statistics belong to
479 * @param subsystem name of subsystem that created the statistic
480 * @param name the name of the datum
481 * @param value the current value
482 * @param is_persistent GNUNET_YES if the value is persistent, GNUNET_NO if not
483 * @return GNUNET_OK to continue, GNUNET_SYSERR to abort iteration
486 statistics_iterator (void *cls, const struct GNUNET_PeerIdentity *peer,
487 const char *subsystem, const char *name, uint64_t value,
490 struct StatsContext *stats_context = cls;
492 if (0 == strcmp (subsystem, "nse"))
494 if (0 == strcmp (name, "# flood messages received"))
496 stats_context->total_nse_received_messages += value;
498 if (data_file != NULL)
505 GNUNET_asprintf (&buf, "%s %u RECEIVED\n", GNUNET_i2s(peer), value);
508 GNUNET_DISK_file_write (data_file, buf, buf_len);
510 GNUNET_free_non_null (buf);
514 if (0 == strcmp (name, "# flood messages transmitted"))
516 stats_context->total_nse_transmitted_messages += value;
518 if (data_file != NULL)
525 GNUNET_asprintf (&buf, "%s %u TRANSMITTED\n",
526 GNUNET_i2s(peer), value);
529 GNUNET_DISK_file_write (data_file, buf, buf_len);
531 GNUNET_free_non_null (buf);
535 if (0 == strcmp (name, "# cross messages"))
537 stats_context->total_nse_cross += value;
539 if (0 == strcmp (name, "# extra messages"))
541 stats_context->total_nse_extra += value;
549 disconnect_nse_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
553 struct StatsContext *stats_context;
555 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "disconnecting nse service of peers\n");
556 disconnect_task = GNUNET_SCHEDULER_NO_TASK;
557 while (NULL != (pos = peer_head))
559 if (pos->nse_handle != NULL)
561 GNUNET_NSE_disconnect (pos->nse_handle);
562 pos->nse_handle = NULL;
564 GNUNET_CONTAINER_DLL_remove (peer_head, peer_tail, pos);
565 if (NULL != pos->stats)
566 GNUNET_STATISTICS_destroy(pos->stats, GNUNET_NO);
567 if (GNUNET_SCHEDULER_NO_TASK != pos->stats_task)
568 GNUNET_SCHEDULER_cancel (pos->stats_task);
572 GNUNET_asprintf (&buf, "round%llu", current_round);
574 GNUNET_CONFIGURATION_get_value_number (testing_cfg, "nse-profiler", buf,
578 if (current_round == 1)
580 stats_context = GNUNET_malloc (sizeof (struct StatsContext));
581 stats_context->shutdown = GNUNET_NO;
582 GNUNET_TESTING_get_statistics (pg, &stats_finished_callback,
583 &statistics_iterator, stats_context);
587 GNUNET_assert (churn_task == GNUNET_SCHEDULER_NO_TASK);
588 churn_task = GNUNET_SCHEDULER_add_now (&churn_peers, NULL);
591 else /* No more rounds, let's shut it down! */
593 stats_context = GNUNET_malloc (sizeof (struct StatsContext));
594 stats_context->shutdown = GNUNET_YES;
595 GNUNET_SCHEDULER_cancel (shutdown_handle);
596 shutdown_handle = GNUNET_SCHEDULER_NO_TASK;
597 GNUNET_TESTING_get_statistics (pg, &stats_finished_callback,
598 &statistics_iterator, stats_context);
608 * @param emsg NULL on success
611 topology_output_callback (void *cls, const char *emsg)
614 GNUNET_SCHEDULER_add_delayed (wait_time, &disconnect_nse_peers, NULL);
615 GNUNET_SCHEDULER_add_now (&connect_nse_service, NULL);
623 * @param emsg NULL on success
626 churn_callback (void *cls, const char *emsg)
628 char *temp_output_file;
630 if (emsg == NULL) /* Everything is okay! */
632 peers_running = peers_next_round;
633 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
634 "Round %llu, churn finished successfully.\n", current_round);
635 GNUNET_assert (disconnect_task == GNUNET_SCHEDULER_NO_TASK);
636 GNUNET_asprintf (&temp_output_file, "%s_%llu.dot", topology_file,
638 GNUNET_TESTING_peergroup_topology_to_file (pg, temp_output_file,
639 &topology_output_callback, NULL);
640 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Writing topology to file %s\n",
642 GNUNET_free (temp_output_file);
646 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Round %llu, churn FAILED!!\n",
648 GNUNET_SCHEDULER_cancel (shutdown_handle);
649 shutdown_handle = GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
655 churn_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
657 /* peers_running = GNUNET_TESTING_daemons_running(pg); */
658 churn_task = GNUNET_SCHEDULER_NO_TASK;
659 if (peers_next_round == peers_running)
661 /* Nothing to do... */
662 GNUNET_SCHEDULER_add_now (&connect_nse_service, NULL);
663 GNUNET_assert (disconnect_task == GNUNET_SCHEDULER_NO_TASK);
665 GNUNET_SCHEDULER_add_delayed (wait_time, &disconnect_nse_peers, NULL);
666 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Round %lu, doing nothing!\n",
671 if (peers_next_round > num_peers)
673 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
674 "Asked to turn on more peers than we have!!\n");
675 GNUNET_SCHEDULER_cancel (shutdown_handle);
676 GNUNET_SCHEDULER_add_now (&shutdown_task, NULL);
678 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
679 "Round %llu, turning off %llu peers, turning on %llu peers!\n",
682 peers_next_round) ? peers_running - peers_next_round : 0,
684 peers_running) ? peers_next_round - peers_running : 0);
685 GNUNET_TESTING_daemons_churn (pg, "nse",
687 peers_next_round) ? peers_running -
688 peers_next_round : 0,
690 peers_running) ? peers_next_round -
691 peers_running : 0, wait_time, &churn_callback,
698 nse_started_cb (void *cls, const char *emsg)
700 GNUNET_SCHEDULER_add_now (&connect_nse_service, NULL);
702 GNUNET_SCHEDULER_add_delayed (wait_time, &disconnect_nse_peers, NULL);
707 my_cb (void *cls, const char *emsg)
714 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
715 "Peergroup callback called with error, aborting test!\n");
716 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error from testing: `%s'\n");
718 GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
722 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
723 "Peer Group started successfully, connecting to NSE service for each peer!\n");
725 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Have %u connections\n",
727 if (data_file != NULL)
730 buf_len = GNUNET_asprintf (&buf, "CONNECTIONS_0: %u\n", total_connections);
732 GNUNET_DISK_file_write (data_file, buf, buf_len);
735 peers_running = GNUNET_TESTING_daemons_running (pg);
736 GNUNET_TESTING_daemons_start_service (pg, "nse", wait_time, &nse_started_cb,
743 * Function that will be called whenever two daemons are connected by
744 * the testing library.
747 * @param first peer id for first daemon
748 * @param second peer id for the second daemon
749 * @param distance distance between the connected peers
750 * @param first_cfg config for the first daemon
751 * @param second_cfg config for the second daemon
752 * @param first_daemon handle for the first daemon
753 * @param second_daemon handle for the second daemon
754 * @param emsg error message (NULL on success)
757 connect_cb (void *cls, const struct GNUNET_PeerIdentity *first,
758 const struct GNUNET_PeerIdentity *second, uint32_t distance,
759 const struct GNUNET_CONFIGURATION_Handle *first_cfg,
760 const struct GNUNET_CONFIGURATION_Handle *second_cfg,
761 struct GNUNET_TESTING_Daemon *first_daemon,
762 struct GNUNET_TESTING_Daemon *second_daemon, const char *emsg)
770 run (void *cls, char *const *args, const char *cfgfile,
771 const struct GNUNET_CONFIGURATION_Handle *cfg)
774 struct GNUNET_TESTING_Host *hosts;
778 //testing_cfg = GNUNET_CONFIGURATION_create ();
779 testing_cfg = GNUNET_CONFIGURATION_dup (cfg);
781 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting daemons.\n");
782 GNUNET_CONFIGURATION_set_value_string (testing_cfg, "testing",
783 "use_progressbars", "YES");
786 GNUNET_CONFIGURATION_get_value_number (testing_cfg, "testing",
787 "num_peers", &num_peers))
789 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
790 "Option TESTING:NUM_PEERS is required!\n");
795 GNUNET_CONFIGURATION_get_value_time (testing_cfg, "nse-profiler",
796 "WAIT_TIME", &wait_time))
798 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
799 "Option nse-profiler:wait_time is required!\n");
804 GNUNET_CONFIGURATION_get_value_time (testing_cfg, "nse",
805 "INTERVAL", &interval))
807 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
808 "Option nse:interval is required!\n");
813 GNUNET_CONFIGURATION_get_value_number (testing_cfg, "nse-profiler",
817 connection_limit = 0;
821 GNUNET_CONFIGURATION_get_value_string (testing_cfg, "nse-profiler",
822 "topology_output_file",
825 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
826 "Option nse-profiler:topology_output_file is required!\n");
831 GNUNET_CONFIGURATION_get_value_string (testing_cfg, "nse-profiler",
836 GNUNET_DISK_file_open (data_filename,
837 GNUNET_DISK_OPEN_READWRITE |
838 GNUNET_DISK_OPEN_TRUNCATE |
839 GNUNET_DISK_OPEN_CREATE,
840 GNUNET_DISK_PERM_USER_READ |
841 GNUNET_DISK_PERM_USER_WRITE);
842 if (data_file == NULL)
843 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to open %s for output!\n",
845 GNUNET_free (data_filename);
849 GNUNET_CONFIGURATION_get_value_string (cfg, "nse-profiler", "output_file",
853 GNUNET_DISK_file_open (temp_str,
854 GNUNET_DISK_OPEN_READWRITE |
855 GNUNET_DISK_OPEN_CREATE,
856 GNUNET_DISK_PERM_USER_READ |
857 GNUNET_DISK_PERM_USER_WRITE);
858 if (output_file == NULL)
859 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Failed to open %s for output!\n",
862 GNUNET_free_non_null (temp_str);
864 hosts = GNUNET_TESTING_hosts_load (testing_cfg);
866 pg = GNUNET_TESTING_peergroup_start (testing_cfg, num_peers, TIMEOUT,
867 &connect_cb, &my_cb, NULL, hosts);
868 GNUNET_assert (pg != NULL);
870 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_get_forever (),
871 &shutdown_task, NULL);
877 * nse-profiler command line options
879 static struct GNUNET_GETOPT_CommandLineOption options[] = {
880 {'V', "verbose", NULL,
881 gettext_noop ("be verbose (print progress information)"),
882 0, &GNUNET_GETOPT_set_one, &verbose},
883 GNUNET_GETOPT_OPTION_END
888 main (int argc, char *argv[])
890 GNUNET_log_setup ("nse-profiler",
897 GNUNET_PROGRAM_run (argc, argv, "nse-profiler",
899 ("Measure quality and performance of the NSE service."),
900 options, &run, NULL);
902 GNUNET_DISK_directory_remove ("/tmp/nse-profiler");
907 /* end of nse-profiler.c */