#pragma once #include "JavaScriptCore/ConsoleClient.h" #include "wtf/Vector.h" #include "wtf/text/WTFString.h" namespace Inspector { class InspectorConsoleAgent; class InspectorDebuggerAgent; class InspectorScriptProfilerAgent; } // namespace Inspector namespace Zig { using InspectorConsoleAgent = Inspector::InspectorConsoleAgent; using InspectorDebuggerAgent = Inspector::InspectorDebuggerAgent; using InspectorScriptProfilerAgent = Inspector::InspectorScriptProfilerAgent; using namespace JSC; class ConsoleClient final : public JSC::ConsoleClient { WTF_MAKE_FAST_ALLOCATED; public: ~ConsoleClient() final {} ConsoleClient(void* client) : JSC::ConsoleClient() { m_client = client; } static bool logToSystemConsole(); static void setLogToSystemConsole(bool); void setDebuggerAgent(InspectorDebuggerAgent* agent) { m_debuggerAgent = agent; } void setPersistentScriptProfilerAgent(InspectorScriptProfilerAgent* agent) { m_scriptProfilerAgent = agent; } void* m_client; private: void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::JSGlobalObject*, Ref&&); void count(JSC::JSGlobalObject*, const String& label); void countReset(JSC::JSGlobalObject*, const String& label); void profile(JSC::JSGlobalObject*, const String& title); void profileEnd(JSC::JSGlobalObject*, const String& title); void takeHeapSnapshot(JSC::JSGlobalObject*, const String& title); void time(JSC::JSGlobalObject*, const String& label); void timeLog(JSC::JSGlobalObject*, const String& label, Ref&&); void timeEnd(JSC::JSGlobalObject*, const String& label); void timeStamp(JSC::JSGlobalObject*, Ref&&); void record(JSC::JSGlobalObject*, Ref&&); void recordEnd(JSC::JSGlobalObject*, Ref&&); void screenshot(JSC::JSGlobalObject*, Ref&&); void warnUnimplemented(const String& method); void internalAddMessage(MessageType, MessageLevel, JSC::JSGlobalObject*, Ref&&); void startConsoleProfile(); void stopConsoleProfile(); Inspector::InspectorConsoleAgent* m_consoleAgent; Inspector::InspectorDebuggerAgent* m_debuggerAgent { nullptr }; Inspector::InspectorScriptProfilerAgent* m_scriptProfilerAgent { nullptr }; Vector m_profiles; bool m_profileRestoreBreakpointActiveValue { false }; }; } // namespace Zig ption value='compiler-02-new-build'>compiler-02-new-build Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-06-27[ci] formatGravatar bholmesdev 2-3/+3
2022-06-27Refactor: remove Deno shim to esbuild "banner" (#3734)Gravatar Ben Holmes 7-15/+22
* refactor: remove Deno shim to esbuild "banner" * refactor: move shim to const * refactor: add shim to netlify edge * chore: changeset
2022-06-27[ci] formatGravatar FredKSchott 9-23/+25
2022-06-27update telemetry to support more anonymized project id (#3713)Gravatar Fred K. Schott 20-351/+311
* update telemetry to support more anonymized project id * Create strange-laws-kick.md * respond to nate feedback
2022-06-27SImplify "astro add" by removing confusing multi-select (#3715)Gravatar Fred K. Schott 13-258/+157
* wip * update create-astro for new astro add * update copy * update git prompt * Update packages/astro/src/core/logger/node.ts Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Update packages/create-astro/test/install-step.test.js Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * update git prompt * update test Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>