build, doc: add "--trace-performance" argument to ns3 configure

This commit is contained in:
Gabriel Ferreira
2022-03-18 23:04:16 -03:00
parent 592a6b4c8d
commit d3f9e0742f
3 changed files with 51 additions and 8 deletions

View File

@@ -1057,6 +1057,17 @@ class NS3ConfigureTestCase(NS3BaseTestCase):
shutil.rmtree("contrib/calibre", ignore_errors=True)
def test_17_CMakePerformanceTracing(self):
"""!
Test if CMake performance tracing works and produces the
cmake_performance_trace.log file
@return None
"""
return_code, stdout, stderr = run_ns3("configure --trace-performance")
self.assertEqual(return_code, 0)
self.assertIn("--profiling-format=google-trace --profiling-output=../cmake_performance_trace.log", stdout)
self.assertTrue(os.path.exists(os.path.join(ns3_path, "cmake_performance_trace.log")))
class NS3BuildBaseTestCase(NS3BaseTestCase):
"""!