

When the JavaScript code receives a message, its message event handler can call console.log() to write the message to the JavaScript console in Chrome’s Developer Tools. You can send messages from your C/C++ code to JavaScript using the PostMessage() call in the Pepper messaging system.



Controlling the level of Native Client error and warning messages Note that the computation of render frames can be performed in any process, but the rendering itself is always done in the top level application process, so look for the rendering rate there. You can also see the rendering rate displayed as frames per second (FPS). Each process has its own memory footprint. A Native Client process appears with a Chrome extension icon (a jigsaw puzzle piece ) and begins with the text “Native Client module:” followed by the URL of its manifest file.įrom the Task Manager you can view the changing memory allocations of all the processes associated with a Native Client application. The top-level process appears with the application’s icon and begins with the text “Tab:”. If they are not, right click in the header row and select the memory items from the popup menu that appears.Ī browser window running a Native Client application has at least two processes associated with it: a process for the app’s top level (the render process managing the page including its HTML and JavaScript) and one or more processes for each instance of a Native Client module embedded in the page (each process running native code from one nexe or pexe file). When the Task Manager window appears, verify that the columns displaying memory information are visible.Open the Task Manager by clicking the menu icon and choosing Tools > Task manager.You can use Chrome’s Task Manager to display information about a Native Client application: Debugging PNaCl pexes (with older Pepper toolchains)ĭiagnostic information Viewing process statistics with the task manager.Debugging PNaCl pexes (Pepper 35 or later).Writing messages to the JavaScript console.Controlling the level of Native Client error and warning messages.Viewing process statistics with the task manager.
