class_docstr: Unit test for PerformanceProfiler.
class_docstr_tok: ["Unit","test","for","PerformanceProfiler","."]
code: def test_tracer_window_all(self):
      pipe0 = (
          pipe.input("n1", "n2")
          .flat_map(
              ("n1", "n2"), ("n1", "n2"), lambda x, y: list(zip(x, y))
          )
          .map("n1", "n2", lambda x: x + 1)
          .window_all(("n1", "n2"), ("s1", "s2"), ops.local.sum2())
          .output("s1", "s2")
      )
      _ = pipe0.debug([1, 2, 3, 4], [2, 3, 4, 5], profiler=True)
      v = pipe0.debug([2, 2, 3, 4], [3, 3, 4, 5], profiler=True)
  
      pp = v.profiler
      self.assertEqual(len(pp.pipes_profiler), 1)
      self.assertEqual(len(pp.node_report), 5)
      pp.show()
  
imports: import json
  import unittest
  from pathlib import Path
  from towhee import pipe
  from towhee import ops, register
  from towhee.runtime.time_profiler import TimeProfiler
  from towhee.tools.profilers import PerformanceProfiler
label_desc: Use image node_id 5 for calling the TestPerformanceProfiler obj's underlying member method code with example usage: obj.test_tracer_window_all() without return types