summaryrefslogtreecommitdiffstats
path: root/ppapi/generators
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-02 17:57:50 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-02 17:57:50 +0000
commit03f8b54a71c9f8056899c6b81fed1124e2ca8f39 (patch)
treee4c484a1b145f5c8d855540dacb06dc1d8ce23bb /ppapi/generators
parenta6d054e0fbebac6ef52c2d1587c2acced87c10f7 (diff)
downloadchromium_src-03f8b54a71c9f8056899c6b81fed1124e2ca8f39.zip
chromium_src-03f8b54a71c9f8056899c6b81fed1124e2ca8f39.tar.gz
chromium_src-03f8b54a71c9f8056899c6b81fed1124e2ca8f39.tar.bz2
Pepper: Add optional logging for PPAPI calls.
This adds VLOG(4) calls for every function autogenerated by idl_thunk.py. I had considered adding version information to the output, but couldn't find a way to do so that didn't have a confusing case. BUG=181607 Review URL: https://chromiumcodereview.appspot.com/13393007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191855 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/generators')
-rwxr-xr-xppapi/generators/idl_thunk.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ppapi/generators/idl_thunk.py b/ppapi/generators/idl_thunk.py
index 72b7eb1..ad770fe 100755
--- a/ppapi/generators/idl_thunk.py
+++ b/ppapi/generators/idl_thunk.py
@@ -311,15 +311,16 @@ def DefineMember(filenode, node, member, release, include_version, meta):
"""
cgen = CGen()
rtype, name, arrays, args = cgen.GetComponents(member, release, 'return')
+ body = 'VLOG(4) << \"%s::%s()\";\n' % (node.GetName(), member.GetName())
if _IsTypeCheck(node, member):
- body = '%s\n' % _MakeEnterLine(filenode, node, args[0], False, None, meta)
+ body += '%s\n' % _MakeEnterLine(filenode, node, args[0], False, None, meta)
body += 'return PP_FromBool(enter.succeeded());'
elif member.GetName() == 'Create':
- body = _MakeCreateMemberBody(node, member, args)
+ body += _MakeCreateMemberBody(node, member, args)
else:
- body = _MakeNormalMemberBody(filenode, release, node, member, rtype, args,
- include_version, meta)
+ body += _MakeNormalMemberBody(filenode, release, node, member, rtype, args,
+ include_version, meta)
signature = cgen.GetSignature(member, release, 'return', func_as_ptr=False,
include_version=include_version)